(resolved) Need help: "Failed to launch GDB: Load failed" -- when the load succussed

Hello all,

I have things running now with the Daisy Bootloader, the DFU tool, and both SRAM and QSPI.

A few notes to others who may come across this to hopefully help you out:

  1. Daisy Bootloader on reset needs in press and let go ‘reset’ and then press and let go ‘boot’ to have the bootloader stay in the DFU mode. I didn’t quite have that down the first time I was trying this. (from this post)

  2. I updated my launch.json in two ways:
    – Changed “preLaunchTask” to be “build_and_program_dfu”, that way I could use the F5 in VS Code.
    – Modified openOCDLaunchCommands to add in the line: “gdb_breakpoint_override hard” as the last line in the section.

  3. I plan to add in the use of System::ResetToBootloader in my code for faster reboot / re-programming time.

Hope that helps others down the line.

Thanks,
Brett

1 Like