after reset Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-23-16:54) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 3 1 options.c:63 configuration_output_handler(): debug_level: 3 User : 4 1 options.c:63 configuration_output_handler(): Debug: 5 1 options.c:244 add_default_dirs(): bindir=/usr/local/bin Debug: 6 1 options.c:245 add_default_dirs(): pkgdatadir=/usr/local/share/openocd Debug: 7 1 options.c:246 add_default_dirs(): exepath=/usr/local/bin Debug: 8 1 options.c:247 add_default_dirs(): bin2data=../share/openocd Debug: 9 1 configuration.c:44 add_script_search_dir(): adding /root/.config/openocd Debug: 10 1 configuration.c:44 add_script_search_dir(): adding /root/.openocd Debug: 11 1 configuration.c:44 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site Debug: 12 1 configuration.c:44 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts Debug: 13 1 command.c:166 script_debug(): command - ocd_find interface/cmsis-dap.cfg Debug: 14 1 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/interface/cmsis-dap.cfg Debug: 15 1 command.c:166 script_debug(): command - adapter driver cmsis-dap Debug: 16 1 command.c:166 script_debug(): command - transport select swd Debug: 17 1 command.c:166 script_debug(): command - adapter speed 5000 Debug: 18 1 adapter.c:180 adapter_config_khz(): handle adapter khz Debug: 19 1 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 20 1 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value User : 21 1 options.c:63 configuration_output_handler(): adapter speed: 5000 kHz User : 22 1 options.c:63 configuration_output_handler(): Debug: 23 1 command.c:166 script_debug(): command - ocd_find target/rp2040-core0.cfg Debug: 24 2 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/target/rp2040-core0.cfg Debug: 25 2 command.c:166 script_debug(): command - transport select swd Warn : 26 2 transport.c:287 jim_transport_select(): Transport "swd" was already selected Debug: 27 2 command.c:166 script_debug(): command - ocd_find target/swj-dp.tcl Debug: 28 2 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl Debug: 29 2 command.c:166 script_debug(): command - transport select Debug: 30 2 command.c:166 script_debug(): command - transport select Debug: 31 2 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1 Debug: 32 2 command.c:166 script_debug(): command - transport select Debug: 33 2 command.c:166 script_debug(): command - expr [ string first "swd" $_TRANSPORT ] != -1 Debug: 34 2 command.c:166 script_debug(): command - swd newdap rp2040 cpu -expected-id 0x01002927 Debug: 35 2 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: rp2040, Tap: cpu, Dotted: rp2040.cpu, 2 params Debug: 36 2 core.c:1468 jtag_tap_init(): Created Tap: rp2040.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 37 2 command.c:166 script_debug(): command - dap create rp2040.dap -chain-position rp2040.cpu Debug: 38 2 command.c:166 script_debug(): command - target create rp2040.cpu cortex_m -dap rp2040.dap Debug: 39 2 command.c:300 register_command(): command 'tpiu' is already registered Debug: 40 2 command.c:300 register_command(): command 'rtt' is already registered Debug: 41 3 command.c:166 script_debug(): command - rp2040.cpu configure -work-area-phys 0x20010000 -work-area-size 0x10000 Debug: 42 3 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas Debug: 43 3 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas Debug: 44 3 command.c:166 script_debug(): command - flash bank rp2040.flash rp2040_flash 0x10000000 0x200000 1 32 rp2040.cpu Debug: 45 3 tcl.c:1316 handle_flash_bank_command(): 'rp2040_flash' driver usage field missing Debug: 46 3 command.c:166 script_debug(): command - cortex_m reset_config sysresetreq User : 47 3 options.c:63 configuration_output_handler(): cortex_m reset_config sysresetreq User : 48 3 options.c:63 configuration_output_handler(): Info : 49 3 server.c:308 add_service(): Listening on port 6666 for tcl connections Info : 50 3 server.c:308 add_service(): Listening on port 4444 for telnet connections Debug: 51 3 command.c:166 script_debug(): command - init Debug: 52 3 command.c:166 script_debug(): command - target init Debug: 53 3 command.c:166 script_debug(): command - target names Debug: 54 3 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-flash-erase-start Debug: 55 3 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-flash-erase-start reset init Debug: 56 3 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-flash-write-end Debug: 57 3 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-flash-write-end reset halt Debug: 58 3 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-attach Debug: 59 3 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-attach halt 1000 Debug: 60 3 target.c:1661 handle_target_init_command(): Initializing targets... Debug: 61 3 semihosting_common.c:115 semihosting_common_init(): Debug: 62 36 cmsis_dap_usb_bulk.c:161 cmsis_dap_usb_open(): found product string of 0xcafe:0x4005 'RP2040 CMSIS-DAP' Debug: 63 37 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0xcafe:0x4005 Debug: 64 37 cmsis_dap_usb_bulk.c:248 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out Debug: 65 37 cmsis_dap_usb_bulk.c:241 cmsis_dap_usb_open(): skipping interface 1, has only 1 endpoints Debug: 66 37 cmsis_dap_usb_bulk.c:285 cmsis_dap_usb_open(): skipping interface 2, class 10 subclass 0 protocol 0 Debug: 67 53 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0x80ee:0x0021 Debug: 68 53 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0x1d6b:0x0001 Info : 69 135 cmsis_dap.c:1037 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD supported Info : 70 136 cmsis_dap.c:1037 cmsis_dap_get_caps_info(): CMSIS-DAP: Atomic commands supported Info : 71 140 cmsis_dap.c:1014 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 2.0.0 Info : 72 150 cmsis_dap.c:1166 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD) Debug: 73 160 cmsis_dap.c:1248 cmsis_dap_init(): CMSIS-DAP: Packet Count = 1 Debug: 74 160 cmsis_dap.c:1251 cmsis_dap_init(): Allocating FIFO for 1 pending packets Info : 75 167 cmsis_dap.c:1070 cmsis_dap_get_status(): SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0 Info : 76 193 cmsis_dap.c:1302 cmsis_dap_init(): CMSIS-DAP: Interface ready Debug: 77 193 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 78 193 adapter.c:148 adapter_khz_to_speed(): have adapter set up Debug: 79 202 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 80 203 adapter.c:148 adapter_khz_to_speed(): have adapter set up Info : 81 203 adapter.c:108 adapter_init(): clock speed 5000 kHz Debug: 82 203 openocd.c:143 handle_init_command(): Debug Adapter init complete Debug: 83 203 command.c:166 script_debug(): command - transport init Debug: 84 203 transport.c:230 handle_transport_init(): handle_transport_init Debug: 85 203 command.c:166 script_debug(): command - dap init Debug: 86 203 arm_dap.c:107 dap_init_all(): Initializing all DAPs ... Debug: 87 218 cmsis_dap.c:1110 cmsis_dap_swd_switch_seq(): JTAG-to-SWD Debug: 88 231 cmsis_dap.c:882 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK Debug: 89 241 cmsis_dap.c:1115 cmsis_dap_swd_switch_seq(): JTAG-to-DORMANT Debug: 90 263 cmsis_dap.c:1130 cmsis_dap_swd_switch_seq(): DORMANT-to-SWD Info : 91 279 adi_v5_swd.c:346 swd_connect_single(): SWD DPIDR 0x0bc12477 Debug: 92 285 arm_adi_v5.c:670 dap_dp_init(): rp2040.dap Debug: 93 285 arm_adi_v5.c:702 dap_dp_init(): DAP: wait CDBGPWRUPACK Debug: 94 285 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000 Debug: 95 291 arm_adi_v5.c:710 dap_dp_init(): DAP: wait CSYSPWRUPACK Debug: 96 291 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000 Debug: 97 295 cmsis_dap.c:818 cmsis_dap_swd_write_from_queue(): refusing to enable sticky overrun detection Debug: 98 300 openocd.c:160 handle_init_command(): Examining targets... Debug: 99 300 target.c:1847 target_call_event_callbacks(): target event 19 (examine-start) for core rp2040.cpu Debug: 100 1653 arm_adi_v5.c:952 dap_find_ap(): No MEM-AP AHB3 found Debug: 101 2979 arm_adi_v5.c:952 dap_find_ap(): No MEM-AP AHB5 found Error: 102 2979 cortex_m.c:2286 cortex_m_examine(): [rp2040.cpu] Could not find MEM-AP to control the core Debug: 103 2979 target.c:1847 target_call_event_callbacks(): target event 20 (examine-fail) for core rp2040.cpu Warn : 104 2979 target.c:806 target_examine(): target rp2040.cpu examination failed Debug: 105 2979 openocd.c:162 handle_init_command(): target examination failed Debug: 106 2979 command.c:166 script_debug(): command - flash init Debug: 107 2979 log.c:429 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (2979 ms). This may cause trouble with GDB connections. Debug: 108 2979 tcl.c:1386 handle_flash_init_command(): Initializing flash devices... Debug: 109 2979 command.c:166 script_debug(): command - nand init Debug: 110 2979 tcl.c:498 handle_nand_init_command(): Initializing NAND devices... Debug: 111 2979 command.c:166 script_debug(): command - pld init Debug: 112 2979 pld.c:205 handle_pld_init_command(): Initializing PLDs... Debug: 113 2979 command.c:166 script_debug(): command - tpiu init Info : 114 2979 gdb_server.c:3716 gdb_target_start(): starting gdb server for rp2040.cpu on 3333 Info : 115 2980 server.c:308 add_service(): Listening on port 3333 for gdb connections past rp2040 reset Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-23-16:54) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 3 2 options.c:63 configuration_output_handler(): debug_level: 3 User : 4 2 options.c:63 configuration_output_handler(): Debug: 5 2 options.c:244 add_default_dirs(): bindir=/usr/local/bin Debug: 6 2 options.c:245 add_default_dirs(): pkgdatadir=/usr/local/share/openocd Debug: 7 2 options.c:246 add_default_dirs(): exepath=/usr/local/bin Debug: 8 2 options.c:247 add_default_dirs(): bin2data=../share/openocd Debug: 9 2 configuration.c:44 add_script_search_dir(): adding /root/.config/openocd Debug: 10 2 configuration.c:44 add_script_search_dir(): adding /root/.openocd Debug: 11 2 configuration.c:44 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site Debug: 12 2 configuration.c:44 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts Debug: 13 2 command.c:166 script_debug(): command - ocd_find interface/cmsis-dap.cfg Debug: 14 3 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/interface/cmsis-dap.cfg Debug: 15 3 command.c:166 script_debug(): command - adapter driver cmsis-dap Debug: 16 3 command.c:166 script_debug(): command - transport select swd Debug: 17 3 command.c:166 script_debug(): command - adapter speed 5000 Debug: 18 3 adapter.c:180 adapter_config_khz(): handle adapter khz Debug: 19 3 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 20 3 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value User : 21 3 options.c:63 configuration_output_handler(): adapter speed: 5000 kHz User : 22 3 options.c:63 configuration_output_handler(): Debug: 23 3 command.c:166 script_debug(): command - ocd_find target/rp2040-core0.cfg Debug: 24 3 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/target/rp2040-core0.cfg Debug: 25 3 command.c:166 script_debug(): command - transport select swd Warn : 26 3 transport.c:287 jim_transport_select(): Transport "swd" was already selected Debug: 27 3 command.c:166 script_debug(): command - ocd_find target/swj-dp.tcl Debug: 28 3 configuration.c:99 find_file(): found /usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl Debug: 29 3 command.c:166 script_debug(): command - transport select Debug: 30 3 command.c:166 script_debug(): command - transport select Debug: 31 3 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1 Debug: 32 3 command.c:166 script_debug(): command - transport select Debug: 33 3 command.c:166 script_debug(): command - expr [ string first "swd" $_TRANSPORT ] != -1 Debug: 34 3 command.c:166 script_debug(): command - swd newdap rp2040 cpu -expected-id 0x01002927 Debug: 35 3 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: rp2040, Tap: cpu, Dotted: rp2040.cpu, 2 params Debug: 36 4 core.c:1468 jtag_tap_init(): Created Tap: rp2040.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 37 4 command.c:166 script_debug(): command - dap create rp2040.dap -chain-position rp2040.cpu Debug: 38 4 command.c:166 script_debug(): command - target create rp2040.cpu cortex_m -dap rp2040.dap Debug: 39 4 command.c:300 register_command(): command 'tpiu' is already registered Debug: 40 4 command.c:300 register_command(): command 'rtt' is already registered Debug: 41 4 command.c:166 script_debug(): command - rp2040.cpu configure -work-area-phys 0x20010000 -work-area-size 0x10000 Debug: 42 4 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas Debug: 43 4 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas Debug: 44 4 command.c:166 script_debug(): command - flash bank rp2040.flash rp2040_flash 0x10000000 0x200000 1 32 rp2040.cpu Debug: 45 4 tcl.c:1316 handle_flash_bank_command(): 'rp2040_flash' driver usage field missing Debug: 46 4 command.c:166 script_debug(): command - cortex_m reset_config sysresetreq User : 47 5 options.c:63 configuration_output_handler(): cortex_m reset_config sysresetreq User : 48 5 options.c:63 configuration_output_handler(): Info : 49 5 server.c:308 add_service(): Listening on port 6666 for tcl connections Info : 50 5 server.c:308 add_service(): Listening on port 4444 for telnet connections Debug: 51 5 command.c:166 script_debug(): command - init Debug: 52 5 command.c:166 script_debug(): command - target init Debug: 53 5 command.c:166 script_debug(): command - target names Debug: 54 5 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-flash-erase-start Debug: 55 5 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-flash-erase-start reset init Debug: 56 5 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-flash-write-end Debug: 57 5 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-flash-write-end reset halt Debug: 58 5 command.c:166 script_debug(): command - rp2040.cpu cget -event gdb-attach Debug: 59 5 command.c:166 script_debug(): command - rp2040.cpu configure -event gdb-attach halt 1000 Debug: 60 5 target.c:1661 handle_target_init_command(): Initializing targets... Debug: 61 5 semihosting_common.c:115 semihosting_common_init(): Debug: 62 43 cmsis_dap_usb_bulk.c:161 cmsis_dap_usb_open(): found product string of 0xcafe:0x4005 'RP2040 CMSIS-DAP' Debug: 63 43 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0xcafe:0x4005 Debug: 64 43 cmsis_dap_usb_bulk.c:248 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out Debug: 65 43 cmsis_dap_usb_bulk.c:241 cmsis_dap_usb_open(): skipping interface 1, has only 1 endpoints Debug: 66 43 cmsis_dap_usb_bulk.c:285 cmsis_dap_usb_open(): skipping interface 2, class 10 subclass 0 protocol 0 Debug: 67 56 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0x80ee:0x0021 Debug: 68 56 cmsis_dap_usb_bulk.c:181 cmsis_dap_usb_open(): enumerating interfaces of 0x1d6b:0x0001 Info : 69 129 cmsis_dap.c:1037 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD supported Info : 70 129 cmsis_dap.c:1037 cmsis_dap_get_caps_info(): CMSIS-DAP: Atomic commands supported Info : 71 135 cmsis_dap.c:1014 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 2.0.0 Info : 72 146 cmsis_dap.c:1166 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD) Debug: 73 158 cmsis_dap.c:1248 cmsis_dap_init(): CMSIS-DAP: Packet Count = 1 Debug: 74 158 cmsis_dap.c:1251 cmsis_dap_init(): Allocating FIFO for 1 pending packets Info : 75 165 cmsis_dap.c:1070 cmsis_dap_get_status(): SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0 Info : 76 192 cmsis_dap.c:1302 cmsis_dap_init(): CMSIS-DAP: Interface ready Debug: 77 192 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 78 192 adapter.c:148 adapter_khz_to_speed(): have adapter set up Debug: 79 200 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 80 200 adapter.c:148 adapter_khz_to_speed(): have adapter set up Info : 81 200 adapter.c:108 adapter_init(): clock speed 5000 kHz Debug: 82 200 openocd.c:143 handle_init_command(): Debug Adapter init complete Debug: 83 200 command.c:166 script_debug(): command - transport init Debug: 84 200 transport.c:230 handle_transport_init(): handle_transport_init Debug: 85 200 command.c:166 script_debug(): command - dap init Debug: 86 200 arm_dap.c:107 dap_init_all(): Initializing all DAPs ... Debug: 87 208 cmsis_dap.c:1110 cmsis_dap_swd_switch_seq(): JTAG-to-SWD Debug: 88 224 cmsis_dap.c:882 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK Debug: 89 234 cmsis_dap.c:1115 cmsis_dap_swd_switch_seq(): JTAG-to-DORMANT Debug: 90 254 cmsis_dap.c:1130 cmsis_dap_swd_switch_seq(): DORMANT-to-SWD Info : 91 270 adi_v5_swd.c:346 swd_connect_single(): SWD DPIDR 0x10212927 Debug: 92 275 arm_adi_v5.c:670 dap_dp_init(): rp2040.dap Debug: 93 275 arm_adi_v5.c:702 dap_dp_init(): DAP: wait CDBGPWRUPACK Debug: 94 275 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000 Debug: 95 284 arm_adi_v5.c:710 dap_dp_init(): DAP: wait CSYSPWRUPACK Debug: 96 284 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000 Debug: 97 290 cmsis_dap.c:818 cmsis_dap_swd_write_from_queue(): refusing to enable sticky overrun detection Debug: 98 297 openocd.c:160 handle_init_command(): Examining targets... Debug: 99 297 target.c:1847 target_call_event_callbacks(): target event 19 (examine-start) for core rp2040.cpu Debug: 100 1633 arm_adi_v5.c:952 dap_find_ap(): No MEM-AP AHB3 found Debug: 101 2969 arm_adi_v5.c:952 dap_find_ap(): No MEM-AP AHB5 found Error: 102 2969 cortex_m.c:2286 cortex_m_examine(): [rp2040.cpu] Could not find MEM-AP to control the core Debug: 103 2969 target.c:1847 target_call_event_callbacks(): target event 20 (examine-fail) for core rp2040.cpu Warn : 104 2969 target.c:806 target_examine(): target rp2040.cpu examination failed Debug: 105 2969 openocd.c:162 handle_init_command(): target examination failed Debug: 106 2969 command.c:166 script_debug(): command - flash init Debug: 107 2969 log.c:429 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (2969 ms). This may cause trouble with GDB connections. Debug: 108 2969 tcl.c:1386 handle_flash_init_command(): Initializing flash devices... Debug: 109 2969 command.c:166 script_debug(): command - nand init Debug: 110 2970 tcl.c:498 handle_nand_init_command(): Initializing NAND devices... Debug: 111 2970 command.c:166 script_debug(): command - pld init Debug: 112 2970 pld.c:205 handle_pld_init_command(): Initializing PLDs... Debug: 113 2970 command.c:166 script_debug(): command - tpiu init Info : 114 2970 gdb_server.c:3716 gdb_target_start(): starting gdb server for rp2040.cpu on 3333 Info : 115 2970 server.c:308 add_service(): Listening on port 3333 for gdb connections