Newbie Question about userspace and how to use zephyr_library_app_memory
correctly
#83384
Unanswered
TianlongLiang
asked this question in
Q&A
Replies: 2 comments
-
Hi @TianlongLiang! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Beta Was this translation helpful? Give feedback.
0 replies
-
My prj.conf is as follow, nothing fancy:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for taking the time to look at my question. I'm new to this project and still learning, so I truly appreciate any guidance or help you can provide. If there's something I missed or could improve in my approach, please let me know—I'd be happy to learn and adjust.
Let's say I have a simple project structure like this:
In the root CMakeLists.txt I will have something like this:
And the CMAkeLists.txt for lib-test will be like:
My plan is to write the test.c like normal C source file would, don't have any Zephyr macro for memory partition for global variables:
And I define the test_partition in main.c:
I can get the project to compile and run on the qemu-x86_32 board, but the user mode thread didn't run correctly and hung. My log indicates the fail on spinlock assertion:
Thank you in advance for your support!
Beta Was this translation helpful? Give feedback.
All reactions