OpenOCD PR8667 fails to JTAG-scan AT32F403A

Pasted by ALTracer on Sat Feb 8 12:23:55 2025 UTC as Text only
Open On-Chip Debugger 0.12.0+dev-gad4c39b (2025-02-06-22:16)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
User : 3 2 options.c:52 configuration_output_handler(): debug_level: 3User : 4 2 options.c:52 configuration_output_handler(): 
Debug: 5 2 options.c:348 parse_cmdline_args(): ARGV[0] = "./src/openocd"
Debug: 6 2 options.c:348 parse_cmdline_args(): ARGV[1] = "-s"
Debug: 7 2 options.c:348 parse_cmdline_args(): ARGV[2] = "./tcl/"
Debug: 8 2 options.c:348 parse_cmdline_args(): ARGV[3] = "-f"
Debug: 9 2 options.c:348 parse_cmdline_args(): ARGV[4] = "interface/cmsis-dap.cfg"
Debug: 10 2 options.c:348 parse_cmdline_args(): ARGV[5] = "-c"
Debug: 11 2 options.c:348 parse_cmdline_args(): ARGV[6] = "transport select jtag; reset_config srst_only"
Debug: 12 2 options.c:348 parse_cmdline_args(): ARGV[7] = "-f"
Debug: 13 2 options.c:348 parse_cmdline_args(): ARGV[8] = "./tcl/target/artery/at32f4x.cfg"
Debug: 14 2 options.c:348 parse_cmdline_args(): ARGV[9] = "-c"
Debug: 15 2 options.c:348 parse_cmdline_args(): ARGV[10] = "init; reset init; shutdown"
Debug: 16 2 options.c:348 parse_cmdline_args(): ARGV[11] = "-d3"
Debug: 17 2 options.c:233 add_default_dirs(): bindir=/usr/bin
Debug: 18 2 options.c:234 add_default_dirs(): pkgdatadir=/usr/share/openocd
Debug: 19 2 options.c:235 add_default_dirs(): exepath=/home/altracer/git/openocd-org/openocd/src
Debug: 20 2 options.c:236 add_default_dirs(): bin2data=../share/openocd
Debug: 21 2 configuration.c:33 add_script_search_dir(): adding /home/altracer/.config/openocd
Debug: 22 2 configuration.c:33 add_script_search_dir(): adding /home/altracer/.openocd
Debug: 23 2 configuration.c:33 add_script_search_dir(): adding /home/altracer/git/openocd-org/openocd/src/../share/openocd/site
Debug: 24 2 configuration.c:33 add_script_search_dir(): adding /home/altracer/git/openocd-org/openocd/src/../share/openocd/scripts
Debug: 25 2 command.c:153 script_debug(): command - ocd_find interface/cmsis-dap.cfg
Debug: 26 2 configuration.c:88 find_file(): found ./tcl//interface/cmsis-dap.cfg
Debug: 27 2 command.c:153 script_debug(): command - adapter driver cmsis-dap
Debug: 28 2 command.c:153 script_debug(): command - transport select jtag
Debug: 29 2 command.c:153 script_debug(): command - reset_config srst_only
User : 30 2 options.c:52 configuration_output_handler(): srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srstUser : 31 2 options.c:52 configuration_output_handler(): 
Debug: 32 2 command.c:153 script_debug(): command - ocd_find ./tcl/target/artery/at32f4x.cfg
Debug: 33 2 configuration.c:88 find_file(): found ./tcl/target/artery/at32f4x.cfg
Debug: 34 2 command.c:153 script_debug(): command - ocd_find target/swj-dp.tcl
Debug: 35 2 configuration.c:88 find_file(): found ./tcl//target/swj-dp.tcl
Debug: 36 2 command.c:153 script_debug(): command - transport select
Debug: 37 3 command.c:153 script_debug(): command - transport select
Debug: 38 3 command.c:153 script_debug(): command - transport select
Debug: 39 3 command.c:153 script_debug(): command - transport select
Debug: 40 3 command.c:153 script_debug(): command - jtag newtap at32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4ba00477
Debug: 41 3 tcl.c:404 handle_jtag_newtap_args(): Creating New Tap, Chip: at32f4x, Tap: cpu, Dotted: at32f4x.cpu, 8 params
Debug: 42 3 core.c:1481 jtag_tap_init(): Created Tap: at32f4x.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 43 3 command.c:153 script_debug(): command - dap create at32f4x.dap -chain-position at32f4x.cpu
Debug: 44 3 command.c:153 script_debug(): command - target create at32f4x.cpu cortex_m -endian little -dap at32f4x.dap
Debug: 45 3 command.c:259 register_command(): command 'tpiu' is already registered
Debug: 46 3 command.c:259 register_command(): command 'rtt' is already registered
Debug: 47 3 command.c:153 script_debug(): command - at32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x1000
Debug: 48 3 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas
Debug: 49 3 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas
Debug: 50 3 command.c:153 script_debug(): command - flash bank at32f4x.flash artery 0x08000000 0 0 0 at32f4x.cpu
Debug: 51 3 tcl.c:1307 handle_flash_bank_command(): 'artery' driver usage field missing
Debug: 52 3 command.c:153 script_debug(): command - adapter speed 1000
Debug: 53 3 adapter.c:253 adapter_config_khz(): handle adapter khz
Debug: 54 3 adapter.c:216 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 55 3 adapter.c:216 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 56 3 command.c:153 script_debug(): command - transport select
Debug: 57 3 command.c:153 script_debug(): command - cortex_m reset_config sysresetreq
User : 58 3 options.c:52 configuration_output_handler(): cortex_m reset_config sysresetreqUser : 59 3 options.c:52 configuration_output_handler(): 
Debug: 60 3 command.c:153 script_debug(): command - init
Debug: 61 3 command.c:153 script_debug(): command - target init
Debug: 62 3 command.c:153 script_debug(): command - target names
Debug: 63 3 command.c:153 script_debug(): command - at32f4x.cpu cget -event gdb-flash-erase-start
Debug: 64 3 command.c:153 script_debug(): command - at32f4x.cpu configure -event gdb-flash-erase-start reset init
Debug: 65 3 command.c:153 script_debug(): command - at32f4x.cpu cget -event gdb-flash-write-end
Debug: 66 3 command.c:153 script_debug(): command - at32f4x.cpu configure -event gdb-flash-write-end reset halt
Debug: 67 3 command.c:153 script_debug(): command - at32f4x.cpu cget -event gdb-attach
Debug: 68 3 command.c:153 script_debug(): command - at32f4x.cpu configure -event gdb-attach halt 1000
Debug: 69 3 target.c:1588 handle_target_init_command(): Initializing targets...
Debug: 70 3 semihosting_common.c:109 semihosting_common_init():  
Debug: 71 7 cmsis_dap_usb_bulk.c:124 cmsis_dap_usb_open(): could not open device 0x1d6b:0x0003: Access denied (insufficient permissions)
Debug: 72 7 cmsis_dap_usb_bulk.c:124 cmsis_dap_usb_open(): could not open device 0x0bda:0xb00e: Access denied (insufficient permissions)
Debug: 73 8 cmsis_dap_usb_bulk.c:169 cmsis_dap_usb_open(): found product string of 0x0d28:0x0204 'stm32f411blackpill CMSIS-DAP'
Debug: 74 8 cmsis_dap_usb_bulk.c:189 cmsis_dap_usb_open(): enumerating interfaces of 0x0d28:0x0204
Debug: 75 8 cmsis_dap_usb_bulk.c:236 cmsis_dap_usb_open(): found interface 0 string 'CMSIS-DAP v1'
Debug: 76 8 cmsis_dap_usb_bulk.c:256 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out
Debug: 77 8 cmsis_dap_usb_bulk.c:124 cmsis_dap_usb_open(): could not open device 0x0408:0x5365: Access denied (insufficient permissions)
Debug: 78 8 cmsis_dap_usb_bulk.c:124 cmsis_dap_usb_open(): could not open device 0x1d6b:0x0002: Access denied (insufficient permissions)
Info : 79 78 cmsis_dap.c:1164 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD supported
Info : 80 78 cmsis_dap.c:1164 cmsis_dap_get_caps_info(): CMSIS-DAP: JTAG supported
Info : 81 86 cmsis_dap.c:1141 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 2.1
Info : 82 94 cmsis_dap.c:1126 cmsis_dap_get_serial_info(): CMSIS-DAP: Serial# = 3698364A3132
Info : 83 102 cmsis_dap.c:1339 cmsis_dap_init(): CMSIS-DAP: Interface Initialised (JTAG)
Debug: 84 118 cmsis_dap.c:1383 cmsis_dap_init(): CMSIS-DAP: Packet Count = 8
Debug: 85 118 cmsis_dap.c:1386 cmsis_dap_init(): Allocating FIFO for 4 pending packets
Info : 86 126 cmsis_dap.c:1197 cmsis_dap_get_status(): SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 0 nTRST = 0 nRESET = 1
Info : 87 158 cmsis_dap.c:1438 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 88 158 adapter.c:216 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 89 158 adapter.c:220 adapter_khz_to_speed(): have adapter set up
Debug: 90 166 adapter.c:216 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 91 166 adapter.c:220 adapter_khz_to_speed(): have adapter set up
Info : 92 166 adapter.c:180 adapter_init(): clock speed 1000 kHz
Debug: 93 166 openocd.c:133 handle_init_command(): Debug Adapter init complete
Debug: 94 166 command.c:153 script_debug(): command - transport init
Debug: 95 166 transport.c:219 handle_transport_init(): handle_transport_init
Debug: 96 174 core.c:836 jtag_add_reset(): SRST line released
Debug: 97 174 core.c:861 jtag_add_reset(): TRST line released
Debug: 98 174 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 99 174 command.c:153 script_debug(): command - jtag arp_init
Debug: 100 174 core.c:1515 jtag_init_inner(): Init JTAG chain
Debug: 101 174 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 102 174 cmsis_dap.c:1495 cmsis_dap_execute_tlr_reset(): cmsis-dap JTAG TLR_RESET
Debug: 103 182 core.c:1241 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 104 182 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 105 198 cmsis_dap.c:1495 cmsis_dap_execute_tlr_reset(): cmsis-dap JTAG TLR_RESET
Info : 106 206 core.c:1139 jtag_examine_chain_display(): JTAG tap: at32f4x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Debug: 107 206 core.c:1371 jtag_validate_ircapture(): IR capture validation scan
Debug: 108 214 core.c:1428 jtag_validate_ircapture(): at32f4x.cpu: IR capture 0x01
Debug: 109 214 command.c:153 script_debug(): command - dap init
Debug: 110 214 arm_dap.c:96 dap_init_all(): Initializing all DAPs ...
Debug: 111 214 arm_dap.c:120 dap_init_all(): DAP at32f4x.cpu configured by default to use ADIv5 protocol
Debug: 112 214 arm_adi_v5.c:783 dap_dp_init(): at32f4x.dap
Debug: 113 214 arm_adi_v5.c:816 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 114 214 arm_adi_v5.h:682 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 115 246 arm_adi_v5.c:824 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 116 246 arm_adi_v5.h:682 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 117 286 openocd.c:150 handle_init_command(): Examining targets...
Debug: 118 286 target.c:674 target_examine_one(): [at32f4x.cpu] Examination started
Debug: 119 287 target.c:1774 target_call_event_callbacks(): target event 19 (examine-start) for core at32f4x.cpu
Debug: 120 287 arm_adi_v5.c:1193 dap_get_ap(): refcount AP#0x0 get 1
Debug: 121 382 arm_adi_v5.c:1136 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 122 406 arm_adi_v5.c:934 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 123 446 target.c:2562 target_read_u32(): address: 0xe000ed00, value: 0x410fc241
Info : 124 446 cortex_m.c:2643 cortex_m_examine(): [at32f4x.cpu] Cortex-M4 r0p1 processor detected
Debug: 125 446 cortex_m.c:2666 cortex_m_examine(): [at32f4x.cpu] cpuid: 0x410fc241
Debug: 126 478 target.c:2562 target_read_u32(): address: 0xe000ef40, value: 0x10110021
Debug: 127 478 cortex_m.c:2673 cortex_m_examine(): [at32f4x.cpu] Cortex-M4 floating point feature FPv4_SP found
Debug: 128 510 target.c:2562 target_read_u32(): address: 0xe000edf0, value: 0x02030003
Debug: 129 510 cortex_m.c:2739 cortex_m_examine(): [at32f4x.cpu] reset happened some time ago, ignore
Debug: 130 510 target.c:2650 target_write_u32(): address: 0xe000edfc, value: 0x01000000
Debug: 131 542 target.c:2650 target_write_u32(): address: 0xe0000fb0, value: 0xc5acce55
Debug: 132 606 target.c:2562 target_read_u32(): address: 0xe0000e80, value: 0x00010009
Debug: 133 606 target.c:2650 target_write_u32(): address: 0xe0000e80, value: 0x00010008
Debug: 134 670 target.c:2562 target_read_u32(): address: 0xe0000e80, value: 0x00010008
Debug: 135 670 target.c:2650 target_write_u32(): address: 0xe0000e80, value: 0x00010009
Debug: 136 702 target.c:2650 target_write_u32(): address: 0xe0000e00, value: 0x00000001
Debug: 137 734 target.c:2650 target_write_u32(): address: 0xe0000e04, value: 0x00000000
Debug: 138 758 target.c:2650 target_write_u32(): address: 0xe0000e08, value: 0x00000000
Debug: 139 782 target.c:2650 target_write_u32(): address: 0xe0000e0c, value: 0x00000000
Debug: 140 806 target.c:2650 target_write_u32(): address: 0xe0000e10, value: 0x00000000
Debug: 141 830 target.c:2650 target_write_u32(): address: 0xe0000e14, value: 0x00000000
Debug: 142 854 target.c:2650 target_write_u32(): address: 0xe0000e18, value: 0x00000000
Debug: 143 878 target.c:2650 target_write_u32(): address: 0xe0000e1c, value: 0x00000000
Debug: 144 934 target.c:2562 target_read_u32(): address: 0xe0002000, value: 0x00000260
Debug: 145 934 target.c:2650 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 146 966 target.c:2650 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 147 990 target.c:2650 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 148 1014 target.c:2650 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 149 1038 target.c:2650 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 150 1062 target.c:2650 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 151 1086 target.c:2650 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 152 1110 target.c:2650 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 153 1134 cortex_m.c:2786 cortex_m_examine(): [at32f4x.cpu] FPB fpcr 0x260, numcode 6, numlit 2
Debug: 154 1166 target.c:2562 target_read_u32(): address: 0xe0001000, value: 0x40000000
Debug: 155 1166 cortex_m.c:2460 cortex_m_dwt_setup(): [at32f4x.cpu] DWT_CTRL: 0x40000000
Debug: 156 1198 target.c:2562 target_read_u32(): address: 0xe0001fbc, value: 0x00000000
Debug: 157 1198 cortex_m.c:2467 cortex_m_dwt_setup(): [at32f4x.cpu] DWT_DEVARCH: 0x0
Debug: 158 1198 target.c:2650 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 159 1230 target.c:2650 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 160 1262 target.c:2650 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 161 1294 target.c:2650 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 162 1326 cortex_m.c:2514 cortex_m_dwt_setup(): [at32f4x.cpu] DWT dwtcr 0x40000000, comp 4, watch/trigger
Info : 163 1326 cortex_m.c:2796 cortex_m_examine(): [at32f4x.cpu] target has 6 breakpoints, 4 watchpoints
Debug: 164 1326 target.c:1774 target_call_event_callbacks(): target event 21 (examine-end) for core at32f4x.cpu
Info : 165 1326 target.c:690 target_examine_one(): [at32f4x.cpu] Examination succeed
Debug: 166 1326 command.c:153 script_debug(): command - flash init
Debug: 167 1326 log.c:419 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (1326 ms). This may cause trouble with GDB connections.
Debug: 168 1326 tcl.c:1364 handle_flash_init_command(): Initializing flash devices...
Debug: 169 1327 command.c:153 script_debug(): command - nand init
Debug: 170 1327 tcl.c:484 handle_nand_init_command(): Initializing NAND devices...
Debug: 171 1327 command.c:153 script_debug(): command - pld init
Debug: 172 1327 pld.c:337 handle_pld_init_command(): Initializing PLDs...
Debug: 173 1327 command.c:153 script_debug(): command - tpiu init
Info : 174 1327 gdb_server.c:3831 gdb_target_start(): [at32f4x.cpu] starting gdb server on 3333
Info : 175 1327 server.c:298 add_service(): Listening on port 3333 for gdb connections
Debug: 176 1327 command.c:153 script_debug(): command - target names
Debug: 177 1327 command.c:153 script_debug(): command - target names
Debug: 178 1327 command.c:153 script_debug(): command - at32f4x.cpu cget -type
Debug: 179 1327 command.c:153 script_debug(): command - reset init
Debug: 180 1327 target.c:1793 target_call_reset_callbacks(): target reset 3 (init)
Debug: 181 1327 command.c:153 script_debug(): command - target names
Debug: 182 1328 command.c:153 script_debug(): command - at32f4x.cpu invoke-event reset-start
Debug: 183 1328 command.c:153 script_debug(): command - transport select
Debug: 184 1328 command.c:153 script_debug(): command - jtag arp_init-reset
Debug: 185 1328 core.c:1612 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 186 1334 core.c:832 jtag_add_reset(): SRST line asserted
Debug: 187 1334 core.c:849 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 188 1334 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 189 1334 cmsis_dap.c:1495 cmsis_dap_execute_tlr_reset(): cmsis-dap JTAG TLR_RESET
Debug: 190 1350 core.c:836 jtag_add_reset(): SRST line released
Debug: 191 1350 core.c:1515 jtag_init_inner(): Init JTAG chain
Debug: 192 1350 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 193 1350 cmsis_dap.c:1495 cmsis_dap_execute_tlr_reset(): cmsis-dap JTAG TLR_RESET
Debug: 194 1358 core.c:1241 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 195 1358 core.c:334 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 196 1374 cmsis_dap.c:1495 cmsis_dap_execute_tlr_reset(): cmsis-dap JTAG TLR_RESET
Info : 197 1382 core.c:1139 jtag_examine_chain_display(): JTAG tap: at32f4x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Debug: 198 1382 core.c:1371 jtag_validate_ircapture(): IR capture validation scan
Debug: 199 1390 core.c:1428 jtag_validate_ircapture(): at32f4x.cpu: IR capture 0x01
Debug: 200 1391 command.c:153 script_debug(): command - transport select
Debug: 201 1391 command.c:153 script_debug(): command - at32f4x.cpu cget -chain-position
Debug: 202 1391 command.c:153 script_debug(): command - jtag tapisenabled at32f4x.cpu
Debug: 203 1391 command.c:153 script_debug(): command - at32f4x.cpu invoke-event examine-start
Debug: 204 1391 command.c:153 script_debug(): command - at32f4x.cpu arp_examine allow-defer
Debug: 205 1422 arm_adi_v5.c:934 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 206 1422 command.c:153 script_debug(): command - at32f4x.cpu invoke-event examine-end
Debug: 207 1422 command.c:153 script_debug(): command - at32f4x.cpu invoke-event reset-assert-pre
Debug: 208 1422 command.c:153 script_debug(): command - transport select
Debug: 209 1422 command.c:153 script_debug(): command - at32f4x.cpu cget -chain-position
Debug: 210 1422 command.c:153 script_debug(): command - jtag tapisenabled at32f4x.cpu
Debug: 211 1422 command.c:153 script_debug(): command - at32f4x.cpu arp_reset assert 1
Debug: 212 1422 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas
Debug: 213 1422 cortex_m.c:1690 cortex_m_assert_reset(): [at32f4x.cpu] target->state: unknown, examined
Debug: 214 1510 core.c:832 jtag_add_reset(): SRST line asserted
Debug: 215 1560 command.c:153 script_debug(): command - at32f4x.cpu invoke-event reset-assert-post
Debug: 216 1560 command.c:153 script_debug(): command - at32f4x.cpu invoke-event reset-deassert-pre
Debug: 217 1560 command.c:153 script_debug(): command - transport select
Debug: 218 1560 command.c:153 script_debug(): command - at32f4x.cpu cget -chain-position
Debug: 219 1560 command.c:153 script_debug(): command - jtag tapisenabled at32f4x.cpu
Debug: 220 1560 command.c:153 script_debug(): command - at32f4x.cpu arp_reset deassert 1
Debug: 221 1560 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas
Debug: 222 1560 cortex_m.c:1848 cortex_m_deassert_reset(): [at32f4x.cpu] target->state: reset, examined
Debug: 223 1566 core.c:836 jtag_add_reset(): SRST line released
Debug: 224 1566 arm_adi_v5.c:859 dap_dp_init_or_reconnect(): at32f4x.dap
Error: 225 1574 adi_v5_jtag.c:454 jtagdp_overrun_check(): Invalid ACK (7) in DAP response
Debug: 226 1582 arm_adi_v5.c:783 dap_dp_init(): at32f4x.dap
Debug: 227 1582 arm_adi_v5.c:816 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 228 1582 arm_adi_v5.h:682 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Error: 229 1606 adi_v5_jtag.c:454 jtagdp_overrun_check(): Invalid ACK (7) in DAP response
Error: 230 1614 cortex_m.c:1863 cortex_m_deassert_reset(): [at32f4x.cpu] DP initialisation failed
Debug: 231 1614 command.c:528 exec_command(): Command 'at32f4x.cpu arp_reset' failed with error code -107
Debug: 232 1614 command.c:528 exec_command(): Command 'reset' failed with error code -4
User : 233 1614 command.c:601 command_run_line(): 
Debug: 234 1614 breakpoints.c:328 breakpoint_remove_all_internal(): [at32f4x.cpu] Delete all breakpoints
Debug: 235 1614 arm_adi_v5.c:1218 dap_put_ap(): refcount AP#0x0 put 0
Debug: 236 1614 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas