This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debug bootloader with gdb and openocd

Hello

I have a setup that work perfectly to debug applications but fails to work with the bootloader.

I'm starting openocd, then gdb and issue the following commands that give the traces:

(gdb) target remote :3333
Remote debugging using :3333
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x00015fd6 in ?? ()
(gdb) file out/nrf52-ble-adapter_bootloader.out
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from out/nrf52-ble-adapter_bootloader.out...
(gdb) monitor reset init
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000a80 msp: 0x20000400
(gdb) b main
Breakpoint 1 at 0xf8db4: file ./bootloader/main.c, line 132.
Note: automatically using hardware breakpoints for read-only addresses.
(gdb) cont
Continuing.




version are:
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.11.0-00155-ge392e485e (2021-03-15-16:43)
GNU gdb (xPack GNU Arm Embedded GCC, 64-bit) 10.1.90.20201028-git


I'm stuck, what am I doing wrong?

Parents Reply Children
No Data
Related