dan@ender:~/pico/openocd$ openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -s tcl -d Open On-Chip Debugger 0.11.0-g610f137 (2022-04-08-16:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 2 options.c:63 configuration_output_handler(): debug_level: 3 User : 14 2 options.c:63 configuration_output_handler(): Debug: 15 2 options.c:244 add_default_dirs(): bindir=/usr/local/bin Debug: 16 2 options.c:245 add_default_dirs(): pkgdatadir=/usr/local/share/openocd Debug: 17 2 options.c:246 add_default_dirs(): exepath=/usr/local/bin Debug: 18 2 options.c:247 add_default_dirs(): bin2data=../share/openocd Debug: 19 2 configuration.c:42 add_script_search_dir(): adding /home/dan/.config/openocd Debug: 20 2 configuration.c:42 add_script_search_dir(): adding /home/dan/.openocd Debug: 21 2 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site Debug: 22 2 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts Debug: 23 2 configuration.c:97 find_file(): found tcl/interface/picoprobe.cfg Debug: 24 3 command.c:146 script_debug(): command - adapter driver picoprobe Info : 26 3 transport.c:117 allow_transports(): only one transport option; autoselect 'swd' Debug: 27 3 command.c:146 script_debug(): command - adapter speed 5000 Debug: 29 3 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 30 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 31 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value User : 32 3 options.c:63 configuration_output_handler(): adapter speed: 5000 kHz User : 33 3 options.c:63 configuration_output_handler(): Debug: 34 3 configuration.c:97 find_file(): found tcl/target/rp2040.cfg Debug: 35 3 configuration.c:97 find_file(): found tcl/target/swj-dp.tcl Debug: 36 3 command.c:146 script_debug(): command - transport select Debug: 37 3 configuration.c:97 find_file(): found tcl/mem_helper.tcl Debug: 38 3 command.c:146 script_debug(): command - add_usage_text mrw address Debug: 40 3 command.c:1115 help_add_command(): added 'mrw' help text Debug: 41 3 command.c:146 script_debug(): command - add_help_text mrw Returns value of word in memory. Debug: 43 3 command.c:1128 help_add_command(): added 'mrw' help text Debug: 44 3 command.c:146 script_debug(): command - add_usage_text mrh address Debug: 46 3 command.c:1115 help_add_command(): added 'mrh' help text Debug: 47 3 command.c:146 script_debug(): command - add_help_text mrh Returns value of halfword in memory. Debug: 49 3 command.c:1128 help_add_command(): added 'mrh' help text Debug: 50 3 command.c:146 script_debug(): command - add_usage_text mrb address Debug: 52 3 command.c:1115 help_add_command(): added 'mrb' help text Debug: 53 3 command.c:146 script_debug(): command - add_help_text mrb Returns value of byte in memory. Debug: 55 3 command.c:1128 help_add_command(): added 'mrb' help text Debug: 56 3 command.c:146 script_debug(): command - add_usage_text mmw address setbits clearbits Debug: 58 3 command.c:1115 help_add_command(): added 'mmw' help text Debug: 59 3 command.c:146 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits; Debug: 61 3 command.c:1128 help_add_command(): added 'mmw' help text Debug: 62 3 command.c:146 script_debug(): command - transport select Debug: 63 3 command.c:146 script_debug(): command - transport select Debug: 64 3 command.c:146 script_debug(): command - swd newdap rp2040.core0 cpu -dp-id 0x01002927 -instance-id 0 Debug: 65 3 tcl.c:609 jim_newtap_cmd(): Creating New Tap, Chip: rp2040.core0, Tap: cpu, Dotted: rp2040.core0.cpu, 4 params Debug: 66 3 tcl.c:623 jim_newtap_cmd(): Processing option: -dp-id Debug: 67 3 tcl.c:623 jim_newtap_cmd(): Processing option: -instance-id Debug: 68 3 core.c:1484 jtag_tap_init(): Created Tap: rp2040.core0.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 69 3 command.c:146 script_debug(): command - transport select Debug: 70 3 command.c:146 script_debug(): command - transport select Debug: 71 3 command.c:146 script_debug(): command - swd newdap rp2040.core1 cpu -dp-id 0x01002927 -instance-id 1 Debug: 72 3 tcl.c:609 jim_newtap_cmd(): Creating New Tap, Chip: rp2040.core1, Tap: cpu, Dotted: rp2040.core1.cpu, 4 params Debug: 73 3 tcl.c:623 jim_newtap_cmd(): Processing option: -dp-id Debug: 74 3 tcl.c:623 jim_newtap_cmd(): Processing option: -instance-id Debug: 75 3 core.c:1484 jtag_tap_init(): Created Tap: rp2040.core1.cpu @ abs position 1, irlen 0, capture: 0x0 mask: 0x0 Debug: 76 3 command.c:146 script_debug(): command - dap create rp2040.core0.dap -chain-position rp2040.core0.cpu Debug: 77 3 command.c:146 script_debug(): command - target create rp2040.core0 cortex_m -endian little -coreid 0 -dap rp2040.core0.dap -rtos hwthread Info : 78 3 hwthread.c:390 hwthread_create(): Hardware thread awareness created Debug: 79 4 command.c:375 register_command(): command 'smp_gdb' is already registered in 'cortex_m' context Debug: 80 4 command.c:375 register_command(): command 'rtt' is already registered in '' context Debug: 81 4 command.c:375 register_command(): command 'smp_gdb' is already registered in 'cortex_m' context Debug: 82 4 command.c:146 script_debug(): command - rp2040.core0 configure -work-area-phys 0x20010000 -work-area-size 0x10000 -work-area-backup 0 Debug: 83 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 84 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 85 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 86 4 command.c:146 script_debug(): command - cortex_m reset_config sysresetreq Debug: 88 4 command.c:146 script_debug(): command - dap create rp2040.core1.dap -chain-position rp2040.core1.cpu Debug: 89 4 command.c:146 script_debug(): command - target create rp2040.core1 cortex_m -endian little -coreid 1 -dap rp2040.core1.dap -rtos hwthread Info : 90 4 hwthread.c:390 hwthread_create(): Hardware thread awareness created Debug: 91 4 command.c:375 register_command(): command 'arm' is already registered in '' context Debug: 92 4 command.c:375 register_command(): command 'reg' is already registered in 'arm' context Debug: 93 4 command.c:375 register_command(): command 'core_state' is already registered in 'arm' context Debug: 94 4 command.c:375 register_command(): command 'disassemble' is already registered in 'arm' context Debug: 95 4 command.c:375 register_command(): command 'mcr' is already registered in 'arm' context Debug: 96 4 command.c:375 register_command(): command 'mrc' is already registered in 'arm' context Debug: 97 4 command.c:375 register_command(): command 'semihosting' is already registered in 'arm' context Debug: 98 4 command.c:375 register_command(): command 'semihosting_cmdline' is already registered in 'arm' context Debug: 99 4 command.c:375 register_command(): command 'semihosting_fileio' is already registered in 'arm' context Debug: 100 4 command.c:375 register_command(): command 'semihosting_resexit' is already registered in 'arm' context Debug: 101 4 command.c:375 register_command(): command 'tpiu' is already registered in '' context Debug: 102 4 command.c:375 register_command(): command 'config' is already registered in 'tpiu' context Debug: 103 4 command.c:375 register_command(): command 'itm' is already registered in '' context Debug: 104 4 command.c:375 register_command(): command 'port' is already registered in 'itm' context Debug: 105 4 command.c:375 register_command(): command 'ports' is already registered in 'itm' context Debug: 106 4 command.c:375 register_command(): command 'cortex_m' is already registered in '' context Debug: 107 4 command.c:375 register_command(): command 'smp_gdb' is already registered in 'cortex_m' context Debug: 108 4 command.c:375 register_command(): command 'maskisr' is already registered in 'cortex_m' context Debug: 109 4 command.c:375 register_command(): command 'vector_catch' is already registered in 'cortex_m' context Debug: 110 4 command.c:375 register_command(): command 'reset_config' is already registered in 'cortex_m' context Debug: 111 4 command.c:375 register_command(): command 'smp' is already registered in 'cortex_m' context Debug: 112 4 command.c:375 register_command(): command 'smp_on' is already registered in 'cortex_m' context Debug: 113 4 command.c:375 register_command(): command 'smp_off' is already registered in 'cortex_m' context Debug: 114 4 command.c:375 register_command(): command 'smp_gdb' is already registered in 'cortex_m' context Debug: 115 4 command.c:375 register_command(): command 'rtt' is already registered in '' context Debug: 116 4 command.c:375 register_command(): command 'setup' is already registered in 'rtt' context Debug: 117 4 command.c:375 register_command(): command 'start' is already registered in 'rtt' context Debug: 118 4 command.c:375 register_command(): command 'stop' is already registered in 'rtt' context Debug: 119 4 command.c:375 register_command(): command 'polling_interval' is already registered in 'rtt' context Debug: 120 4 command.c:375 register_command(): command 'channels' is already registered in 'rtt' context Debug: 121 4 command.c:375 register_command(): command 'channellist' is already registered in 'rtt' context Debug: 122 4 command.c:375 register_command(): command 'smp_gdb' is already registered in 'cortex_m' context Debug: 123 4 command.c:146 script_debug(): command - rp2040.core1 configure -work-area-phys 0x20010000 -work-area-size 0x10000 -work-area-backup 0 Debug: 124 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 125 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 126 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 127 4 command.c:146 script_debug(): command - cortex_m reset_config sysresetreq Debug: 129 4 command.c:146 script_debug(): command - target smp rp2040.core0 rp2040.core1 Debug: 130 4 target.c:5943 jim_target_smp(): 3 Debug: 131 4 target.c:5953 jim_target_smp(): rp2040.core0 Debug: 132 4 target.c:5953 jim_target_smp(): rp2040.core1 Debug: 133 4 hwthread.c:200 hwthread_update_threads(): hwthread_update_threads current_thread=-1 Debug: 134 4 command.c:146 script_debug(): command - flash bank rp2040.flash rp2040_flash 0x10000000 0x200000 1 32 rp2040.core0 Info : 136 4 rp2040.c:394 rp2040_flash_bank_command(): RP2040 Flash Bank Command Debug: 137 4 tcl.c:1319 handle_flash_bank_command(): 'rp2040_flash' driver usage field missing Debug: 138 4 command.c:146 script_debug(): command - targets rp2040.core0 Debug: 140 4 command.c:146 script_debug(): command - reset_config srst_nogate Debug: 142 4 command.c:146 script_debug(): command - gdb_flash_program enable Debug: 144 4 command.c:146 script_debug(): command - gdb_memory_map enable Info : 146 4 server.c:311 add_service(): Listening on port 6666 for tcl connections Info : 147 4 server.c:311 add_service(): Listening on port 4444 for telnet connections Debug: 148 4 command.c:146 script_debug(): command - init Debug: 150 4 command.c:146 script_debug(): command - target init Debug: 152 4 command.c:146 script_debug(): command - target names Debug: 153 4 command.c:146 script_debug(): command - rp2040.core0 cget -event gdb-flash-erase-start Debug: 154 4 command.c:146 script_debug(): command - rp2040.core0 configure -event gdb-flash-erase-start reset init Debug: 155 4 command.c:146 script_debug(): command - rp2040.core0 cget -event gdb-flash-write-end Debug: 156 4 command.c:146 script_debug(): command - rp2040.core0 configure -event gdb-flash-write-end reset halt Debug: 157 4 command.c:146 script_debug(): command - rp2040.core0 cget -event gdb-attach Debug: 158 4 command.c:146 script_debug(): command - rp2040.core0 configure -event gdb-attach halt 1000 Debug: 159 4 command.c:146 script_debug(): command - rp2040.core1 cget -event gdb-flash-erase-start Debug: 160 4 command.c:146 script_debug(): command - rp2040.core1 configure -event gdb-flash-erase-start reset init Debug: 161 4 command.c:146 script_debug(): command - rp2040.core1 cget -event gdb-flash-write-end Debug: 162 4 command.c:146 script_debug(): command - rp2040.core1 configure -event gdb-flash-write-end reset halt Debug: 163 4 command.c:146 script_debug(): command - rp2040.core1 cget -event gdb-attach Debug: 164 5 command.c:146 script_debug(): command - rp2040.core1 configure -event gdb-attach halt 1000 Debug: 165 5 target.c:1639 handle_target_init_command(): Initializing targets... Debug: 166 5 semihosting_common.c:99 semihosting_common_init(): Debug: 167 5 semihosting_common.c:99 semihosting_common_init(): Debug: 168 14 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 169 14 core.c:1789 adapter_khz_to_speed(): have interface set up Debug: 170 16 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 171 16 core.c:1789 adapter_khz_to_speed(): have interface set up Info : 172 16 core.c:1565 adapter_init(): clock speed 5000 kHz Debug: 173 16 openocd.c:143 handle_init_command(): Debug Adapter init complete Debug: 174 16 command.c:146 script_debug(): command - transport init Debug: 176 16 transport.c:229 handle_transport_init(): handle_transport_init Debug: 177 16 command.c:146 script_debug(): command - dap init Debug: 179 16 arm_dap.c:116 dap_init_all(): Initializing all DAPs ... Debug: 180 16 picoprobe.c:453 picoprobe_swd_switch_seq(): DORMANT-to-SWD Debug: 181 18 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0, retrying... Debug: 182 20 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0, retrying... Debug: 183 22 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0 Info : 184 22 arm_dap.c:337 handle_dap_init(): DAP init failed Debug: 185 22 command.c:628 run_command(): Command 'dap init' failed with error code -4 User : 186 22 command.c:694 command_run_line(): Debug: 187 22 command.c:628 run_command(): Command 'init' failed with error code -4 User : 188 22 command.c:694 command_run_line(): Debug: 189 22 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 190 22 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 191 22 picoprobe.c:457 picoprobe_swd_switch_seq(): SWD-to-DORMANT Debug: 192 22 picoprobe.c:453 picoprobe_swd_switch_seq(): DORMANT-to-SWD Debug: 193 24 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0, retrying... Debug: 194 26 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0, retrying... Debug: 195 28 adi_v5_swd.c:698 swd_multidrop_select_target(): Failed to select core 0