GDB/OpenOCD Debugging with TinyGo on the Pico #4006
-
Hi there, I'm developing a product using TinyGo on an RP2040, and I'm trying to get a decent debug setup going. The GDB session starts up just fine, however the MCU seems to lock up once I enter continue. I then have to use CTRL + C to interrupt it, and detach the MCU with CTRL+ D. Has anyone been successful in debugging like this already? If so, can you help me out please? Terminal output below:
Thanks, Jason |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For anyone else with this issue, what was happening is the target MCU wasn't being reset after being flashed, so it hung in a weird state. Use the command |
Beta Was this translation helpful? Give feedback.
For anyone else with this issue, what was happening is the target MCU wasn't being reset after being flashed, so it hung in a weird state. Use the command
monitor reset
to do this, then the debug commands likecontinue
will work as expected. I also read the openOCD manual which I found really helpful: https://openocd.org/doc/pdf/openocd.pdf and was able to write my own config files and custom shell scripts after that.