I am working on various RP2040 boards. These have an QPSI flash to hold the code. I am also trying to load some data into another part of flash, and am running into some difficulties.
If I use JLinkExe, connect, and use the LoadFile command, it seems to be able to load the image.
If I convert the image to elf, and use a gdb command "load image.elf 0x10200000", it does seem to load. However, reads within the debugger seem to return just zeros. I was able to get the flash data to appear by actually power-cycling the target. "monitor reset" did not seem sufficient.
The gdb command "restore" fails to load the image at all. This works on other targets I've debugged (NXP LPC55S69 with the JLink firmware in the debug MCU).
Any ideas what might be happening here, and what is the best way to reliably load this image? It'd be nice if I could do it just from my gdb script.
Thanks,
David
If I use JLinkExe, connect, and use the LoadFile command, it seems to be able to load the image.
If I convert the image to elf, and use a gdb command "load image.elf 0x10200000", it does seem to load. However, reads within the debugger seem to return just zeros. I was able to get the flash data to appear by actually power-cycling the target. "monitor reset" did not seem sufficient.
The gdb command "restore" fails to load the image at all. This works on other targets I've debugged (NXP LPC55S69 with the JLink firmware in the debug MCU).
Any ideas what might be happening here, and what is the best way to reliably load this image? It'd be nice if I could do it just from my gdb script.
Thanks,
David