Breakpoints not hit while debugging #457
-
I tried to get debugging with picoprobe to work under Windows 10. While the openocd included in this does not work atm, there is also a precompiled one from digikey. Debugging_RP2040\openocd\tcl>..\src\openocd.exe -f interface/picoprobe.cfg -f target/rp2040.cfg With the gdb from this core: k>C:\Users\dosp\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\1.3.2-a-9d55fd1\bin\arm-none-eabi-gdb.exe rp2040_blink.ino.elf
=> pi pico is blinking, but the breakpoint was not hit. I retried several times also with setup, didn't work. I highlighted some warnings that may be relevant?! what setting in the board configuration triggers -g flag ? "configuration": "flash=2097152_0,freq=125,opt=Debug,rtti=Enabled,dbgport=Disabled,dbglvl=All,usbstack=picosdk", I tried to use another gbd binary, content of the official samd core (?): And, with that gdb, debugging works like a charm... also, the warnings displayed from the gdb.exe delivered with this core: **> warning: Can not parse XML target description; XML support was disabled at compile time
are not displayed when i use the other gdb binary. I'm hardly know anything about gcc toolchain, but that seems to be some problem with the binaries of this core... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Are you sure you've got the right EL:F loaded in GDB? I just tried under Linux on a simple test and things break properly. Alternatively, maybe the OpenOCD you're using has some issues? I've never seen those This is under Linux with the latest repo at git head (which is 1.10.0 with 2 minor, unrelated API changes) openocd
GDB
|
Beta Was this translation helpful? Give feedback.
-
I don't know what fixed it, but in the very latest Toolchain + Core version, this actually works for me in PlatformIO. Integration update soon. Exciting!! |
Beta Was this translation helpful? Give feedback.
Are you sure you've got the right EL:F loaded in GDB? I just tried under Linux on a simple test and things break properly. Alternatively, maybe the OpenOCD you're using has some issues? I've never seen those
XML support was disabled...
errors you've got.This is under Linux with the latest repo at git head (which is 1.10.0 with 2 minor, unrelated API changes)
openocd