This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/LAUNCHXL-CC1312R1: Openocd Error: Invalid ACK (6) in DAP response

Part Number: LAUNCHXL-CC1312R1

Tool/software: Linux

I have compiled latest version of openocd.

I cannot manage to flash, I get :

Error: Invalid ACK (6) in DAP response

I tried with a more minimalist use case, just reading a memory address from factory config with a known reset value :

openocd  -f board/ti_cc13x2_launchpad.cfg  --debug=2 -c "init" -c "mdw phys 0x50001308" -c "exit"

This will sometimes work :

Open On-Chip Debugger 0.10.0+dev-00571-g29c81a8 (2018-11-06-17:47)
Licensed under GNU GPL v2
For bug reports, read
    openocd.org/.../bugs.html
debug_level: 2
adapter speed: 2500 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
adapter_nsrst_delay: 100
Info : XDS110: connected
Info : XDS110: firmware version = 2.3.0.15
Info : XDS110: hardware version = 0x0023
Info : XDS110: serial number = L2100272)
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 2500 kHz
Info : JTAG tap: cc13x2.jrc tap/device found: 0x2bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x2)
Info : JTAG tap: cc13x2.cpu enabled
Info : cc13x2.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3714 for gdb connections
0x50001308: 98989f9f
Info : XDS110: disconnected

But will sometimes fails

Open On-Chip Debugger 0.10.0+dev-00571-g29c81a8 (2018-11-06-17:47)
Licensed under GNU GPL v2
For bug reports, read
    openocd.org/.../bugs.html
debug_level: 2
adapter speed: 2500 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
adapter_nsrst_delay: 100
Info : XDS110: connected
Info : XDS110: firmware version = 2.3.0.15
Info : XDS110: hardware version = 0x0023
Info : XDS110: serial number = L2100272)
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 2500 kHz
Info : JTAG tap: cc13x2.jrc tap/device found: 0x2bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x2)
Info : JTAG tap: cc13x2.cpu enabled
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (6) in DAP response
Error: Invalid ACK (4) in DAP response
in procedure 'init'
in procedure 'ocd_bouncer'

End of log, with higher verbosity:

Debug: 380 142 command.c:143 script_debug(): command - runtest ocd_runtest 10
Info : 382 142 tcl.c:650 jtag_tap_handle_event(): JTAG tap: cc13x2.cpu enabled
Debug: 383 142 core.c:327 jtag_call_event_callbacks(): jtag event: TAP enabled
Debug: 384 142 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_dap init
Debug: 385 142 command.c:143 script_debug(): command - ocd_dap ocd_dap init
Debug: 387 143 arm_dap.c:105 dap_init_all(): Initializing all DAPs ...
Debug: 388 143 arm_adi_v5.c:651 dap_dp_init(): cc13x2.dap
Error: 389 143 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 390 143 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 391 144 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 392 144 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 393 145 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 394 145 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 395 146 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 396 146 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 397 147 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 398 147 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 399 148 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 400 149 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 401 149 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 402 150 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 403 150 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 404 151 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 405 151 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 406 152 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 407 152 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 408 153 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 409 153 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 410 154 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 411 154 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 412 155 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 413 155 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 414 156 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 415 156 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 416 157 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 417 157 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Error: 418 158 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (6) in DAP response
Debug: 419 158 arm_adi_v5.c:696 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 420 158 arm_adi_v5.h:447 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Error: 421 159 adi_v5_jtag.c:376 jtagdp_overrun_check(): Invalid ACK (4) in DAP response
Debug: 422 159 command.c:642 run_command(): Command failed with error code -107
User : 423 159 command.c:705 command_run_line(): in procedure 'init'
in procedure 'ocd_bouncer'
Debug: 424 159 command.c:642 run_command(): Command failed with error code -4
User : 425 159 command.c:705 command_run_line():
Debug: 426 159 target.c:1998 target_free_all_working_areas_restore(): freeing all working areas
Info : 427 160 xds110.c:413 usb_disconnect(): XDS110: disconnected