I need to use OpenOCD to program/debug my FRDM-MCXN947 board. I have updated the debug chip on the board to use CMSIS-DAP and have been able to connect OpenOCD however OpenOCD always bombs out with the error embedded:startup.tcl:1524: Error: ** Unable to reset target **.
I have tried setting the OpenOCD reset_config to none and to srst_only but neither has helped. Can anyone suggest a working OpenOCD configuration for this board?
FYI, here is the full output:
openocd -f ../openocd/scripts/interface/cmsis-dap.cfg -c "transport select swd" -c "reset_config srst_only" -c "gdb_port disabled" -c "tcl_port disabled" -c "telnet_port disabled" -c "adapter speed 1000" -c "program /TEMP/test_main reset"
xPack Open On-Chip Debugger 0.12.0+dev-01312-g18281b0c4-dirty (2023-09-04-22:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 1.10
Info : CMSIS-DAP: Serial# = KBEE1LS3QWE4M
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 1000 kHz
Warn : gdb services need one or more targets defined
embedded:startup.tcl:1524: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1561
at file "embedded:startup.tcl", line 1524