Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Unable to debug FreeRTOS tasks in SW4STM32 on STM32H7 processors

Hi there,

I was able to solve the initial problem where you can’t step anymore and the debugger freezes once you set a breakpoint inside a thread (even though it worked without a problem in the main() function). I fixed it in CubeMX. Go into the Middleware->Freertos section and there go to Config parameters. Here find the Software timers definitions and enable them. This fixed it for me.

I’m not sure why this fixes it though. Maybe it has to do with the way FreeRtos and HAL interact with the SysTick (I’ve read somewhere that there are 2 SysTicks or something in that direction).

But that would still not explain it fully as I was able to debug without Eclipse using openOcd and gdb-multiarch even in the threads. But even when I replicated the same setup in Eclipse the debug freeze error occurred. So for gdb+openocd enabling the software timer definitions was not necessarry.

So this solution might not be perfect (or at least I don’t understand it well) but at least the problem disappeared.

Cheers

Same here!
Thanks enabling the timers makes it.

STM32H743ZI2