I'm porting an application from FreeRTOS to Azure RTOS. In FreeRTOS, it was easy to see the stack high water mark for a thread to see how you were doing on stack size. I haven't found any means of getting that from Azure RTOS. If I turn on the RTOS resource viewer in the debugger (Renesas Views->RTOS->RTOS Resources), it shows information about the threads but no information on stack usage. So far I've had to bump up the stack size simply because a thread crashed, but how do I get the stack usage for a thread to know whether I have enough stack size?
Hi dsherman26,
when selecting the Renesas View -> C/C++ -> Stack Analysis, you can find information about the stacks you are using. Is that what you are looking for? If no, do you mind sharing the device you are using so I can recreate a little program and look a little bit deeper?
best regards
PC_Renesas
Hi, there is no information about thread stack usage in the Stack Analysis view, only information about individual functions. Those in turn call Azure RTOS functions, but I've had to increase the thread stack since it was crashing. This is on an R7FA8D1AHECBD.
in that case, please make sure, to enable the Stack setting in the RTOS Resources window. After that, suspend the running application and start it again. The Stack usage information should now be loaded and you are able to see them.
I hope this helps.
Thank you! That's exactly what I was looking for.