System Workbench for STM32

FreeRTOS multi-threaded debug

After reading through some older posts and OpenOCD documentation, I found the easiest way to enable multi-threaded debugging when using FreeRTOS in a STM32Cube project, is to:

  1. In your Debug Configuration: In the Debugger tab, in the OpenOCD Options field, add the following line (including quotes)
    -c “$_TARGETNAME configure -rtos auto”

  1. Unfortunately this resulted in an error about missing symbols, and had to be corrected by adding the following to FreeRTOSConfig.h file
    //define missing uxTopReadyPriority symbol required by OpenOCD to a constant in tasks.c
    #define uxTopReadyPriority uxTopUsedPriority

After this, I can see information about threads in my System Workbench Debug window:

Notes to System Workbench producers:
- Firstly, thank you for an awesome IDE. Words cannot express my gratitude!
- Any chance you can add a checkbox to enable #1 above?
- How about avoiding the need for #2? Or is the latter a request for STM32CubeMX producers?


Newest Forum Posts

  1. Problem programming chip by JimELi, 2019-03-25 21:26
  2. CubeMT code, generated for SW4STM32 by market14, 2019-03-25 03:57
  3. Problem verifing and downloading code by strohmas, 2019-03-24 23:16
  4. Nucleo-144 TCP Problems by mklee, 2019-03-22 19:25
  5. CubeMX function pack development by ajcurtis84, 2019-03-22 18:59
  6. STM32CubeMX LWIP not working by leflingue, 2019-03-22 12:22
  7. STM32CubeMX LWIP not working by matsjuhlin, 2019-03-22 09:13
  8. STM32F746-Discovery by stanandrzej, 2019-03-21 12:41
  9. System Workbench takes up to five minutes to load by Servant, 2019-03-21 02:39
  10. How to use multiple ST boards simultaneously by Kevarek, 2019-03-20 19:21

Last-Modified Blogs