Hello, Im working on a custom board with ATSAMD21E18 microcontroller and flashing it with RaspberryPi. It gives me that error when I want to flash it. What can be the problem and how can I solve this?
Code:
Open On-Chip Debugger 0.10.0+dev-00530-g9e2883b0 (2018-09-10-11:25)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
BCM2835 GPIO config: tck = 11, tms = 25, tdi = 10, tdo = 9
BCM2835 GPIO nums: swclk = 11, swdio = 25
BCM2835 GPIO nums: swclk = 25, swdio = 24
BCM2835 GPIO config: trst = 7
BCM2835 GPIO config: srst = 18
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
adapter_nsrst_delay: 100
adapter_nsrst_assert_width: 100
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : JTAG and SWD modes enabled
Info : clock speed 400 kHz
Info : SWD DPIDR 0x0bc11477
Info : atsamd21e18a.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* atsamd21e18a.cpu cortex_m little atsamd21e18a.cpu halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xd1000003 pc: 0xfffffffe msp: 0xffffffd8
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* atsamd21e18a.cpu cortex_m little atsamd21e18a.cpu halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xd1000003 pc: 0xfffffffe msp: 0xffffffd8
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xd1000003 pc: 0xfffffffe msp: 0xffffffd8
** Programming Started **
auto erase enabled
Info : SAMD MCU: SAMD21E18A (256KB Flash, 32KB RAM)
wrote 8192 bytes from file trinket.bin in 0.300111s (26.657 KiB/s)
** Programming Finished **
** Verify Started **
verified 8192 bytes in 0.674242s (11.865 KiB/s)
** Verified OK **
target halted due to breakpoint, current mode: Handler HardFault
xPSR: 0x61000003 pc: 0x2000002e msp: 0xffffffd8
shutdown command invoked
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections