|
|||||||||||
Technical Support Support Resources
Product Information |
ARM: RTXv5 Reports Error "osRtxErrorStackUnderflow"Information in this knowledgebase article applies to:
SYMPTOMWhen using RTXv5, an implementation of CMSIS RTOSv2 API, my application throws the following error: osRtxErrorStackUnderflow before entering into an endless loop in the function osRtxErrorNotify(). What could be causing this issue? CAUSELikely, the stack of a thread was not allocating enough memory, before the thread started executing. RESOLUTIONTo find out which thread requires more resources, select the Source component variant for RTXv5, from the Manage Run-Time Environment dialog.
After bringing in the RTXv5 source, in editor mode, go to the definition of the function osRtxThreadStackCheck(). Set a breakpoint at the call to osRtxErrorNotify(). Users can do this at optimization level 0. In debug mode, a custom Component Viewer dialog called RTX RTOS (View => Watch Windows => RTX RTOS) displays the status of all v2 threads. After running to the breakpoint, find the active thread. Exit debug mode, and increase the thread's stack size. MORE INFORMATION
SEE ALSOLast Reviewed: Monday, January 11, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.