Skip to main content
VRadu
Visitor II
May 18, 2019
Question

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

  • May 18, 2019
  • 0 replies
  • 497 views

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.

This topic has been closed for replies.