Waiting for gdb server to start...[2024-01-08T14:09:20.004Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions. "C:\\Users\\katsuhiro\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\openocd-esp32\\v0.11.0-esp32-20221026/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\\dat\\projects\\arduino\\c3_test\\c3_test" -f "C:/app/arduino/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f debug.cfg -d3 Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 3 5 options.c:52 configuration_output_handler(): debug_level: 3 User : 4 5 options.c:52 configuration_output_handler(): Debug: 5 5 options.c:233 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin Debug: 6 5 options.c:234 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd Debug: 7 6 options.c:235 add_default_dirs(): exepath=C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin Debug: 8 6 options.c:236 add_default_dirs(): bin2data=../share/openocd Debug: 9 6 configuration.c:33 add_script_search_dir(): adding C:/Users/katsuhiro/AppData/Roaming/OpenOCD Debug: 10 6 configuration.c:33 add_script_search_dir(): adding C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/site Debug: 11 6 configuration.c:33 add_script_search_dir(): adding C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts Debug: 12 7 command.c:155 script_debug(): command - gdb_port 50000 Debug: 13 7 command.c:155 script_debug(): command - tcl_port 50001 Debug: 14 7 command.c:155 script_debug(): command - telnet_port 50002 Debug: 15 7 command.c:155 script_debug(): command - ocd_find C:/app/arduino/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl Debug: 16 14 configuration.c:88 find_file(): found C:/app/arduino/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl User : 17 16 options.c:52 configuration_output_handler(): CDRTOSConfigureUser : 18 16 options.c:52 configuration_output_handler(): Debug: 19 16 command.c:155 script_debug(): command - ocd_find debug.cfg Debug: 20 23 configuration.c:88 find_file(): found debug.cfg Debug: 21 23 command.c:155 script_debug(): command - ocd_find interface/esp_usb_bridge.cfg Debug: 22 30 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/interface/esp_usb_bridge.cfg Debug: 23 31 command.c:155 script_debug(): command - adapter driver esp_usb_jtag Info : 24 31 transport.c:107 allow_transports(): only one transport option; autoselect 'jtag' Debug: 25 31 command.c:155 script_debug(): command - espusbjtag vid_pid 0x303a 0x1002 Info : 26 31 esp_usb_jtag.c:890 esp_usb_jtag_vid_pid(): esp_usb_jtag: VID set to 0x303a and PID to 0x1002 Debug: 27 31 command.c:155 script_debug(): command - espusbjtag caps_descriptor 0x030A Info : 28 32 esp_usb_jtag.c:901 esp_usb_jtag_caps_descriptor(): esp_usb_jtag: capabilities descriptor set to 0x30a Debug: 29 32 command.c:155 script_debug(): command - adapter speed 40000 Debug: 30 32 adapter.c:251 adapter_config_khz(): handle adapter khz Debug: 31 32 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 32 32 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 33 32 command.c:155 script_debug(): command - espusbjtag chip_id 5 Info : 34 32 esp_usb_jtag.c:912 esp_usb_jtag_chip_id(): esp_usb_jtag: target chip id set to 5 Debug: 35 33 command.c:155 script_debug(): command - ocd_find target/esp32c3.cfg Debug: 36 46 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/target/esp32c3.cfg Debug: 37 46 command.c:155 script_debug(): command - transport select jtag Warn : 38 47 transport.c:276 jim_transport_select(): Transport "jtag" was already selected Debug: 39 47 command.c:155 script_debug(): command - ocd_find bitsbytes.tcl Debug: 40 54 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/bitsbytes.tcl Debug: 41 55 command.c:155 script_debug(): command - expr 1 << $x Debug: 42 55 command.c:155 script_debug(): command - expr $x + 1 Debug: 43 55 command.c:155 script_debug(): command - expr 1 << $x Debug: 44 55 command.c:155 script_debug(): command - expr $x + 1 Debug: 45 55 command.c:155 script_debug(): command - expr 1 << $x Debug: 46 55 command.c:155 script_debug(): command - expr $x + 1 Debug: 47 55 command.c:155 script_debug(): command - expr 1 << $x Debug: 48 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 49 56 command.c:155 script_debug(): command - expr 1 << $x Debug: 50 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 51 56 command.c:155 script_debug(): command - expr 1 << $x Debug: 52 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 53 56 command.c:155 script_debug(): command - expr 1 << $x Debug: 54 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 55 56 command.c:155 script_debug(): command - expr 1 << $x Debug: 56 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 57 56 command.c:155 script_debug(): command - expr 1 << $x Debug: 58 56 command.c:155 script_debug(): command - expr $x + 1 Debug: 59 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 60 57 command.c:155 script_debug(): command - expr $x + 1 Debug: 61 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 62 57 command.c:155 script_debug(): command - expr $x + 1 Debug: 63 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 64 57 command.c:155 script_debug(): command - expr $x + 1 Debug: 65 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 66 57 command.c:155 script_debug(): command - expr $x + 1 Debug: 67 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 68 57 command.c:155 script_debug(): command - expr $x + 1 Debug: 69 57 command.c:155 script_debug(): command - expr 1 << $x Debug: 70 58 command.c:155 script_debug(): command - expr $x + 1 Debug: 71 58 command.c:155 script_debug(): command - expr 1 << $x Debug: 72 58 command.c:155 script_debug(): command - expr $x + 1 Debug: 73 58 command.c:155 script_debug(): command - expr 1 << $x Debug: 74 58 command.c:155 script_debug(): command - expr $x + 1 Debug: 75 58 command.c:155 script_debug(): command - expr 1 << $x Debug: 76 58 command.c:155 script_debug(): command - expr $x + 1 Debug: 77 58 command.c:155 script_debug(): command - expr 1 << $x Debug: 78 58 command.c:155 script_debug(): command - expr $x + 1 Debug: 79 58 command.c:155 script_debug(): command - expr 1 << $x Debug: 80 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 81 59 command.c:155 script_debug(): command - expr 1 << $x Debug: 82 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 83 59 command.c:155 script_debug(): command - expr 1 << $x Debug: 84 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 85 59 command.c:155 script_debug(): command - expr 1 << $x Debug: 86 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 87 59 command.c:155 script_debug(): command - expr 1 << $x Debug: 88 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 89 59 command.c:155 script_debug(): command - expr 1 << $x Debug: 90 59 command.c:155 script_debug(): command - expr $x + 1 Debug: 91 60 command.c:155 script_debug(): command - expr 1 << $x Debug: 92 60 command.c:155 script_debug(): command - expr $x + 1 Debug: 93 60 command.c:155 script_debug(): command - expr 1 << $x Debug: 94 60 command.c:155 script_debug(): command - expr $x + 1 Debug: 95 60 command.c:155 script_debug(): command - expr 1 << $x Debug: 96 60 command.c:155 script_debug(): command - expr $x + 1 Debug: 97 60 command.c:155 script_debug(): command - expr 1 << $x Debug: 98 60 command.c:155 script_debug(): command - expr $x + 1 Debug: 99 60 command.c:155 script_debug(): command - expr 1 << $x Debug: 100 61 command.c:155 script_debug(): command - expr $x + 1 Debug: 101 61 command.c:155 script_debug(): command - expr 1 << $x Debug: 102 61 command.c:155 script_debug(): command - expr $x + 1 Debug: 103 61 command.c:155 script_debug(): command - expr 1 << $x Debug: 104 61 command.c:155 script_debug(): command - expr $x + 1 Debug: 105 61 command.c:155 script_debug(): command - expr 1024 * $x Debug: 106 61 command.c:155 script_debug(): command - expr $x * 2 Debug: 107 61 command.c:155 script_debug(): command - expr 1024 * $x Debug: 108 61 command.c:155 script_debug(): command - expr $x * 2 Debug: 109 61 command.c:155 script_debug(): command - expr 1024 * $x Debug: 110 62 command.c:155 script_debug(): command - expr $x * 2 Debug: 111 62 command.c:155 script_debug(): command - expr 1024 * $x Debug: 112 62 command.c:155 script_debug(): command - expr $x * 2 Debug: 113 62 command.c:155 script_debug(): command - expr 1024 * $x Debug: 114 62 command.c:155 script_debug(): command - expr $x * 2 Debug: 115 62 command.c:155 script_debug(): command - expr 1024 * $x Debug: 116 62 command.c:155 script_debug(): command - expr $x * 2 Debug: 117 62 command.c:155 script_debug(): command - expr 1024 * $x Debug: 118 62 command.c:155 script_debug(): command - expr $x * 2 Debug: 119 62 command.c:155 script_debug(): command - expr 1024 * $x Debug: 120 63 command.c:155 script_debug(): command - expr $x * 2 Debug: 121 63 command.c:155 script_debug(): command - expr 1024 * $x Debug: 122 63 command.c:155 script_debug(): command - expr $x * 2 Debug: 123 63 command.c:155 script_debug(): command - expr 1024 * $x Debug: 124 63 command.c:155 script_debug(): command - expr $x * 2 Debug: 125 63 command.c:155 script_debug(): command - expr 1024 * $x Debug: 126 63 command.c:155 script_debug(): command - expr $x * 2 Debug: 127 63 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 128 63 command.c:155 script_debug(): command - expr $x * 2 Debug: 129 63 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 130 64 command.c:155 script_debug(): command - expr $x * 2 Debug: 131 64 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 132 64 command.c:155 script_debug(): command - expr $x * 2 Debug: 133 64 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 134 64 command.c:155 script_debug(): command - expr $x * 2 Debug: 135 64 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 136 64 command.c:155 script_debug(): command - expr $x * 2 Debug: 137 65 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 138 65 command.c:155 script_debug(): command - expr $x * 2 Debug: 139 65 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 140 65 command.c:155 script_debug(): command - expr $x * 2 Debug: 141 65 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 142 65 command.c:155 script_debug(): command - expr $x * 2 Debug: 143 65 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 144 65 command.c:155 script_debug(): command - expr $x * 2 Debug: 145 65 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 146 65 command.c:155 script_debug(): command - expr $x * 2 Debug: 147 66 command.c:155 script_debug(): command - expr 1024 * 1024 * $x Debug: 148 66 command.c:155 script_debug(): command - expr $x * 2 Debug: 149 66 command.c:155 script_debug(): command - ocd_find memory.tcl Debug: 150 78 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/memory.tcl Debug: 151 79 command.c:155 script_debug(): command - expr $RWX_R_ONLY + $RWX_W_ONLY Debug: 152 79 command.c:155 script_debug(): command - expr $RWX_R_ONLY + $RWX_X_ONLY Debug: 153 79 command.c:155 script_debug(): command - expr $RWX_R_ONLY + $RWX_W_ONLY + $RWX_X_ONLY Debug: 154 79 command.c:155 script_debug(): command - expr $ACCESS_WIDTH_8 + $ACCESS_WIDTH_16 + $ACCESS_WIDTH_32 Debug: 155 79 command.c:155 script_debug(): command - ocd_find mmr_helpers.tcl Debug: 156 91 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/mmr_helpers.tcl Debug: 157 91 command.c:155 script_debug(): command - ocd_find target/esp_common.cfg Debug: 158 103 configuration.c:88 find_file(): found C:/Users/katsuhiro/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026/bin/../share/openocd/scripts/target/esp_common.cfg Debug: 159 104 command.c:155 script_debug(): command - add_help_text program_esp write an image to flash, address is only required for binary images. verify, reset, exit, compress, restore_clock are optional Debug: 160 104 command.c:155 script_debug(): command - add_usage_text program_esp [address] [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock] Debug: 161 104 command.c:155 script_debug(): command - add_help_text program_esp_bins write all the images at address specified in flasher_args.json generated while building idf project Debug: 162 104 command.c:155 script_debug(): command - add_usage_text program_esp_bins flasher_args.json [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock] Debug: 163 105 command.c:155 script_debug(): command - add_help_text esp_get_mac Print MAC address of the chip. Use a `format` argument to return formatted MAC value Debug: 164 105 command.c:155 script_debug(): command - add_usage_text esp_get_mac [format] Debug: 165 105 command.c:155 script_debug(): command - jtag newtap esp32c3 cpu -irlen 5 -expected-id 0x00005c25 Debug: 166 105 tcl.c:558 jim_newtap_cmd(): Creating New Tap, Chip: esp32c3, Tap: cpu, Dotted: esp32c3.cpu, 4 params Debug: 167 105 tcl.c:582 jim_newtap_cmd(): Processing option: -irlen Debug: 168 105 tcl.c:582 jim_newtap_cmd(): Processing option: -expected-id Debug: 169 105 core.c:1478 jtag_tap_init(): Created Tap: esp32c3.cpu @ abs position 0, irlen 5, capture: 0x1 mask: 0x3 Debug: 170 106 command.c:155 script_debug(): command - target create esp32c3 esp32c3 -chain-position esp32c3.cpu -rtos FreeRTOS Debug: 171 106 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 172 106 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 173 106 FreeRTOS.c:1396 freertos_create(): freertos_create Debug: 174 106 command.c:289 register_command(): command 'esp' is already registered Debug: 175 107 command.c:289 register_command(): command 'esp32c3 esp' is already registered Debug: 176 107 command.c:155 script_debug(): command - esp32c3 configure -event reset-assert-post esp32c3_soc_reset Debug: 177 107 command.c:155 script_debug(): command - esp32c3 configure -event halted esp32c3_wdt_disable Debug: 178 107 command.c:155 script_debug(): command - esp32c3 configure -event examine-end # Need this to handle 'apptrace init' syscall correctly because semihosting is not enabled by default arm semihosting enable arm semihosting_resexit enable if { [info exists _SEMIHOST_BASEDIR] } { if { $_SEMIHOST_BASEDIR != "" } { arm semihosting_basedir $_SEMIHOST_BASEDIR } } Debug: 179 108 command.c:155 script_debug(): command - esp32c3 configure -event gdb-attach # 'halt' is necessary to auto-probe flash bank when GDB is connected and generate proper memory map halt 1000 if { [esp32c3_memprot_is_enabled] } { # 'reset halt' to disable memory protection and allow flasher to work correctly echo "Memory protection is enabled. Reset target to disable it..." reset halt } # by default mask interrupts while stepping riscv set_maskisr steponly Debug: 180 108 command.c:155 script_debug(): command - esp32c3 configure -work-area-phys 0x40380000 -work-area-virt 0x40380000 -work-area-size 0x4000 -work-area-backup 1 Debug: 181 109 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 182 109 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 183 109 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 184 109 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 185 109 command.c:155 script_debug(): command - esp32c3 configure -alt-work-area-phys 0x3FC84000 -alt-work-area-virt 0x3FC84000 -alt-work-area-size 0x20000 -alt-work-area-backup 1 Debug: 186 109 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 187 110 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 188 110 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 189 110 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas Debug: 190 110 command.c:155 script_debug(): command - flash bank esp32c3.flash esp32c3 0x0 0 0 0 esp32c3 Debug: 191 110 command.c:289 register_command(): command 'esp' is already registered Debug: 192 110 tcl.c:1305 handle_flash_bank_command(): 'esp32c3' driver usage field missing Debug: 193 110 command.c:155 script_debug(): command - flash bank esp32c3.irom esp32c3 0x0 0 0 0 esp32c3 Debug: 194 111 command.c:289 register_command(): command 'esp' is already registered Debug: 195 111 command.c:289 register_command(): command 'esp appimage_offset' is already registered Debug: 196 111 command.c:289 register_command(): command 'esp compression' is already registered Debug: 197 111 command.c:289 register_command(): command 'esp verify_bank_hash' is already registered Debug: 198 111 command.c:289 register_command(): command 'esp flash_stub_clock_boost' is already registered Debug: 199 111 tcl.c:1305 handle_flash_bank_command(): 'esp32c3' driver usage field missing Debug: 200 111 command.c:155 script_debug(): command - flash bank esp32c3.drom esp32c3 0x0 0 0 0 esp32c3 Debug: 201 111 command.c:289 register_command(): command 'esp' is already registered Debug: 202 112 command.c:289 register_command(): command 'esp appimage_offset' is already registered Debug: 203 112 command.c:289 register_command(): command 'esp compression' is already registered Debug: 204 112 command.c:289 register_command(): command 'esp verify_bank_hash' is already registered Debug: 205 112 command.c:289 register_command(): command 'esp flash_stub_clock_boost' is already registered Debug: 206 112 tcl.c:1305 handle_flash_bank_command(): 'esp32c3' driver usage field missing Debug: 207 112 command.c:155 script_debug(): command - riscv set_reset_timeout_sec 2 Debug: 208 112 command.c:155 script_debug(): command - riscv set_command_timeout_sec 5 Debug: 209 113 command.c:155 script_debug(): command - riscv set_mem_access sysbus progbuf abstract Debug: 210 113 command.c:155 script_debug(): command - riscv set_ebreakm on Debug: 211 113 command.c:155 script_debug(): command - riscv set_ebreaks on Debug: 212 113 command.c:155 script_debug(): command - riscv set_ebreaku on Info : 213 114 server.c:292 add_service(): Listening on port 50001 for tcl connections Info : 214 114 server.c:292 add_service(): Listening on port 50002 for telnet connections Debug: 215 114 command.c:155 script_debug(): command - init Debug: 216 115 command.c:155 script_debug(): command - target init Debug: 217 115 command.c:155 script_debug(): command - target names Debug: 218 115 command.c:155 script_debug(): command - esp32c3 cget -event gdb-flash-erase-start Debug: 219 115 command.c:155 script_debug(): command - esp32c3 configure -event gdb-flash-erase-start reset init Debug: 220 115 command.c:155 script_debug(): command - esp32c3 cget -event gdb-flash-write-end Debug: 221 115 command.c:155 script_debug(): command - esp32c3 configure -event gdb-flash-write-end reset halt Debug: 222 115 command.c:155 script_debug(): command - esp32c3 cget -event gdb-attach Debug: 223 116 target.c:1659 handle_target_init_command(): Initializing targets... Debug: 224 116 riscv.c:444 riscv_init_target(): riscv_init_target() Debug: 225 116 semihosting_common.c:107 semihosting_common_init(): Error: 226 131 esp_usb_jtag.c:642 esp_usb_jtag_init(): esp_usb_jtag: could not find or open device! Debug: 227 131 command.c:545 run_command(): Command 'init' failed with error code -4 User : 228 131 command.c:608 command_run_line(): Error: 229 131 riscv.c:1755 riscv_get_gdb_arch(): Unsupported xlen: -1 Error: 230 131 esp_semihosting.c:67 target_to_esp_semihost_data(): Unknown target arch! Debug: 231 131 riscv.c:490 riscv_deinit_target(): riscv_deinit_target() Debug: 232 132 target.c:2225 target_free_all_working_areas_restore(): freeing all working areas