espressif / openocd-esp32

OpenOCD branch with ESP32 JTAG support
Other
360 stars 132 forks source link

esp32-s3 GDB is not connecting and openocd stopping (OCD-451) #201

Closed ndinsmore closed 2 years ago

ndinsmore commented 2 years ago

Environment

Problem Description

Using the basic blinky example. Please note that while all this output is from using vscode, I have attempted it through the command line and get the same results.

1.) flash code 2.)Start openocd with the following setup commands

        { "text": "set remotelogfile ${workspaceFolder}/build/gdb_log.txt"},
        { "text": "target remote :3333" },
        { "text": "set remote hardware-watchpoint-limit 2"},
        { "text": "mon reset halt" },
        { "text": "thb app_main" },
        { "text": "flushregs" },
        { "text": "c" }

3.) Start GDB

when gdb is started the board does halt as indicated by the led no longer flashing,

Debug Logs

openocd output in vscode

``` Open On-Chip Debugger v0.10.0-esp32-20211111 (2021-11-10-21:44) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 1 options.c:57 configuration_output_handler(): debug_level: 3 User : 14 1 options.c:57 configuration_output_handler(): Debug: 15 1 options.c:181 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin Debug: 16 1 options.c:182 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd Debug: 17 1 options.c:183 add_default_dirs(): exepath=~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/bin Debug: 18 1 options.c:184 add_default_dirs(): bin2data=../share/openocd Debug: 19 1 configuration.c:42 add_script_search_dir(): adding ~/.openocd Debug: 20 1 configuration.c:42 add_script_search_dir(): adding ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/share/openocd/scripts Debug: 21 1 configuration.c:42 add_script_search_dir(): adding ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/bin/../share/openocd/site Debug: 22 1 configuration.c:42 add_script_search_dir(): adding ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/bin/../share/openocd/scripts Debug: 23 1 configuration.c:97 find_file(): found ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/share/openocd/scripts/board/esp32s3-builtin.cfg Debug: 24 1 configuration.c:97 find_file(): found ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/share/openocd/scripts/interface/esp_usb_jtag.cfg Debug: 25 1 command.c:143 script_debug(): command - interface interface esp_usb_jtag Debug: 27 1 command.c:355 register_command_handler(): registering 'espusbjtag'... Debug: 28 1 command.c:355 register_command_handler(): registering 'espusbjtag'... Debug: 29 1 command.c:355 register_command_handler(): registering 'espusbjtag'... Debug: 30 1 command.c:355 register_command_handler(): registering 'espusbjtag'... Info : 31 1 transport.c:117 allow_transports(): only one transport option; autoselect 'jtag' Debug: 32 1 command.c:355 register_command_handler(): registering 'jtag_flush_queue_sleep'... Debug: 33 1 command.c:355 register_command_handler(): registering 'jtag_rclk'... Debug: 34 1 command.c:355 register_command_handler(): registering 'jtag_ntrst_delay'... Debug: 35 1 command.c:355 register_command_handler(): registering 'jtag_ntrst_assert_width'... Debug: 36 1 command.c:355 register_command_handler(): registering 'scan_chain'... Debug: 37 1 command.c:355 register_command_handler(): registering 'jtag_reset'... Debug: 38 1 command.c:355 register_command_handler(): registering 'runtest'... Debug: 39 1 command.c:355 register_command_handler(): registering 'irscan'... Debug: 40 1 command.c:355 register_command_handler(): registering 'verify_ircapture'... Debug: 41 1 command.c:355 register_command_handler(): registering 'verify_jtag'... Debug: 42 1 command.c:355 register_command_handler(): registering 'tms_sequence'... Debug: 43 1 command.c:355 register_command_handler(): registering 'wait_srst_deassert'... Debug: 44 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 45 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 46 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 47 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 48 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 49 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 50 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 51 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 52 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 53 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 54 1 command.c:355 register_command_handler(): registering 'jtag'... Debug: 55 2 command.c:355 register_command_handler(): registering 'jtag'... Debug: 56 2 command.c:355 register_command_handler(): registering 'jtag'... Debug: 57 2 command.c:355 register_command_handler(): registering 'svf'... Debug: 58 2 command.c:355 register_command_handler(): registering 'xsvf'... Debug: 59 2 command.c:143 script_debug(): command - adapter_khz adapter_khz 40000 Debug: 61 2 core.c:1704 jtag_config_khz(): handle jtag khz Debug: 62 2 core.c:1667 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 63 2 core.c:1667 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 64 2 configuration.c:97 find_file(): found ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/share/openocd/scripts/target/esp32s3.cfg Debug: 65 2 command.c:143 script_debug(): command - transport transport select jtag Warn : 66 2 transport.c:297 jim_transport_select(): Transport "jtag" was already selected Debug: 67 2 configuration.c:97 find_file(): found ~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/share/openocd/scripts/target/esp_common.cfg Debug: 68 2 command.c:143 script_debug(): command - add_help_text 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: 70 2 command.c:1127 help_add_command(): added 'program_esp' help text Debug: 71 2 command.c:143 script_debug(): command - add_usage_text add_usage_text program_esp [address] [verify] [reset] [exit] [compress] [restore_clock] Debug: 73 2 command.c:1153 help_add_command(): added 'program_esp' usage text Debug: 74 2 command.c:143 script_debug(): command - add_help_text add_help_text program_esp_bins write all the images at address specified in flasher_args.json generated while building idf project Debug: 76 2 command.c:1127 help_add_command(): added 'program_esp_bins' help text Debug: 77 2 command.c:143 script_debug(): command - add_usage_text add_usage_text program_esp_bins flasher_args.json [verify] [reset] [exit] [compress] [restore_clock] Debug: 79 2 command.c:1153 help_add_command(): added 'program_esp_bins' usage text Debug: 80 2 command.c:143 script_debug(): command - add_help_text add_help_text esp_get_mac Print MAC address of the chip. Use a `format` argument to return formatted MAC value Debug: 82 2 command.c:1127 help_add_command(): added 'esp_get_mac' help text Debug: 83 2 command.c:143 script_debug(): command - add_usage_text add_usage_text esp_get_mac [format] Debug: 85 2 command.c:1153 help_add_command(): added 'esp_get_mac' usage text Debug: 86 2 command.c:143 script_debug(): command - jtag jtag newtap esp32s3 cpu0 -irlen 5 -expected-id 0x120034e5 Debug: 87 2 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: esp32s3, Tap: cpu0, Dotted: esp32s3.cpu0, 4 params Debug: 88 2 tcl.c:591 jim_newtap_cmd(): Processing option: -irlen Debug: 89 2 tcl.c:591 jim_newtap_cmd(): Processing option: -expected-id Debug: 90 2 core.c:1372 jtag_tap_init(): Created Tap: esp32s3.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3 Debug: 91 2 command.c:143 script_debug(): command - jtag jtag newtap esp32s3 cpu1 -irlen 5 -expected-id 0x120034e5 Debug: 92 2 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: esp32s3, Tap: cpu1, Dotted: esp32s3.cpu1, 4 params Debug: 93 2 tcl.c:591 jim_newtap_cmd(): Processing option: -irlen Debug: 94 2 tcl.c:591 jim_newtap_cmd(): Processing option: -expected-id Debug: 95 2 core.c:1372 jtag_tap_init(): Created Tap: esp32s3.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3 Debug: 96 2 command.c:143 script_debug(): command - target target create esp32s3.cpu0 esp32s3 -endian little -chain-position esp32s3.cpu0 -coreid 0 -rtos FreeRTOS Debug: 97 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 98 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 99 2 FreeRTOS.c:1225 FreeRTOS_create(): FreeRTOS_create Debug: 100 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 101 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 102 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 103 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 104 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 105 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 106 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 107 2 command.c:355 register_command_handler(): registering 'xtensa'... Debug: 108 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 109 2 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 110 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 111 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 112 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 113 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 114 2 command.c:355 register_command_handler(): registering 'esp32'... Debug: 115 2 command.c:355 register_command_handler(): registering 'esp32'... Debug: 116 2 command.c:355 register_command_handler(): registering 'esp32'... Debug: 117 2 command.c:355 register_command_handler(): registering 'esp32'... Debug: 118 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 119 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 120 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 121 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 122 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 123 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 124 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 125 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 126 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 127 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 128 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 129 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 130 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 131 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 132 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 133 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 134 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 135 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 136 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 137 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 138 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 139 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 140 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 141 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 142 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 143 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 144 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 145 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 146 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 147 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 148 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 149 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 150 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 151 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 152 2 command.c:377 register_command(): command 'esp' is already registered in 'esp32s3.cpu0' context Debug: 153 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 154 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 155 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 156 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 157 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 158 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 159 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 160 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 161 2 command.c:355 register_command_handler(): registering 'esp32s3.cpu0'... Debug: 162 2 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 configure -work-area-phys 0x403B0000 -work-area-virt 0x403B0000 -work-area-size 0x3400 -work-area-backup 1 Debug: 163 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 164 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 165 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 166 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 167 2 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 configure -alt-work-area-phys 0x3FCE0000 -alt-work-area-virt 0x3FCE0000 -alt-work-area-size 0x10000 -alt-work-area-backup 1 Debug: 168 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 169 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 170 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 171 2 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 172 2 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu0.flash esp32s3 0x0 0 0 0 esp32s3.cpu0 Debug: 174 2 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 175 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 176 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 177 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 178 2 command.c:355 register_command_handler(): registering 'esp'... Debug: 179 2 command.c:355 register_command_handler(): registering 'esp32s3'... Debug: 180 2 command.c:355 register_command_handler(): registering 'esp32s3'... Debug: 181 2 command.c:355 register_command_handler(): registering 'esp32s3'... Debug: 182 2 command.c:355 register_command_handler(): registering 'esp32s3'... Debug: 183 2 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 184 2 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu0.irom esp32s3 0x0 0 0 0 esp32s3.cpu0 Debug: 186 2 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 187 2 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context Debug: 188 2 command.c:377 register_command(): command 'compression' is already registered in 'esp' context Debug: 189 2 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp' context Debug: 190 2 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context Debug: 191 2 command.c:377 register_command(): command 'esp32s3' is already registered in '' context Debug: 192 2 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32s3' context Debug: 193 2 command.c:377 register_command(): command 'compression' is already registered in 'esp32s3' context Debug: 194 2 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp32s3' context Debug: 195 2 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32s3' context Debug: 196 2 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 197 2 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu0.drom esp32s3 0x0 0 0 0 esp32s3.cpu0 Debug: 199 2 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 200 2 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context Debug: 201 2 command.c:377 register_command(): command 'compression' is already registered in 'esp' context Debug: 202 2 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp' context Debug: 203 2 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context Debug: 204 2 command.c:377 register_command(): command 'esp32s3' is already registered in '' context Debug: 205 2 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32s3' context Debug: 206 2 command.c:377 register_command(): command 'compression' is already registered in 'esp32s3' context Debug: 207 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp32s3' context Debug: 208 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32s3' context Debug: 209 3 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 210 3 command.c:143 script_debug(): command - target target create esp32s3.cpu1 esp32s3 -endian little -chain-position esp32s3.cpu1 -coreid 1 -rtos FreeRTOS Debug: 211 3 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 212 3 target.c:2012 target_free_all_working_areas_restore(): freeing all working areas Debug: 213 3 FreeRTOS.c:1225 FreeRTOS_create(): FreeRTOS_create Debug: 214 3 command.c:377 register_command(): command 'xtensa' is already registered in '' context Debug: 215 3 command.c:377 register_command(): command 'set_permissive' is already registered in 'xtensa' context Debug: 216 3 command.c:377 register_command(): command 'maskisr' is already registered in 'xtensa' context Debug: 217 3 command.c:377 register_command(): command 'smpbreak' is already registered in 'xtensa' context Debug: 218 3 command.c:377 register_command(): command 'perfmon_enable' is already registered in 'xtensa' context Debug: 219 3 command.c:377 register_command(): command 'perfmon_dump' is already registered in 'xtensa' context Debug: 220 3 command.c:377 register_command(): command 'tracestart' is already registered in 'xtensa' context Debug: 221 3 command.c:377 register_command(): command 'tracestop' is already registered in 'xtensa' context Debug: 222 3 command.c:377 register_command(): command 'tracedump' is already registered in 'xtensa' context Debug: 223 3 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 224 3 command.c:377 register_command(): command 'semihost_basedir' is already registered in 'esp' context Debug: 225 3 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 226 3 command.c:377 register_command(): command 'apptrace' is already registered in 'esp' context Debug: 227 3 command.c:377 register_command(): command 'sysview' is already registered in 'esp' context Debug: 228 3 command.c:377 register_command(): command 'sysview_mcore' is already registered in 'esp' context Debug: 229 3 command.c:377 register_command(): command 'gcov' is already registered in 'esp' context Debug: 230 3 command.c:377 register_command(): command 'esp32' is already registered in '' context Debug: 231 3 command.c:377 register_command(): command 'smp' is already registered in 'esp32' context Debug: 232 3 command.c:377 register_command(): command 'smp_on' is already registered in 'esp32' context Debug: 233 3 command.c:377 register_command(): command 'smp_off' is already registered in 'esp32' context Debug: 234 3 command.c:377 register_command(): command 'smp_gdb' is already registered in 'esp32' context Debug: 235 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 236 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 237 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 238 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 239 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 240 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 241 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 242 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 243 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 244 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 245 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 246 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 247 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 248 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 249 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 250 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 251 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 252 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 253 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 254 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 255 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 256 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 257 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 258 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 259 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 260 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 261 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 262 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 263 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 264 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 265 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 266 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 267 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 268 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 269 3 command.c:377 register_command(): command 'esp' is already registered in 'esp32s3.cpu1' context Debug: 270 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 271 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 272 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 273 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 274 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 275 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 276 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 277 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 278 3 command.c:355 register_command_handler(): registering 'esp32s3.cpu1'... Debug: 279 3 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu1.flash esp32s3 0x0 0 0 0 esp32s3.cpu1 Debug: 281 3 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 282 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context Debug: 283 3 command.c:377 register_command(): command 'compression' is already registered in 'esp' context Debug: 284 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp' context Debug: 285 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context Debug: 286 3 command.c:377 register_command(): command 'esp32s3' is already registered in '' context Debug: 287 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32s3' context Debug: 288 3 command.c:377 register_command(): command 'compression' is already registered in 'esp32s3' context Debug: 289 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp32s3' context Debug: 290 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32s3' context Debug: 291 3 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 292 3 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu1.irom esp32s3 0x0 0 0 0 esp32s3.cpu1 Debug: 294 3 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 295 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context Debug: 296 3 command.c:377 register_command(): command 'compression' is already registered in 'esp' context Debug: 297 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp' context Debug: 298 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context Debug: 299 3 command.c:377 register_command(): command 'esp32s3' is already registered in '' context Debug: 300 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32s3' context Debug: 301 3 command.c:377 register_command(): command 'compression' is already registered in 'esp32s3' context Debug: 302 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp32s3' context Debug: 303 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32s3' context Debug: 304 3 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 305 3 command.c:143 script_debug(): command - flash flash bank esp32s3.cpu1.drom esp32s3 0x0 0 0 0 esp32s3.cpu1 Debug: 307 3 command.c:377 register_command(): command 'esp' is already registered in '' context Debug: 308 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context Debug: 309 3 command.c:377 register_command(): command 'compression' is already registered in 'esp' context Debug: 310 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp' context Debug: 311 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context Debug: 312 3 command.c:377 register_command(): command 'esp32s3' is already registered in '' context Debug: 313 3 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32s3' context Debug: 314 3 command.c:377 register_command(): command 'compression' is already registered in 'esp32s3' context Debug: 315 3 command.c:377 register_command(): command 'verify_bank_hash' is already registered in 'esp32s3' context Debug: 316 3 command.c:377 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32s3' context Debug: 317 3 tcl.c:1156 handle_flash_bank_command(): 'esp32s3' driver usage field missing Debug: 318 3 command.c:143 script_debug(): command - target target smp esp32s3.cpu0 esp32s3.cpu1 Debug: 319 3 target.c:5792 jim_target_smp(): 3 Debug: 320 3 target.c:5802 jim_target_smp(): esp32s3.cpu0 Debug: 321 3 target.c:5802 jim_target_smp(): esp32s3.cpu1 Debug: 322 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 xtensa maskisr on Debug: 324 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 xtensa smpbreak BreakIn BreakOut Debug: 326 3 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=30000, state=1 Debug: 327 3 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu1: set smpbreak=30000, state=1 Debug: 328 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 esp semihost_basedir . Debug: 330 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 configure -event gdb-attach $_TARGETNAME_0 xtensa smpbreak BreakIn BreakOut # necessary to auto-probe flash bank when GDB is connected halt Debug: 331 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 configure -event gdb-attach $_TARGETNAME_1 xtensa smpbreak BreakIn BreakOut # necessary to auto-probe flash bank when GDB is connected halt Debug: 332 3 command.c:143 script_debug(): command - flash flash list Debug: 333 3 command.c:143 script_debug(): command - echo echo WARNING: ESP32-S3 target may experience problems when accessing flash via builtin USB-JTAG adapter! User : 335 3 command.c:770 jim_echo(): WARNING: ESP32-S3 target may experience problems when accessing flash via builtin USB-JTAG adapter! Debug: 336 3 command.c:143 script_debug(): command - echo echo WARNING: It is recommended to disable flash support by running OpenOCD with `-c 'set ESP_FLASH_SIZE 0'` or use external JTAG adapter. User : 338 3 command.c:770 jim_echo(): WARNING: It is recommended to disable flash support by running OpenOCD with `-c 'set ESP_FLASH_SIZE 0'` or use external JTAG adapter. Info : 339 3 server.c:311 add_service(): Listening on port 6666 for tcl connections Info : 340 3 server.c:311 add_service(): Listening on port 4444 for telnet connections Debug: 341 3 command.c:143 script_debug(): command - init init Debug: 343 3 command.c:143 script_debug(): command - target target init Debug: 345 3 command.c:143 script_debug(): command - target target names Debug: 346 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 cget -event gdb-flash-erase-start Debug: 347 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 configure -event gdb-flash-erase-start reset init Debug: 348 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 cget -event gdb-flash-write-end Debug: 349 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 configure -event gdb-flash-write-end reset halt Debug: 350 3 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 cget -event gdb-attach Debug: 351 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 cget -event gdb-flash-erase-start Debug: 352 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 configure -event gdb-flash-erase-start reset init Debug: 353 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 cget -event gdb-flash-write-end Debug: 354 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 configure -event gdb-flash-write-end reset halt Debug: 355 3 command.c:143 script_debug(): command - esp32s3.cpu1 esp32s3.cpu1 cget -event gdb-attach Debug: 356 3 target.c:1450 handle_target_init_command(): Initializing targets... Debug: 357 3 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'litbase' (152) does not exist Debug: 358 3 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'ptevaddr' (153) does not exist Debug: 359 3 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'rasid' (154) does not exist Debug: 360 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'itlbcfg' (155) does not exist Debug: 361 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'dtlbcfg' (156) does not exist Debug: 362 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mepc' (157) does not exist Debug: 363 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'meps' (158) does not exist Debug: 364 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesave' (159) does not exist Debug: 365 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesr' (160) does not exist Debug: 366 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mecr' (161) does not exist Debug: 367 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mevaddr' (162) does not exist Debug: 368 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'litbase' (152) does not exist Debug: 369 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'ptevaddr' (153) does not exist Debug: 370 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'rasid' (154) does not exist Debug: 371 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'itlbcfg' (155) does not exist Debug: 372 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'dtlbcfg' (156) does not exist Debug: 373 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mepc' (157) does not exist Debug: 374 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'meps' (158) does not exist Debug: 375 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesave' (159) does not exist Debug: 376 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesr' (160) does not exist Debug: 377 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mecr' (161) does not exist Debug: 378 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mevaddr' (162) does not exist Debug: 379 4 command.c:355 register_command_handler(): registering 'target_request'... Debug: 380 4 command.c:355 register_command_handler(): registering 'trace'... Debug: 381 4 command.c:355 register_command_handler(): registering 'trace'... Debug: 382 4 command.c:355 register_command_handler(): registering 'fast_load_image'... Debug: 383 4 command.c:355 register_command_handler(): registering 'fast_load'... Debug: 384 4 command.c:355 register_command_handler(): registering 'profile'... Debug: 385 4 command.c:355 register_command_handler(): registering 'virt2phys'... Debug: 386 4 command.c:355 register_command_handler(): registering 'reg'... Debug: 387 4 command.c:355 register_command_handler(): registering 'poll'... Debug: 388 4 command.c:355 register_command_handler(): registering 'wait_halt'... Debug: 389 4 command.c:355 register_command_handler(): registering 'halt'... Debug: 390 4 command.c:355 register_command_handler(): registering 'resume'... Debug: 391 4 command.c:355 register_command_handler(): registering 'reset'... Debug: 392 4 command.c:355 register_command_handler(): registering 'soft_reset_halt'... Debug: 393 4 command.c:355 register_command_handler(): registering 'step'... Debug: 394 4 command.c:355 register_command_handler(): registering 'mdd'... Debug: 395 4 command.c:355 register_command_handler(): registering 'mdw'... Debug: 396 4 command.c:355 register_command_handler(): registering 'mdh'... Debug: 397 4 command.c:355 register_command_handler(): registering 'mdb'... Debug: 398 4 command.c:355 register_command_handler(): registering 'mwd'... Debug: 399 4 command.c:355 register_command_handler(): registering 'mww'... Debug: 400 4 command.c:355 register_command_handler(): registering 'mwh'... Debug: 401 4 command.c:355 register_command_handler(): registering 'mwb'... Debug: 402 4 command.c:355 register_command_handler(): registering 'bp'... Debug: 403 4 command.c:355 register_command_handler(): registering 'rbp'... Debug: 404 4 command.c:355 register_command_handler(): registering 'wp'... Debug: 405 4 command.c:355 register_command_handler(): registering 'rwp'... Debug: 406 4 command.c:355 register_command_handler(): registering 'load_image'... Debug: 407 4 command.c:355 register_command_handler(): registering 'dump_image'... Debug: 408 4 command.c:355 register_command_handler(): registering 'verify_image_checksum'... Debug: 409 4 command.c:355 register_command_handler(): registering 'verify_image'... Debug: 410 4 command.c:355 register_command_handler(): registering 'test_image'... Debug: 411 4 command.c:355 register_command_handler(): registering 'reset_nag'... Debug: 412 4 command.c:355 register_command_handler(): registering 'ps'... Debug: 413 4 command.c:355 register_command_handler(): registering 'test_mem_access'... Debug: 414 10 libusb1_common.c:304 jtag_libusb_choose_interface(): usb ep out 02 Debug: 415 10 libusb1_common.c:304 jtag_libusb_choose_interface(): usb ep in 83 Debug: 416 10 libusb1_common.c:312 jtag_libusb_choose_interface(): Claiming interface 2 Info : 417 10 esp_usb_jtag.c:720 esp_usb_jtag_init(): esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255 Debug: 418 10 core.c:1667 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 419 10 core.c:1671 adapter_khz_to_speed(): have interface set up Debug: 420 10 esp_usb_jtag.c:766 esp_usb_jtag_khz(): Divisor for 40000 KHz with base clock of 40000 khz is 1 Debug: 421 11 esp_usb_jtag.c:782 esp_usb_jtag_speed(): esp_usb_jtag: setting divisor 1 Debug: 422 11 core.c:1667 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 423 11 core.c:1671 adapter_khz_to_speed(): have interface set up Debug: 424 11 esp_usb_jtag.c:766 esp_usb_jtag_khz(): Divisor for 40000 KHz with base clock of 40000 khz is 1 Info : 425 11 core.c:1449 adapter_init(): clock speed 40000 kHz Debug: 426 11 openocd.c:141 handle_init_command(): Debug Adapter init complete Debug: 427 11 command.c:143 script_debug(): command - transport transport init Debug: 429 11 transport.c:239 handle_transport_init(): handle_transport_init Debug: 430 11 core.c:729 jtag_add_reset(): SRST line released Debug: 431 11 core.c:753 jtag_add_reset(): TRST line released Debug: 432 11 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 433 11 command.c:143 script_debug(): command - jtag jtag arp_init Debug: 434 11 core.c:1462 jtag_init_inner(): Init JTAG chain Debug: 435 11 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 436 11 core.c:1128 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 437 11 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Info : 438 12 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : 439 12 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Debug: 440 12 core.c:1258 jtag_validate_ircapture(): IR capture validation scan Debug: 441 13 core.c:1316 jtag_validate_ircapture(): esp32s3.cpu0: IR capture 0x01 Debug: 442 13 core.c:1316 jtag_validate_ircapture(): esp32s3.cpu1: IR capture 0x01 Debug: 443 13 command.c:143 script_debug(): command - dap dap init Debug: 445 13 arm_dap.c:106 dap_init_all(): Initializing all DAPs ... Debug: 446 13 openocd.c:158 handle_init_command(): Examining targets... Debug: 447 13 target.c:1638 target_call_event_callbacks(): target event 17 (examine-start) for core esp32s3.cpu0 Debug: 448 13 esp32s3.c:570 esp32s3_handle_target_event(): 17 Debug: 449 13 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 17 Debug: 450 13 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 17 Debug: 451 13 xtensa.c:2447 xtensa_handle_target_event(): 17 Debug: 452 13 xtensa.c:685 xtensa_examine(): xtensa_examine coreid=0 Debug: 453 14 xtensa.c:698 xtensa_examine(): OCD_ID = 0b339fd2 Debug: 454 14 target.c:1638 target_call_event_callbacks(): target event 18 (examine-end) for core esp32s3.cpu0 Debug: 455 14 esp32s3.c:570 esp32s3_handle_target_event(): 18 Debug: 456 14 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 18 Debug: 457 14 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 18 Debug: 458 14 xtensa.c:2447 xtensa_handle_target_event(): 18 Debug: 459 14 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x30000 clear=0x600000 Debug: 460 14 target.c:1638 target_call_event_callbacks(): target event 17 (examine-start) for core esp32s3.cpu1 Debug: 461 14 esp32s3.c:570 esp32s3_handle_target_event(): 17 Debug: 462 14 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 17 Debug: 463 14 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 17 Debug: 464 14 xtensa.c:2447 xtensa_handle_target_event(): 17 Debug: 465 14 xtensa.c:685 xtensa_examine(): xtensa_examine coreid=1 Debug: 466 15 xtensa.c:698 xtensa_examine(): OCD_ID = 0b339fd2 Debug: 467 15 target.c:1638 target_call_event_callbacks(): target event 18 (examine-end) for core esp32s3.cpu1 Debug: 468 15 esp32s3.c:570 esp32s3_handle_target_event(): 18 Debug: 469 15 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 18 Debug: 470 15 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 18 Debug: 471 15 xtensa.c:2447 xtensa_handle_target_event(): 18 Debug: 472 15 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu1: write smpbreak set=0x30000 clear=0x600000 Debug: 473 15 command.c:143 script_debug(): command - flash flash init Debug: 474 16 esp_xtensa_smp.c:174 esp_xtensa_smp_poll(): esp32s3.cpu0: Check for unexamined cores after reset Debug: 475 18 esp_xtensa_smp.c:174 esp_xtensa_smp_poll(): esp32s3.cpu1: Check for unexamined cores after reset Debug: 477 18 tcl.c:1222 handle_flash_init_command(): Initializing flash devices... Debug: 478 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 479 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 480 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 481 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 482 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 483 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 484 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 485 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 486 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 487 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 488 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 489 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 490 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 491 18 command.c:355 register_command_handler(): registering 'flash'... Debug: 492 18 command.c:143 script_debug(): command - nand nand init Debug: 494 20 tcl.c:498 handle_nand_init_command(): Initializing NAND devices... Debug: 495 20 command.c:143 script_debug(): command - pld pld init Debug: 497 22 pld.c:206 handle_pld_init_command(): Initializing PLDs... Debug: 498 22 gdb_server.c:3593 gdb_target_start(): starting gdb server for esp32s3.cpu0 on 3333 Info : 499 22 server.c:311 add_service(): Listening on port 3333 for gdb connections Info : 500 75839 server.c:100 add_connection(): accepting 'gdb' connection on tcp/3333 Debug: 501 75839 breakpoints.c:358 breakpoint_clear_target_internal(): Delete all breakpoints for target: esp32s3.cpu0 Debug: 502 75839 breakpoints.c:358 breakpoint_clear_target_internal(): Delete all breakpoints for target: esp32s3.cpu1 Debug: 503 75839 breakpoints.c:552 watchpoint_clear_target(): Delete all watchpoints for target: esp32s3.cpu0 Debug: 504 75839 FreeRTOS.c:1197 FreeRTOS_clean(): FreeRTOS_clean Debug: 505 75839 FreeRTOS.c:708 FreeRTOS_update_threads(): FreeRTOS_update_threads Warn : 506 75839 FreeRTOS.c:716 FreeRTOS_update_threads(): No symbols for FreeRTOS! Debug: 507 75840 target.c:1638 target_call_event_callbacks(): target event 19 (gdb-attach) for core esp32s3.cpu0 Debug: 508 75840 target.c:4639 target_handle_event(): target(0): esp32s3.cpu0 (esp32s3) event: 19 (gdb-attach) action: $_TARGETNAME_0 xtensa smpbreak BreakIn BreakOut # necessary to auto-probe flash bank when GDB is connected halt Debug: 509 75840 command.c:143 script_debug(): command - esp32s3.cpu0 esp32s3.cpu0 xtensa smpbreak BreakIn BreakOut Debug: 511 75843 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x30000 clear=0x600000 Debug: 512 75843 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=30000, state=1 Debug: 513 75843 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu1: write smpbreak set=0x30000 clear=0x600000 Debug: 514 75843 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu1: set smpbreak=30000, state=1 Debug: 515 75843 command.c:143 script_debug(): command - halt halt Debug: 517 75845 target.c:3135 handle_halt_command(): - Debug: 518 75845 xtensa.c:1133 xtensa_halt(): xtensa_halt, target: esp32s3.cpu0 Debug: 519 75845 xtensa.c:1145 xtensa_halt(): esp32s3.cpu0: Core status 0x80000000 Debug: 520 75846 xtensa.c:890 xtensa_fetch_all_regs(): esp32s3.cpu0: start Debug: 521 75855 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (80318411) Debug: 522 75865 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (80318411) Debug: 523 75865 esp32s3.c:295 esp32s3_fetch_user_regs(): esp32s3.cpu0: user regs fetching is not implememnted! Debug: 524 75865 xtensa.c:1858 xtensa_poll(): esp32s3.cpu0: Target halted, pc=0x42017DA2, debug_reason=00000000, oldstate=00000001 Debug: 525 75865 xtensa.c:1863 xtensa_poll(): esp32s3.cpu0: Halt reason=0x00000020, exc_cause=4, dsr=0x80318411 Info : 526 75865 xtensa.c:1866 xtensa_poll(): esp32s3.cpu0: Target halted, PC=0x42017DA2, debug_reason=00000000 Debug: 527 75866 esp_xtensa_smp.c:257 esp_xtensa_smp_update_halt_gdb(): GDB target 'esp32s3.cpu0' Info : 528 75866 esp_xtensa_smp.c:262 esp_xtensa_smp_update_halt_gdb(): Set GDB target to 'esp32s3.cpu0' Debug: 529 75866 esp_xtensa_smp.c:271 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu0' Debug: 530 75866 esp_xtensa_smp.c:271 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu1' Debug: 531 75866 esp_xtensa_smp.c:285 esp_xtensa_smp_update_halt_gdb(): Poll target 'esp32s3.cpu1' Debug: 532 75867 xtensa.c:890 xtensa_fetch_all_regs(): esp32s3.cpu1: start Debug: 533 75876 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (80108411) Debug: 534 75893 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (80108411) Debug: 535 75893 esp32s3.c:295 esp32s3_fetch_user_regs(): esp32s3.cpu1: user regs fetching is not implememnted! Debug: 536 75893 xtensa.c:1858 xtensa_poll(): esp32s3.cpu1: Target halted, pc=0x42017DA2, debug_reason=00000000, oldstate=00000001 Debug: 537 75893 xtensa.c:1863 xtensa_poll(): esp32s3.cpu1: Halt reason=0x00000020, exc_cause=4, dsr=0x80108411 Info : 538 75893 xtensa.c:1866 xtensa_poll(): esp32s3.cpu1: Target halted, PC=0x42017DA2, debug_reason=00000000 Debug: 539 75894 target.c:1638 target_call_event_callbacks(): target event 0 (gdb-halt) for core esp32s3.cpu1 Debug: 540 75894 esp32s3.c:570 esp32s3_handle_target_event(): 0 Debug: 541 75894 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 0 Debug: 542 75894 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 0 Debug: 543 75894 xtensa.c:2447 xtensa_handle_target_event(): 0 Debug: 544 75894 target.c:1638 target_call_event_callbacks(): target event 1 (halted) for core esp32s3.cpu1 Debug: 545 75894 esp32s3.c:570 esp32s3_handle_target_event(): 1 Debug: 546 75894 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 1 Debug: 547 75894 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 1 Debug: 548 75894 xtensa.c:2447 xtensa_handle_target_event(): 1 Debug: 549 75894 target.c:2539 target_write_u32(): address: 0x6001f064, value: 0x50d83aa1 Debug: 550 75895 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 551 75895 target.c:2539 target_write_u32(): address: 0x6001f048, value: 0x00000000 Debug: 552 75896 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 553 75896 target.c:2539 target_write_u32(): address: 0x60020064, value: 0x50d83aa1 Debug: 554 75897 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 555 75897 target.c:2539 target_write_u32(): address: 0x60020048, value: 0x00000000 Debug: 556 75898 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 557 75898 target.c:2539 target_write_u32(): address: 0x600080b0, value: 0x50d83aa1 Debug: 558 75899 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 559 75899 target.c:2539 target_write_u32(): address: 0x60008098, value: 0x00000000 Debug: 560 75900 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 561 75900 target.c:2539 target_write_u32(): address: 0x600080b4, value: 0x8f1d312a Debug: 562 75900 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 563 75901 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 564 75901 target.c:2451 target_read_u32(): address: 0x600080b0, value: 0x50d83aa1 Debug: 565 75901 target.c:2539 target_write_u32(): address: 0x600080b0, value: 0xd0d83aa1 Debug: 566 75902 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu1: DSR (8000CC11) Debug: 567 75902 esp_xtensa_smp.c:314 esp_xtensa_smp_update_halt_gdb(): exit Debug: 568 75902 target.c:1638 target_call_event_callbacks(): target event 0 (gdb-halt) for core esp32s3.cpu0 Debug: 569 75902 esp32s3.c:570 esp32s3_handle_target_event(): 0 Debug: 570 75902 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 0 Debug: 571 75902 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 0 Debug: 572 75902 xtensa.c:2447 xtensa_handle_target_event(): 0 Debug: 573 75902 target.c:1638 target_call_event_callbacks(): target event 1 (halted) for core esp32s3.cpu0 Debug: 574 75902 esp32s3.c:570 esp32s3_handle_target_event(): 1 Debug: 575 75902 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 1 Debug: 576 75902 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 1 Debug: 577 75902 xtensa.c:2447 xtensa_handle_target_event(): 1 Debug: 578 75902 target.c:2539 target_write_u32(): address: 0x6001f064, value: 0x50d83aa1 Debug: 579 75902 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 580 75902 target.c:2539 target_write_u32(): address: 0x6001f048, value: 0x00000000 Debug: 581 75903 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 582 75903 target.c:2539 target_write_u32(): address: 0x60020064, value: 0x50d83aa1 Debug: 583 75904 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 584 75904 target.c:2539 target_write_u32(): address: 0x60020048, value: 0x00000000 Debug: 585 75904 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 586 75904 target.c:2539 target_write_u32(): address: 0x600080b0, value: 0x50d83aa1 Debug: 587 75905 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 588 75905 target.c:2539 target_write_u32(): address: 0x60008098, value: 0x00000000 Debug: 589 75905 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 590 75905 target.c:2539 target_write_u32(): address: 0x600080b4, value: 0x8f1d312a Debug: 591 75906 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 592 75907 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 593 75907 target.c:2451 target_read_u32(): address: 0x600080b0, value: 0x50d83aa1 Debug: 594 75907 target.c:2539 target_write_u32(): address: 0x600080b0, value: 0xd0d83aa1 Debug: 595 75907 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 596 75907 esp32s3.c:570 esp32s3_handle_target_event(): 19 Debug: 597 75907 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 19 Debug: 598 75907 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 19 Debug: 599 75907 xtensa.c:2447 xtensa_handle_target_event(): 19 Debug: 600 75907 esp_flash.c:921 esp_flash_probe(): Flash size = 0 KB @ 0x00000000 'esp32s3.cpu0' - 'halted' Debug: 601 75907 esp_flash.c:241 esp_flasher_algorithm_init(): base=00000000 set=0 Debug: 602 75907 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x0 clear=0x630000 Debug: 603 75908 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=0, state=2 Debug: 604 75908 algorithm.c:339 algorithm_load_func_image(): stub: base 0x0, start 0x403b1bd8, 2 sections Debug: 605 75908 algorithm.c:346 algorithm_load_func_image(): addr 0x00000000, sz 9210, flags 1 Debug: 606 75908 target.c:1837 alloc_working_area_try_do(): MMU disabled, using physical address for working memory 0x403b0000 Debug: 607 75908 target.c:1891 alloc_working_area_try_do(): allocated new working area of 9212 bytes at address 0x403b0000 Debug: 608 76136 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 609 76136 target.c:1753 print_wa_layout(): b* 0x403b0000-0x403b23fb (9212 bytes) Debug: 610 76136 target.c:1753 print_wa_layout(): 0x403b23fc-0x403b33ff (4100 bytes) Debug: 611 76136 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0000 Debug: 612 76148 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 613 76148 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0200 Debug: 614 76159 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 615 76159 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0400 Debug: 616 76171 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 617 76171 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0600 Debug: 618 76182 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 619 76182 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0800 Debug: 620 76193 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 621 76193 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0a00 Debug: 622 76205 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 623 76205 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0c00 Debug: 624 76217 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 625 76217 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b0e00 Debug: 626 76228 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 627 76228 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1000 Debug: 628 76240 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 629 76240 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1200 Debug: 630 76250 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 631 76250 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1400 Debug: 632 76261 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 633 76261 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1600 Debug: 634 76272 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 635 76272 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1800 Debug: 636 76284 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 637 76284 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1a00 Debug: 638 76295 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 639 76295 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1c00 Debug: 640 76307 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 641 76307 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b1e00 Debug: 642 76318 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 643 76318 target.c:2238 target_write_buffer(): writing buffer of 512 byte at 0x403b2000 Debug: 644 76330 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 645 76330 target.c:2238 target_write_buffer(): writing buffer of 506 byte at 0x403b2200 Debug: 646 76331 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 647 76343 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 648 76343 algorithm.c:346 algorithm_load_func_image(): addr 0x00000000, sz 384, flags 0 Debug: 649 76343 algorithm.c:376 algorithm_load_func_image(): DATA sec size 384 -> 384 Debug: 650 76343 algorithm.c:379 algorithm_load_func_image(): BSS sec size 265 -> 268 Debug: 651 76343 target.c:1837 alloc_working_area_try_do(): MMU disabled, using physical address for working memory 0x3fce0000 Debug: 652 76343 target.c:1891 alloc_working_area_try_do(): allocated new working area of 652 bytes at address 0x3fce0000 Debug: 653 76361 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 654 76361 target.c:1753 print_wa_layout(): b* 0x3fce0000-0x3fce028b (652 bytes) Debug: 655 76361 target.c:1753 print_wa_layout(): 0x3fce028c-0x3fceffff (64884 bytes) Debug: 656 76361 target.c:2238 target_write_buffer(): writing buffer of 384 byte at 0x3fce0000 Debug: 657 76370 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 658 76370 target.c:1891 alloc_working_area_try_do(): allocated new working area of 1300 bytes at address 0x3fce028c Debug: 659 76405 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 660 76405 target.c:1753 print_wa_layout(): b* 0x3fce0000-0x3fce028b (652 bytes) Debug: 661 76405 target.c:1753 print_wa_layout(): b* 0x3fce028c-0x3fce079f (1300 bytes) Debug: 662 76405 target.c:1753 print_wa_layout(): 0x3fce07a0-0x3fceffff (63584 bytes) Debug: 663 76405 target.c:1891 alloc_working_area_try_do(): allocated new working area of 28 bytes at address 0x403b23fc Debug: 664 76407 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 665 76407 target.c:1753 print_wa_layout(): b* 0x403b0000-0x403b23fb (9212 bytes) Debug: 666 76407 target.c:1753 print_wa_layout(): b* 0x403b23fc-0x403b2417 (28 bytes) Debug: 667 76407 target.c:1753 print_wa_layout(): 0x403b2418-0x403b33ff (4072 bytes) Debug: 668 76407 target.c:2238 target_write_buffer(): writing buffer of 28 byte at 0x403b23fc Debug: 669 76409 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 670 76409 algorithm.c:462 algorithm_load_func_image(): Stub loaded in 501.152 ms Debug: 671 76409 xtensa_algorithm.c:112 xtensa_algo_init(): reg params count 9 (6/3). Debug: 672 76409 xtensa_algorithm.c:59 xtensa_algo_regs_init_start(): Check stack addr 0x3fce07a0 Debug: 673 76409 xtensa_algorithm.c:127 xtensa_algo_init(): Set arg[0] = 5 (a2) Debug: 674 76409 xtensa_algorithm.c:137 xtensa_algo_init(): Set arg[1] = -1 (a3) Debug: 675 76409 xtensa_algorithm.c:137 xtensa_algo_init(): Set arg[2] = 0 (a4) Debug: 676 76409 target.c:1891 alloc_working_area_try_do(): allocated new working area of 28 bytes at address 0x3fce07a0 Debug: 677 76410 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 678 76410 target.c:1753 print_wa_layout(): b* 0x3fce0000-0x3fce028b (652 bytes) Debug: 679 76410 target.c:1753 print_wa_layout(): b* 0x3fce028c-0x3fce079f (1300 bytes) Debug: 680 76410 target.c:1753 print_wa_layout(): b* 0x3fce07a0-0x3fce07bb (28 bytes) Debug: 681 76410 target.c:1753 print_wa_layout(): 0x3fce07bc-0x3fceffff (63556 bytes) Debug: 682 76410 algorithm.c:224 algorithm_run(): Algorithm start @ 0x403b23fc, stack 1300 bytes @ 0x3fce07a0 Debug: 683 76410 xtensa.c:1251 xtensa_resume(): esp32s3.cpu0 Debug: 684 76410 xtensa.c:1180 xtensa_prepare_resume(): esp32s3.cpu0: current=0 address=0x403b23fc, handle_breakpoints=1, debug_execution=1) Debug: 685 76410 xtensa.c:512 xtensa_write_dirty_registers(): esp32s3.cpu0: start Debug: 686 76410 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg pc val 403B23FC Debug: 687 76410 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowbase val 00000000 Debug: 688 76410 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowstart val 00000001 Debug: 689 76410 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ps val 00060025 Debug: 690 76410 esp32s3.c:301 esp32s3_queue_write_dirty_user_regs(): esp32s3.cpu0: user regs writing is not implememnted! Debug: 691 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a0 value 00000000, num =1 Debug: 692 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a1 value 3FCE0790, num =2 Debug: 693 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a2 value 00000005, num =3 Debug: 694 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a3 value FFFFFFFF, num =4 Debug: 695 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a4 value 3FCE07A0, num =5 Debug: 696 76410 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a8 value 403B1BD8, num =9 Debug: 697 76412 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 698 76412 xtensa.c:1233 xtensa_do_resume(): esp32s3.cpu0: start Debug: 699 76413 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC01) Debug: 700 76413 target.c:1638 target_call_event_callbacks(): target event 2 (resumed) for core esp32s3.cpu0 Debug: 701 76413 esp32s3.c:570 esp32s3_handle_target_event(): 2 Debug: 702 76413 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 2 Debug: 703 76413 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 2 Debug: 704 76413 xtensa.c:2447 xtensa_handle_target_event(): 2 Debug: 705 76413 algorithm.c:246 algorithm_run(): Wait algorithm completion Debug: 706 76414 xtensa.c:890 xtensa_fetch_all_regs(): esp32s3.cpu0: start Debug: 707 76424 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 708 76437 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 709 76437 esp32s3.c:295 esp32s3_fetch_user_regs(): esp32s3.cpu0: user regs fetching is not implememnted! Debug: 710 76437 xtensa.c:1858 xtensa_poll(): esp32s3.cpu0: Target halted, pc=0x403B2412, debug_reason=00000001, oldstate=00000004 Debug: 711 76437 xtensa.c:1863 xtensa_poll(): esp32s3.cpu0: Halt reason=0x00000008, exc_cause=4, dsr=0x8000cc11 Info : 712 76437 xtensa.c:1866 xtensa_poll(): esp32s3.cpu0: Target halted, PC=0x403B2412, debug_reason=00000001 Debug: 713 76438 esp_xtensa_smp.c:257 esp_xtensa_smp_update_halt_gdb(): GDB target 'esp32s3.cpu0' Debug: 714 76438 esp_xtensa_smp.c:271 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu0' Debug: 715 76438 esp_xtensa_smp.c:271 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu1' Debug: 716 76438 esp_xtensa_smp.c:314 esp_xtensa_smp_update_halt_gdb(): exit Debug: 717 76438 target.c:1638 target_call_event_callbacks(): target event 15 (debug-halted) for core esp32s3.cpu0 Debug: 718 76438 esp32s3.c:570 esp32s3_handle_target_event(): 15 Debug: 719 76438 esp_xtensa_smp.c:600 esp_xtensa_smp_handle_target_event(): 15 Debug: 720 76438 esp_xtensa.c:110 esp_xtensa_handle_target_event(): 15 Debug: 721 76438 xtensa.c:2447 xtensa_handle_target_event(): 15 Debug: 722 76438 xtensa.c:2260 xtensa_wait_algorithm(): Read mem params Debug: 723 76438 xtensa.c:2262 xtensa_wait_algorithm(): Check mem param @ 0x3fce07a0 Debug: 724 76438 xtensa.c:2264 xtensa_wait_algorithm(): Read mem param @ 0x3fce07a0 Debug: 725 76438 target.c:2302 target_read_buffer(): reading buffer of 28 byte at 0x3fce07a0 Debug: 726 76440 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 727 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a15: 0x000050aa -> 0x00000064 Debug: 728 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a14: 0x00000020 -> 0x00000001 Debug: 729 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a13: 0x00800000 -> 0x00060023 Debug: 730 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a12: 0x3fce07a0 -> 0x00060020 Debug: 731 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a11: 0x00000000 -> 0x42009b00 Debug: 732 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a9: 0x3fce0710 -> 0x3fcf4f80 Debug: 733 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a8: 0x803b2410 -> 0x82009636 Debug: 734 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a6: 0x00000001 -> 0x00060d23 Debug: 735 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a5: 0x00000000 -> 0x80000001 Debug: 736 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a4: 0x3fce07a0 -> 0x00000001 Debug: 737 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a3: 0xffffffff -> 0x00000001 Debug: 738 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a1: 0x3fce0790 -> 0x3fcf4fb0 Debug: 739 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register a0: 0x00000000 -> 0x82001eba Debug: 740 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ccount: 0x217f5998 -> 0x217cdfb5 Debug: 741 76440 xtensa.c:2281 xtensa_wait_algorithm(): Skip restoring register debugcause: 0x00000008 -> 0x00000020 Debug: 742 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register eps6: 0x00060225 -> 0x00060220 Debug: 743 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register epc6: 0x403b2412 -> 0x42017da2 Debug: 744 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register epc1: 0x403b1f5d -> 0x42001eba Debug: 745 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ps: 0x00060225 -> 0x00060220 Debug: 746 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register configid0: 0x403b2412 -> 0x42017da2 Debug: 747 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register windowstart: 0x00000001 -> 0x00000015 Debug: 748 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register windowbase: 0x00000000 -> 0x00000004 Debug: 749 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register sar: 0x00000018 -> 0x0000001e Debug: 750 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register lcount: 0xffffffff -> 0x00000000 Debug: 751 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register lend: 0x403b204e -> 0x00000000 Debug: 752 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register lbeg: 0x403b2038 -> 0x00000000 Debug: 753 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar61: 0x00000000 -> 0x3fc92360 Debug: 754 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar60: 0x08000000 -> 0x00000000 Debug: 755 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar59: 0xffff0000 -> 0x00000000 Debug: 756 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar58: 0x600c4030 -> 0x00000001 Debug: 757 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar57: 0x00000008 -> 0x00060023 Debug: 758 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar56: 0x600c4028 -> 0x00060021 Debug: 759 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar55: 0x00000000 -> 0x00000001 Debug: 760 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar54: 0x80000000 -> 0x00060023 Debug: 761 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar53: 0x3fce06c0 -> 0x3fc92390 Debug: 762 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar52: 0x5c000007 -> 0x8037cd71 Debug: 763 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar51: 0x00000008 -> 0x00000000 Debug: 764 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar50: 0x00000004 -> 0x00060423 Debug: 765 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar49: 0x00000004 -> 0x3fcf4680 Debug: 766 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar48: 0x600c4150 -> 0x8037cd71 Debug: 767 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar47: 0x4004e4c0 -> 0x00000001 Debug: 768 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar46: 0x08000000 -> 0x00000001 Debug: 769 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar45: 0x00000020 -> 0x00060223 Debug: 770 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar44: 0x00000000 -> 0x00060220 Debug: 771 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar43: 0x3fceffc8 -> 0x00000000 Debug: 772 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar42: 0x00000000 -> 0x00060223 Debug: 773 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar41: 0x3fce0650 -> 0x3fcf4f50 Debug: 774 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar40: 0x8004f428 -> 0x8037cd71 Debug: 775 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar39: 0x00000010 -> 0x00000003 Debug: 776 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar38: 0x50000000 -> 0x00060023 Debug: 777 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar37: 0x3fce06f0 -> 0x3fcf4ea0 Debug: 778 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar36: 0x00000008 -> 0x8037cd71 Debug: 779 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar35: 0x4004e950 -> 0x3fcf4f80 Debug: 780 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar34: 0x00000000 -> 0x3fc94164 Debug: 781 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar33: 0x3fce0670 -> 0x3fcf4f60 Debug: 782 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar32: 0x803b0396 -> 0x8200962a Debug: 783 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar31: 0x600c5000 -> 0x00000064 Debug: 784 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar30: 0x600c500c -> 0x00000001 Debug: 785 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar29: 0x00000000 -> 0x00060023 Debug: 786 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar28: 0x00000004 -> 0x00060020 Debug: 787 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar27: 0x00000004 -> 0x42009b00 Debug: 788 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar26: 0x00ffffff -> 0x00000000 Debug: 789 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar25: 0x50000000 -> 0x3fcf4f80 Debug: 790 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar24: 0x00000006 -> 0x82009636 Debug: 791 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar23: 0x600c5000 -> 0x00000000 Debug: 792 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar22: 0x00000006 -> 0x00060d23 Debug: 793 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar21: 0x00000000 -> 0x80000001 Debug: 794 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar20: 0x00000002 -> 0x00000001 Debug: 795 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar19: 0x3fce07a0 -> 0x00000001 Debug: 796 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar17: 0x3fce06d0 -> 0x3fcf4fb0 Debug: 797 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar16: 0x803b1e57 -> 0x82001eba Debug: 798 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar15: 0x000050aa -> 0x00000000 Debug: 799 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar14: 0x00000020 -> 0x00000001 Debug: 800 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar13: 0x00800000 -> 0x00000001 Debug: 801 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar12: 0x3fce07a0 -> 0x00000001 Debug: 802 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar10: 0x00000000 -> 0x00000008 Debug: 803 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar9: 0x3fce0710 -> 0x3fcf4fd0 Debug: 804 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar8: 0x803b2410 -> 0x8037b600 Debug: 805 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar4: 0x3fce07a0 -> 0x00000000 Debug: 806 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar3: 0xffffffff -> 0x00000000 Debug: 807 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar1: 0x3fce0790 -> 0x3fcf4ff0 Debug: 808 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register ar0: 0x00000000 -> 0x8037cb14 Debug: 809 76440 xtensa.c:2291 xtensa_wait_algorithm(): restoring register pc: 0x403b2412 -> 0x42017da2 Debug: 810 76440 xtensa.c:512 xtensa_write_dirty_registers(): esp32s3.cpu0: start Debug: 811 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg pc val 42017DA2 Debug: 812 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lbeg val 00000000 Debug: 813 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lend val 00000000 Debug: 814 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lcount val 00000000 Debug: 815 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg sar val 0000001E Debug: 816 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowbase val 00000004 Debug: 817 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowstart val 00000015 Debug: 818 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg configid0 val 42017DA2 Debug: 819 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ps val 00060220 Debug: 820 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg epc1 val 42001EBA Debug: 821 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg epc6 val 42017DA2 Debug: 822 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg eps6 val 00060220 Debug: 823 76440 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ccount val 217CDFB5 Debug: 824 76440 esp32s3.c:301 esp32s3_queue_write_dirty_user_regs(): esp32s3.cpu0: user regs writing is not implememnted! Debug: 825 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a0 value 82001EBA, num =1 Debug: 826 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a1 value 3FCF4FB0, num =2 Debug: 827 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a3 value 00000001, num =4 Debug: 828 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a4 value 00000001, num =5 Debug: 829 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a5 value 80000001, num =6 Debug: 830 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a6 value 00060D23, num =7 Debug: 831 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a8 value 82009636, num =9 Debug: 832 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a9 value 3FCF4F80, num =10 Debug: 833 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a11 value 42009B00, num =12 Debug: 834 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a12 value 00060020, num =13 Debug: 835 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a13 value 00060023, num =14 Debug: 836 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a14 value 00000001, num =15 Debug: 837 76440 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a15 value 00000064, num =16 Debug: 838 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar16 value 82001EBA, num =16 Debug: 839 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar17 value 3FCF4FB0, num =17 Debug: 840 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar19 value 00000001, num =19 Debug: 841 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar20 value 00000001, num =20 Debug: 842 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar21 value 80000001, num =21 Debug: 843 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar22 value 00060D23, num =22 Debug: 844 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar23 value 00000000, num =23 Debug: 845 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar24 value 82009636, num =24 Debug: 846 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar25 value 3FCF4F80, num =25 Debug: 847 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar26 value 00000000, num =26 Debug: 848 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar27 value 42009B00, num =27 Debug: 849 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar28 value 00060020, num =28 Debug: 850 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar29 value 00060023, num =29 Debug: 851 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar30 value 00000001, num =30 Debug: 852 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar31 value 00000064, num =31 Debug: 853 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar32 value 8200962A, num =32 Debug: 854 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar33 value 3FCF4F60, num =33 Debug: 855 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar34 value 3FC94164, num =34 Debug: 856 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar35 value 3FCF4F80, num =35 Debug: 857 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar36 value 8037CD71, num =36 Debug: 858 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar37 value 3FCF4EA0, num =37 Debug: 859 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar38 value 00060023, num =38 Debug: 860 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar39 value 00000003, num =39 Debug: 861 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar40 value 8037CD71, num =40 Debug: 862 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar41 value 3FCF4F50, num =41 Debug: 863 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar42 value 00060223, num =42 Debug: 864 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar43 value 00000000, num =43 Debug: 865 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar44 value 00060220, num =44 Debug: 866 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar45 value 00060223, num =45 Debug: 867 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar46 value 00000001, num =46 Debug: 868 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar47 value 00000001, num =47 Debug: 869 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar48 value 8037CD71, num =48 Debug: 870 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar49 value 3FCF4680, num =49 Debug: 871 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar50 value 00060423, num =50 Debug: 872 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar51 value 00000000, num =51 Debug: 873 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar52 value 8037CD71, num =52 Debug: 874 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar53 value 3FC92390, num =53 Debug: 875 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar54 value 00060023, num =54 Debug: 876 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar55 value 00000001, num =55 Debug: 877 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar56 value 00060021, num =56 Debug: 878 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar57 value 00060023, num =57 Debug: 879 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar58 value 00000001, num =58 Debug: 880 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar59 value 00000000, num =59 Debug: 881 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar60 value 00000000, num =60 Debug: 882 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar61 value 3FC92360, num =61 Debug: 883 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar0 value 8037CB14, num =0 Debug: 884 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar1 value 3FCF4FF0, num =1 Debug: 885 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar3 value 00000000, num =3 Debug: 886 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar4 value 00000000, num =4 Debug: 887 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar8 value 8037B600, num =8 Debug: 888 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar9 value 3FCF4FD0, num =9 Debug: 889 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar10 value 00000008, num =10 Debug: 890 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar12 value 00000001, num =12 Debug: 891 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar13 value 00000001, num =13 Debug: 892 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar14 value 00000001, num =14 Debug: 893 76440 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar15 value 00000000, num =15 Debug: 894 76448 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 895 76448 algorithm.c:274 algorithm_run(): Got algorithm RC 0x0 Debug: 896 76449 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 897 76449 target.c:1979 target_free_working_area_restore(): freed 28 bytes of working area at address 0x3fce07a0 Debug: 898 76449 target.c:1753 print_wa_layout(): b* 0x3fce0000-0x3fce028b (652 bytes) Debug: 899 76449 target.c:1753 print_wa_layout(): b* 0x3fce028c-0x3fce079f (1300 bytes) Debug: 900 76449 target.c:1753 print_wa_layout(): 0x3fce07a0-0x3fceffff (63584 bytes) Debug: 901 76451 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 902 76451 target.c:1979 target_free_working_area_restore(): freed 28 bytes of working area at address 0x403b23fc Debug: 903 76451 target.c:1753 print_wa_layout(): b* 0x403b0000-0x403b23fb (9212 bytes) Debug: 904 76451 target.c:1753 print_wa_layout(): 0x403b23fc-0x403b33ff (4100 bytes) Debug: 905 76475 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 906 76475 target.c:1979 target_free_working_area_restore(): freed 1300 bytes of working area at address 0x3fce028c Debug: 907 76475 target.c:1753 print_wa_layout(): b* 0x3fce0000-0x3fce028b (652 bytes) Debug: 908 76475 target.c:1753 print_wa_layout(): 0x3fce028c-0x3fceffff (64884 bytes) Debug: 909 76667 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 910 76667 target.c:1979 target_free_working_area_restore(): freed 9212 bytes of working area at address 0x403b0000 Debug: 911 76667 target.c:1753 print_wa_layout(): 0x403b0000-0x403b33ff (13312 bytes) Debug: 912 76680 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11) Debug: 913 76680 target.c:1979 target_free_working_area_restore(): freed 652 bytes of working area at address 0x3fce0000 Debug: 914 76680 target.c:1753 print_wa_layout(): 0x3fce0000-0x3fceffff (65536 bytes) Debug: 915 76680 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x30000 clear=0x600000 Debug: 916 76681 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=30000, state=2 Info : 917 76681 esp_flash.c:396 esp_flash_get_mappings(): Flash mapping 0: 0x10020 -> 0x3c020020, 34 KB Info : 918 76681 esp_flash.c:396 esp_flash_get_mappings(): Flash mapping 1: 0x20020 -> 0x42000020, 98 KB Debug: 919 76681 esp_flash.c:241 esp_flasher_algorithm_init(): base=00000000 set=0 Debug: 920 76681 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x0 clear=0x630000 Debug: 921 76681 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=0, state=2 Debug: 922 76681 algorithm.c:339 algorithm_load_func_image(): stub: base 0x0, start 0x403b1bd8, 2 sections Debug: 923 76681 algorithm.c:346 algorithm_load_func_image(): addr 0x00000000, sz 9210, flags 1 Debug: 924 76681 target.c:1891 alloc_working_area_try_do(): allocated new working area of 9212 bytes at address 0x403b0000 Warn : 925 77246 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 768 bytes. Debug: 926 77246 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 927 77773 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 832 bytes. Debug: 928 77773 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 929 78280 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 896 bytes. Debug: 930 78280 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 931 78793 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 960 bytes. Debug: 932 78793 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 933 79307 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1024 bytes. Debug: 934 79307 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 935 79874 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1088 bytes. Debug: 936 79874 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 937 80421 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1152 bytes. Debug: 938 80421 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 939 80986 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1216 bytes. Debug: 940 80986 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 941 81544 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1280 bytes. Debug: 942 81544 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 943 82105 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1344 bytes. Debug: 944 82105 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 945 82623 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1408 bytes. Debug: 946 82624 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 947 83181 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1472 bytes. Debug: 948 83181 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 949 83745 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1536 bytes. Debug: 950 83745 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 951 84263 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1600 bytes. Debug: 952 84263 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 953 84775 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1664 bytes. Debug: 954 84775 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 955 85334 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1728 bytes. Debug: 956 85334 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 957 85887 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1792 bytes. Debug: 958 85887 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 959 86444 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1856 bytes. Debug: 960 86444 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 961 86966 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1920 bytes. Debug: 962 86966 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 963 87533 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 1984 bytes. Debug: 964 87533 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 965 88049 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2048 bytes. Debug: 966 88049 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 967 88615 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2112 bytes. Debug: 968 88615 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 969 89167 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2176 bytes. Debug: 970 89167 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 971 89711 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2240 bytes. Debug: 972 89711 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 973 90274 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2304 bytes. Debug: 974 90274 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 975 90839 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2368 bytes. Debug: 976 90839 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 977 91402 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2432 bytes. Debug: 978 91402 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 979 91962 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2496 bytes. Debug: 980 91962 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 981 92469 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2560 bytes. Debug: 982 92469 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 Warn : 983 92473 esp_usb_jtag.c:445 esp_usb_jtag_send_buf(): esp_usb_jtag: usb sent only 0 out of 2624 bytes. Debug: 984 92473 libusb1_common.c:120 jtag_libusb_find_device(): USB dev found 303a:1001 @ 20:3-11 [Stopped] : OpenOCD Server ```

