Hello all,
I am looking into the following error:
"Failed to launch GDB: Load failed (from target-download)"
When looking at the log the download shows success, but then it has a get_status error 74 and this seems to throw off the debugger.
From the DFU download log:
File downloaded successfully
Error during download get_status
make: *** [../libDaisy/core/Makefile:330: program-dfu] Error 74
Here is the last part of the GDB log :
GDB -> App: {"output":"","token":13,"outOfBandRecord":[{"isStream":false,"type":"status","asyncClass":"download","output":[]}]}
-> 13^error,msg="Load failed"
GDB -> App: {"output":"","token":13,"outOfBandRecord":[],"resultRecords":{"resultClass":"error","results":[["msg","Load failed"]]}}
14-interpreter-exec console "monitor reset halt"
Failed to launch GDB: Load failed (from target-download)
From the debugger terminal:
[2023-06-03T04:19:49.901Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
Looking at the DFU data it shows
Downloading element to address = 0x90040000, size = 164832
Erase [=========================] 100% 164832 bytes
Erase done.
Download [=========================] 100% 164832 bytes
Download done.
File downloaded successfully
Error during download get_status
make: *** [../libDaisy/core/Makefile:330: program-dfu] Error 74
Here are some details on the setup:
- I am running the Daisy Bootloader
- I have APP_TYPE = BOOT_QSPI in the makefile
- I have the Daisy in the bootloader mode where i can be programmed via the DFU. (tap and release on reset button, then tap and release on boot button)
- I then used the Visual Studio Code âF5â to start debugging.
- The app builds and deploys as shown above.
Is there any way to not have the system fail the download if that error 74 is causing the issue?
Thanks,
Brett