Closed dlly11 closed 1 year ago
Elf file does not contain CRC, which is required by the RP2040. You can either use bin2uf2 tool and add the CRC (it can generate raw binaries without making it uf2 image) and program that separately from the debug session.
Alternatively you can do that once, note the CRC value, place it in the linker/rp2040.ld instead of the dummy value 0xcccccccc. You will have to do this again if contents of the boot section changes or changes to the compiler make it compile into other binary code.
Thanks! I'll try and add it using your tool.
After adding the CRC value manually to the linker the generated elf file was able to be flashed via GDB fine.
Thanks for your help
Problem: When trying to load free_dap_rp2040.elf via GDB, GDB reports the file was written to the target but the target remains in BOOTSEL mode.
Tested loading picoprobe.elf onto the target and the target is flashed successfully.
Setup:
Debugger: RPi Pico running picoprobe Target: RPi Pico
OpenOCD Config: Version: 0.12.0
Config File:
Steps to reproduce:
openocd -f <config listed above>
arm-none-eabi-gdb free-dap-rp2040.elf
In GDB terminal
target remote :3333
load
monitor reset init
continue
GDB output:
lsusb
output