Hi,
Is possible to let RTX5 to automatically increase the memory stack of some thread to avoid stack overflow?
I thought the "global dynamic memory size" in "system configuracion" was for this, but, the kernel trow an exception "osRtxErrorStackUnderflow" when the thread reach the default thread stack size (200 bytes) while the "global dynamic memory size" is set to 16384.
Of course the thread is atarted with default settings without setting size.
Thanks
There is no automatic way, that I know of, unless thread is using default stack size. Default stack size can be configured from RTOS' main configuration file.
To find troublesome thread, refer to the following knowledgebase article: http://www.keil.com/support/docs/3910.htm
Then consider giving the thread a custom (larger) stack size when it is defined. See "Create thread with stack non-default stack size" at the following url: www.keil.com/.../group__CMSIS__RTOS__ThreadMgmt.html