2020-02-06 03:21 PM
Hi, I'm trying to debug a FreeRTOS program and coming from a Keil + STM32CubeMX world, I'm having trouble setting up any of the eclipse based IDES to use the FreeRTOS thread aware debugging tools. So far, I've tried a combination of using the StateViewer, switching to J-Link, and installing the NXP plugin but nothing seems to work. The closest I've got is by following this thread here: https://community.st.com/s/question/0D50X0000BVp8RtSQJ/thread-awareness-debugging-in-freertos-stm32cubeide-110-has-a-bug-for-using-rtos-freertos-on-stlinkopenocd
but when I try to debug I'm running into the following error:
FreeRTOS: uxTopUsedPriority is not defined, consult the OpenOCD manual for a work-around
I've looked at the workaroun which seems to be based here: https://mcuoneclipse.com/2016/04/09/freertos-thread-debugging-with-eclipse-and-openocd/
https://github.com/arduino/OpenOCD/blob/master/contrib/rtos-helpers/FreeRTOS-openocd.c
but I'm not exactly sure how I implement this to into my program. I've tried to copy it into my freertos.c file but I still encounter the same error.
Is anyone please able to write a step by step process for dummies to get freeRTOS debugging working on STM32CubeIDE or System Workbench/Atollic from a STM32CubeMX workflow?
Solved! Go to Solution.
2020-05-05 06:48 PM
Please refer to the following, again. I wrote about the solution.
2020-05-05 06:48 PM
Please refer to the following, again. I wrote about the solution.
2021-02-09 01:39 AM
Hi,
STM32CubeIDE version >= 1.5.0 has now the support for FreeRTOS™ thread-aware debugging.
See chapter 6 (RTOS-aware debugging) in STM32CubeIDE user guide UM2609
Rgds
BT
2023-07-11 01:32 PM
Broken link. As per 07/11/23 this LINK works (it opens in a new tab).