March 29, 2024, 03:05:45 PM

Help for openocd config file

Started by SeanBoe, February 20, 2022, 03:32:14 AM

Previous topic - Next topic

SeanBoe

Hi, I'm trying to burn a bootloader on an at91samd21g18 using an Olimex arm-usb-ocd-h and a JTAG - swd adapter. This is my openocd config file:


source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
source [find interface/ftdi/olimex-arm-jtag-swd.cfg]

source [find target/at91samdXX.cfg]

adapter_khz 100
adapter_nsrst_delay 100

init
targets
reset halt
at91samd bootloader 0
program samd21_sam_ba verify
at91samd bootloader 8192
reset
shutdown


I get:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
adapter speed: 100 kHz
adapter_nsrst_delay: 100
Info : clock speed 100 kHz
in procedure 'init' called at file "openocd.cfg", line 25
in procedure 'ocd_bouncer'


I'm at quite a loss here. I'm on a Jetson nano running ubuntu. Any help would be appreciated!



LubOlimex

Well, doesn't look completly not working, it starts well. When you open openocd.cfg, what is written on line #25?

Did you connect the SWD adapter directly to the OCD-H? Did you track if the SWD is not connected in reverse to the target? Is the target properly powered?
Technical support and documentation manager at Olimex