From: Rob M. <Rob...@u-...> - 2024-06-19 15:19:16
|
I am trying to use OpenOCD (v0.12.2) to program/debug an NXP MCNX947 chip (ARM CM33) on a FRDM board. I can get OpenOCD to connect but it always bombs out with "Unable to reset target". I've tried setting reset_config to none and to srst_only but neither has made a difference. Can anyone suggest any other ways forward? 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 |