-
Notifications
You must be signed in to change notification settings - Fork 20
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
can't debug when used in conjunction with ChRT - no thread support? #11
Comments
Cannot access memory at address 0x0 (from break-insert "/home/buzz/Teensy4/piotest/.pio/libdeps/teensy40/ChRt/src/rt/src/chregistry.c:257") |
I'm not sure exactly what the GDB command is that its running, so i'm pasting a few of the messages that VSCode/PIO debugger gives me. |
here's a short app that causes it:
and my platformio.ini:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#include "TeensyDebug.h"
#include "ChRt.h"
... etc ...
When trying to debug something as simple as one of the ChRt example scripts, just adding the above #include ... to it....
https://github.com/greiman/ChRt/blob/master/examples/chBlink/chBlink.ino
It seems that TeensyDebug doesn't provide enough functionality to work with 'threads'... its my guess that that its missing the ability to properly respond to one of the thread commands that VSCode / PIO uses [my debuggger gui of choice], eg , not 100% sure what the command is that PIO is trying to do, but perhaps its trying to switch thread with 'thread x' or 'info threads' or similar.
assorted VSCode error/s:
exception at:
https://sourceware.org/gdb/onlinedocs/gdb/Threads.html
The text was updated successfully, but these errors were encountered: