-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to reset target chip? #10
Comments
This is again something that is just not implemented yet in the rsp server so as #11. Though thanks for sending the command flow, now I know what it needs to handle when I implement it :) |
After having a deeper look it seems like gdb target remote does not expect the target to reset itself while there is a connection in place. As you mentioned |
In fact PlatformIO already uses But I'm in no way a GDB server expert so I can't say for sure if it has more implications. 😅 |
Interesting, then it would not hurt to try :) The debugger interface with pyedbglib should at least have no problem resetting the device as long as the server understands what the gdb client wants. Could be that it works just fine since it is ignoring the commands it does not have a handle for it.
Hehe, would not claim that either 😅 documentation for it is sometimes so lacking that I end up just connecting up gdb and see what commands the sessions sends. |
Note to self:
|
From OpenOCD commands like
monitor init
andmonitor reset halt
are available to reset (and halt after reset) the chip. (docs).When I connect to the GDB server opened by this script with avr-gdb (7.3.0) and try that, I however get
with script output
How do I reset the target chip with this GDB server?
The text was updated successfully, but these errors were encountered: