cancel
Showing results for 
Search instead for 
Did you mean: 

Adding FreeRTOS without stack overflow check enabled leads to debug control loss.

VRadu
Associate

As the title says, on a STM32F3DISCOVERY development board, if I create a fresh project with CubeMX,using OpenSTM32Workbench as an IDE, enable SWD support and FreeRTOS, but without the support for stack overflow detection in the FreeRTOS configuration, I can start a debug session and I can initially step through, but as soon as I let it run continuuously, if I then pause the target, I can not control it anymore. Connnection seems to be down then, I can't reset it, etc.

Enabling the stack overflow detection (version 2), everything works fine. So will just removing FreeRTOS. This does not seem to be because of some stack overflow since I tried also increasing the stack to quite large sizes, and I'm not doing anything anyways, it's just the clean project state.

Best,

Vlad R.

0 REPLIES 0