-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger does not pause on breakpoint when FreeRTOS is enabled #31
Comments
Ok - since you are using OpenOCD for your GDB - have you included the FreeRTOS-openocd helper in your project - https://github.com/arduino/OpenOCD/blob/master/contrib/rtos-helpers/FreeRTOS-openocd.c This is required for FreeRTOS v7.5 or above - as OpenOCDs FreeRTOS support was written based upon an old version of FreeRTOS and isn't compatible with newer versions without that helper file (There are some special instructions in the comments of that file that you need if you are using --gc-sections in your linking). |
Oh I must have missed that, adding this file indeed solved the issue, thanks! The behavior is still a bit funky though: when hitting a breakpoint VSCode tends to "focus" on the wrong thread (it says "paused on breakpoint" for a random thread that was not actually the one with the breakpoint). |
Ok - thanks - when I get a chance I'll update the documentation to mention that helper file. Without it GDB will get confused - and unfortunately there isn't anything the front-end can do about that. GDB with RTOS is still a bit flakey at times. If you find any details about the other issue let me know and I can try to look into that. |
I tried the newly added RTOS support but it does not seem to work for me as intended.
Steps to reproduce:
"rtos": "FreeRTOS"
to launch.jsonvTaskStartScheduler
.Debug console output:
I'm using:
STM32F405RG
STLink V2
OpenOCD 0.10.0
VSCode 1.19.0 on Linux
launch.json:
The text was updated successfully, but these errors were encountered: