not sure where to put this
I created a new bare _board board settings in platformio to support my latest samd10 explained mini, which is a derivative of my settings for the samd21explained pro
everything is fine with the D21 board , openocd resets the device and flashes it
but with the mEDBG on the mini board I get
CURRENT: upload_protocol = cmsis-dap
openocd -d2 -s /Users/davidchristophermccabe/.platformio/packages/tool-openocd/scripts -f interface/cmsis-dap.cfg -c "set CHIPNAME ATSAMD11D14A" -f target/at91samdXX.cfg -c "program {.pio/build/baremetal_ATSAMD11/firmware.bin} verify reset; shutdown;"
xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-15:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
ATSAMD11D14A
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version =
Info : CMSIS-DAP: Serial# = ATML2378020200011252
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 400 kHz
Info : SWD DPIDR 0x0bc11477
Info : ATSAMD11D14A.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : ATSAMD11D14A.cpu: external reset detected
Info : Listening on port 3333 for gdb connections
Info : SWD DPIDR 0x0bc11477
Info : ATSAMD11D14A.cpu: external reset detected
Error: timed out while waiting for target halted
embedded:startup.tcl:449: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 474
at file "embedded:startup.tcl", line 449
This seems to stem from
$_TARGETNAME configure -event reset-deassert-post {
at91samd dsu_reset_deassert
}
in the generic openocd cfg file at91samdxx.cfg
removing doesnt help
I know there are differences in the EBDG in the d10 mini and D21 pro
any pointers ??? , hard to see what the fix as the specific implementation of mEBDBG on the mini board isnt well documented
thanks
dave