Debugging app in SRAM? (Daisy)

Hi all,

Due to code space constraints I am forced to use the seed bootloader and run the program from SRAM. Is there a way to debug such a setup other than UART? I am trying to debug USB related issues so I cannot use USB CDC for logging either. It would be great if there would be a way to use GDB.

Thank you


You can do this, the same as normal via the mini-JTAG header on board.

There are a few minor differences from normal:

  1. If you don’t have gdb_breakpoint_override hard in your launch.json "openOCDLaunchCommands" you’ll want to add it so that breakpoints work properly.
  2. You will need to load the program you want to debug via the daisy bootloader prior to trying to connect via openocd.

With those considerations in mind, you can set your executable to your application .elf file, and you should be good to go!

Hope that helps!