gdb debug console

``` 1: (139) LaunchOptions{"name":"GDB","type":"cppdbg","request":"launch","MIMode":"gdb","miDebuggerPath":"~/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gdb","program":"~/dev/esp/blink/build/blink.elf","cwd":"~/dev/esp/blink","environment":[{"name":"PATH","value":"~/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin:~/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin:~/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin:~/.espressif/tools/riscv32-esp-elf/esp-2021r2-8.4.0/riscv32-esp-elf/bin:~/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:~/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20211111/openocd-esp32/bin"}],"setupCommands":[{"text":"set remotelogfile ~/dev/esp/blink/build/gdb_log.txt"},{"text":"target remote :3333"},{"text":"set remote hardware-watchpoint-limit 2"},{"text":"mon reset halt"},{"text":"thb app_main"},{"text":"flushregs"},{"text":"c"}],"externalConsole":false,"logging":{"engineLogging":true},"__configurationTarget":5,"__sessionId":"dcc61927-c906-4b0d-a74c-37c38687cdeb"} 1: (233) codeSign-stderr: ~/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gdb: code object is not signed at all 1: (235) Send Event AD7MessageEvent 1: (240) Starting: "~/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gdb" --interpreter=mi 1: (247) DebuggerPid=73899 1: (303) ->=thread-group-added,id="i1" 1: (304) ->~"GNU gdb (crosstool-NG esp-2021r2) 9.2.90.20200913-git\n" 1: (304) ->~"Copyright (C) 2020 Free Software Foundation, Inc.\n" 1: (304) ->~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law." 1: (305) ->~"\nType \"show copying\" and \"show warranty\" for details.\n" 1: (305) ->~"This GDB was configured as \"--host=x86_64-host_apple-darwin12 --target=xtensa-esp32s3-elf\".\n" 1: (305) ->~"Type \"show configuration\" for configuration details.\n" 1: (305) ->~"For bug reporting instructions, please see:\n" 1: (305) ->~".\n" 1: (305) ->~"Find the GDB manual and other documentation resources online at:\n ." 1: (305) ->~"\n\n" 1: (306) ->~"For help, type \"help\".\n" 1: (306) ->~"Type \"apropos word\" to search for commands related to \"word\".\n" 1: (306) ->(gdb) 1: (312) <-1001-gdb-set target-async on 1: (312) ->1001^done 1: (312) ->(gdb) 1: (315) 1001: elapsed time 5 1: (330) <-1002-interpreter-exec console "set remotelogfile ~/dev/esp/blink/build/gdb_log.txt" 1: (330) ->=cmd-param-changed,param="remotelogfile",value="~/dev/esp/blink/build/gdb_log.txt" 1: (330) ->1002^done 1: (331) ->(gdb) 1: (331) 1002: elapsed time 0 1: (332) <-1003-interpreter-exec console "target remote :3333" 1: (335) ->~"Remote debugging using :3333\n" 1: (6343) ->~"Ignoring packet error, continuing...\n" 1: (6343) ->&"warning: unrecognized item \"timeout\" in \"qSupported\" response\n" 1: (17030) ->&"Remote communication error. Target disconnected.: Connection reset by peer.\n" 1: (17032) ->1003^error,msg="Remote communication error. Target disconnected.: Connection reset by peer." 1: (17032) ->(gdb) 1: (17035) 1003: elapsed time 16703 1: (17040) Send Event AD7MessageEvent ERROR: Unable to start debugging. Unexpected GDB output from command "-interpreter-exec console "target remote :3333"". Remote communication error. Target disconnected.: Connection reset by peer. 1: (17042) <--gdb-exit 1: (17042) ->^exit 1: (17043) <-logout 1: (17044) "~/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gdb" exited with code 0 (0x0). ```

gdb output log

``` w +$qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+#df r + w - r w - r w -+$vMustReplyEmpty#3a r w $vMustReplyEmpty#3a r w $vMustReplyEmpty#3a r w $vMustReplyEmpty#3a r w - r End of log ```

Expected behavior

GDB should be properly attached, and openocd should not stop.

Screenshots

If applicable, add screenshots to help explain your problem.

erhankur commented 2 years ago

@ndinsmore We added a solution for the ESP32-S3 builtin USB-JTAG into the latest commit.

You can find the built binary here.

openocd-esp32-macos-0.11.0-esp32-20211209_test-12-gc8a308b47.tar.gz

ndinsmore commented 2 years ago

@erhankur That seems to work, I had to hack it into thee v0.10 directory as I could not figure out how to repoint idf_tools. is there a correct way to do that?

That said gdb does seem a little temperamental and different than my experience on the pi pico. for example it: 1.) won't let me pause, only breakpoints are working. 2.) From vscode the restart button doesnt work 3.) Can't add breakpoints while running i get "attempting to bind breakpoint" 4.) I have to hit the start debugging button twice to actually get it to start.

erhankur commented 2 years ago

Hi @ndinsmore can you please share verbose openocd logs for each item?

ndinsmore commented 2 years ago

@erhankur I am just getting back up to speed for the new year. Should I still use the binary included here or are those changes included in the latest release? If so I will use that.

erhankur commented 2 years ago

@ndinsmore yes fix is included.You can use the latest release build.

gerekon commented 2 years ago

@ndinsmore Can we close this issue?