2021-11-29 2:20 AM
Hi Community,
Today you will provide the answers, and I will ask the questions!
Looking at the statistics gathered by our tools (assuming customer consent given), we can see the huge popularity of designing software relying on an RTOS. FreeRTOS is widely used, and we assume that the adoption Azure ThreadX will also spread quickly.
As CubeIDE tools guys, we have invested some effort in RTOS debug features. To quickly summarize the RTOS debug offer, let's make a list:
In our view the RTOS support is now quite decent! ;)
What is puzzling is the lack of feedback and bug reports on these tools.
We don't want to invest time in features which very few customer need or care about!
Please use this thread to share your thoughts/feedback/experience with us!
2026-03-23 3:44 PM
Hello,
I am using latest STM32Cube IDE (2.1.1) and Nucleo-64 board with STM32L476 MCU. I am trying to use the ST-LINK that is present on the board. I did update the ST-LINK firmware to the latest version available.
In my Debug Configuration, I have Enable RTOS Proxy selected, driver FreeRTOS and Port ARM_CM4F.
Debugging works, but the FreeRTOS tasks are not displayed. Only Thread #1 is displayed, regardless of which FreeRTOS task happened to be paused (breakpoint).
Also, I can see the following error from the debugger:
Update threads. Failed collecting threads.
What would cause this error?
2026-03-26 1:37 AM
Hello everyone,
I have a case simillar to @DGabc.1's. Upgrading CubeIDE from the version that had MX integrated inside to the latest version where we have two standalone applications made my RTOS-based project undebuggable :x At least I cannot see the actual live task state when I stop the program. It was a really nice feature. Tried everything I swear. Hope the STM team is going to solve the issue soon.
I am not even sure what caused the problem. Trying to debug the project made with old CubeMX version did not really help. So I am guessing this is about CubeIDE... but why?
2026-03-26 1:59 AM
I had to check something, because one of my colleagues ran the project on his machine and it worked right away... It puzzled me but I think I found a temporary solution - I simply installed the older version of STM32CubeIDE (2.0.0). My guess is that rtosproxy driver changed. I cannot prove my thesis though that the driver is responsible. However, according to the release notes for the latest STM32Cube IDE v2.1.1 there is a new version of RTOS Proxy (v0.18.0). I think it might be it.
2026-03-26 2:00 AM - edited 2026-03-26 2:00 AM
Have a look at my previous reply in which I describe a solution for this bug in the RTOS-Proxy.
2026-03-26 2:56 AM
Been there... according to your reply:
"(...) So if you add "#define portREMOVE_STATIC_QUALIFIER" to your "FreeRTOSConfig.h" inside a USER CODE section the debugging should work with ST-Link and GDB as usual(...)"
adding the macro should fix the issue but it did not in my case :\
2026-03-26 3:21 AM
After Updating CubeIDE to 2.1.1 I encounter the same problem. I think RTOS-Proxy 0.18.0 is Broken.
RTOS-Proxy 0.17.0 is working fine with and without my workaround.
For the time you should not upgrade to CubeIDE 2.1.x
The issue is also tracked in the errata for the 2.1.x Release
2026-03-26 4:10 AM
Thank you @DeeFuse for pointing to the errata.
I did try different workarounds, mentioned here and in other posts. Nothing worked.
Going to downgrade CubeIDE.