FreeRTOS RTOS Kernel Awareness not working on CubeIDE 1.8.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-15 8:56 PM
I was previously using 1.5.1 and it was working fine, but after upgrade to 1.8.0, it's no longer working. I'm using a Segger J-Link. My Debug setting are in the picture below. This is for the device shown in the settings.
- Labels:
-
FreeRTOS
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-15 8:59 PM
I may have accidently found the answer. Not sure why, but disabling the SWV (Serial Wire Viewer) seems to fix the issue:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-18 4:09 AM
To be honest, RTOS aware debugging breaks regularly on my system, even in between debug sessions. The way i normally work around this is to set the RTOS variant on the debug settings to something else and then start a session only to stop it right away.
After that i set it back to FreeRTOS and start a new session. This workaround seems to do the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-18 8:55 AM
Yeah... I'm noticing that too. The solution I did above worked for a few sessions, then broke again. I will try your trick in the for future debugging sessions. Since my method was a change to the debug config, I'm starting to think that is the trigger that makes it work... some change to the debug config.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-21 12:52 AM
Hello there!
Me and one of the developers made a test with the J-Link RTOS with and without the SWV feature enabled but we were not able to see any issues.
Could you please explain what you mean by "Breaks", what exactly is it that stops working?
- Debugger not starting correctly?
- The "Debug view" does not render all the threads and/or tasks correctly?
- The source code is not inline with the programmed application? (which might indicate that the latest binary was not flashed properly)
Furthermore, could you try to create a new debug configuration from scratch to see if it changes the behavior in any way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-21 12:47 PM
I think the post is very clear with what "breaks". The thread aware aspect of the debugger is not working correctly. Your number 2.
As explained, I've tried different configurations on several different projects. Sometimes it works and sometimes it doesn't. As stated from TBuls, if you change the debug configuration, it will work for one or more sessions, but then stops working again. So I go back and forth between enabling and disabling SWV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-09 5:58 PM
A also cant get kernel aware debugging working. I have working debugging, SWV works (but is disabled). When I try enable kernel aware debugger settings, I get the message below when trying to start debugging:
Using STM32H753, ST-Link V3, FreeRTOS. Anybody have any ideas how to get this working?
