I have set “configCHECK_FOR_STACK_OVERFLOW=2” in FreeRTOSConfig.h, however, the stack checking code is not being compiled into the program. I checked that “portSTACK_GROWTH= -1”, this is correct for my MCU.
Any pointers would be much appreciated.
I have set “configCHECK_FOR_STACK_OVERFLOW=2” in FreeRTOSConfig.h, however, the stack checking code is not being compiled into the program. I checked that “portSTACK_GROWTH= -1”, this is correct for my MCU.
Any pointers would be much appreciated.
How did you verify that the stack checking code is not enabled? Which FreeRTOS version and port are you using? Can you share your FreeRTOSConfig.h?
Also, check that you are editing the right FreeRTOSconfig.h, and that another one isn’t being used.
(Sometimes adding a #error to it and seeing if you get the error is the quick check).
Thank you for the ideas. Turns out the issue was a comment had been added to the end of the “configCHECK_FOR_STACK_OVERFLOW” line. Now it appears the correct code is being generated.
Thank you for reporting back!