Started by gyurco, August 16, 2021, 07:40:24 PM

Previous topic - Next topic



I'm trying to flash the above combo with openocd, however I just get an error:

openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -f target/atsamv.cfg --command "adapter speed 10000; init; reset init; sleep 1; flash protect 0 0 last off; flash erase_sector 0 0 last; flash write_bank 0 firmware.bin 0; resume; shutdown"

Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
Info : FTDI SWD mode enabled
Info : flash bank command
Info : clock speed 10000 kHz
Info : SWD DPIDR 0x0bd11477
Info : samv.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : starting gdb server for samv.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Info : device id = 0xa1220c01
Info : SWD DPIDR 0x0bd11477
Error: Failed to write memory at 0x00400004
Error: failed to buffer page at 0x00400000
Error: error writing to flash at address 0x00400000 at offset 0x00000000

Debugging with GDB however works. Any idea what can be wrong?


Solved: 10000 kHz for the adapter clock speed was too much, it works with the default (1800).