espressif / vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/
Apache License 2.0
1.06k stars 304 forks source link

ESP32-S3 does not debug with built in JTAG on Pop_os(Ubuntu), programs fine over JTAG (VSC-979) #814

Closed neil-ecobloc closed 2 years ago

neil-ecobloc commented 2 years ago

OS

Linux

Operating System version

Pop_os(Ubuntu) 22.04 LTS

Visual Studio Code version

1.71.2

ESP-IDF version

4.4.2

Python version

3.10.6

Doctor command output

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS linux x64 5.19.0-76051900-generic System environment variable IDF_PYTHON_ENV_PATH undefined System environment variable PATH /home/user/.local/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin System environment variable PYTHON undefined Visual Studio Code version 1.71.2 Visual Studio Code language en Visual Studio Code shell /usr/bin/bash ESP-IDF Extension version 1.5.0 Workspace folder /home/user/blink ---------------------------------------------------- Extension configuration settings ------------------------------------------------------ ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH} ESP-IDF Path (idf.espIdfPath) /home/user/esp/esp-idf ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH} ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH} Custom extra paths (idf.customExtraPaths) /home/user/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin:/home/user/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin:/home/user/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin:/home/user/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin:/home/user/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/home/user/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/home/user/.espressif/tools/cmake/3.23.1/bin:/home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin:/home/user/.espressif/tools/ninja/1.10.2 Custom extra vars (idf.customExtraVars) {"OPENOCD_SCRIPTS":"/home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts"} Virtual env Python Path (idf.pythonBinPath) /home/user/.espressif/python_env/idf4.4_py3.10_env/bin/python Serial port (idf.port) /dev/ttyACM0 OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg ESP-IDF Tools Path (idf.toolsPath) /home/user/.espressif Git Path (idf.gitPath) git -------------------------------------------------------- Configurations access ------------------------------------------------------------- Access to ESP-ADF Path (idf.espAdfPath) false Access to ESP-IDF Path (idf.espIdfPath) true Access to ESP-MDF Path (idf.espMdfPath) false Access to ESP-Matter Path (idf.espMatterPath) false Access to ESP-IDF Custom extra paths Access to /home/user/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin: true Access to /home/user/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin: true Access to /home/user/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin: true Access to /home/user/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin: true Access to /home/user/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin: true Access to /home/user/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin: true Access to /home/user/.espressif/tools/cmake/3.23.1/bin: true Access to /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin: true Access to /home/user/.espressif/tools/ninja/1.10.2: true Access to Virtual env Python Path (idf.pythonBinPath) true Access to CMake in environment PATH true Access to Ninja in environment PATH true Access to ESP-IDF Tools Path (idf.toolsPath) true -------------------------------------------------------- Configurations has spaces ------------------------------------------------------------- Spaces in system environment Path false Spaces in ESP-ADF Path (idf.espAdfPath) false Spaces in ESP-IDF Path (idf.espIdfPath) false Spaces in ESP-MDF Path (idf.espMdfPath) false Spaces in ESP-Matter Path (idf.espMatterPath) false Spaces in ESP-IDF Custom extra paths Spaces in /home/user/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin: false Spaces in /home/user/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin: false Spaces in /home/user/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin: false Spaces in /home/user/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin: false Spaces in /home/user/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin: false Spaces in /home/user/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin: false Spaces in /home/user/.espressif/tools/cmake/3.23.1/bin: false Spaces in /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin: false Spaces in /home/user/.espressif/tools/ninja/1.10.2: false Spaces in Virtual env Python Path (idf.pythonBinPath) false Spaces in ESP-IDF Tools Path (idf.toolsPath) false ----------------------------------------------------------- Executables Versions ----------------------------------------------------------- Git version 2.34.1 ESP-IDF version 4.4.2 Python version 3.10.6 Python's pip version 22.2.2 -------------------------------------------------- Python packages in idf.pythonBinPath ---------------------------------------------------- bitstring version: 3.1.9 Brotli version: 1.0.9 certifi version: 2022.9.24 cffi version: 1.15.1 charset-normalizer version: 2.1.1 click version: 8.0.4 colorama version: 0.4.5 construct version: 2.10.54 contextlib2 version: 21.6.0 cryptography version: 38.0.1 ecdsa version: 0.18.0 Flask version: 0.12.5 Flask-Compress version: 1.13 Flask-SocketIO version: 2.9.6 future version: 0.18.2 gcovr version: 5.2 gdbgui version: 0.13.2.0 gevent version: 1.5.0 greenlet version: 1.1.3 idf-component-manager version: 1.1.4 idna version: 3.4 itsdangerous version: 2.0.1 Jinja2 version: 3.0.3 kconfiglib version: 13.7.1 lxml version: 4.9.1 MarkupSafe version: 2.1.1 pip version: 22.2.2 psutil version: 5.9.2 pycparser version: 2.21 pyelftools version: 0.29 pygdbmi version: 0.9.0.2 Pygments version: 2.13.0 pyparsing version: 2.3.1 pyserial version: 3.5 python-engineio version: 3.14.2 python-socketio version: 4.6.1 PyYAML version: 6.0 reedsolo version: 1.5.4 requests version: 2.28.1 requests-toolbelt version: 0.9.1 schema version: 0.7.5 setuptools version: 65.4.1 six version: 1.16.0 tqdm version: 4.64.1 urllib3 version: 1.26.12 websocket-client version: 1.4.1 Werkzeug version: 0.16.1 wheel version: 0.37.1 xmlrunner version: 1.7.7 ---------------------------------------------------- Check ESP-IDF python requirements.txt ------------------------------------------------- Check ESP-IDF Python packages Python requirements from /home/user/esp/esp-idf/requirements.txt are satisfied. ---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------ Check Extension Python packages Python requirements from /home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/requirements.txt are satisfied. ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------ Check Debug AdapterPython packages Python requirements from /home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/requirements.txt are satisfied. ---------------------------------------------------- Visual Studio Code launch.json -------------------------------------------------------- { "version": "0.2.0", "configurations": [ { "type": "espidf", "name": "Launch", "request": "launch", "logLevel": 4, "tmoScaleFactor": 6 } ] } ---------------------------------------------------- Visual Studio Code c_cpp_properties.json ---------------------------------------------- { "configurations": [ { "name": "ESP-IDF", "compilerPath": "/home/user/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc", "cStandard": "c11", "cppStandard": "c++17", "includePath": [ "${config:idf.espIdfPath}/components/", "${config:idf.espIdfPathWin}/components/", "${config:idf.espAdfPath}/components/", "${config:idf.espAdfPathWin}/components/", "${workspaceFolder}/" ], "browse": { "path": [ "${config:idf.espIdfPath}/components", "${config:idf.espIdfPathWin}/components", "${config:idf.espAdfPath}/components/", "${config:idf.espAdfPathWin}/components/**", "${workspaceFolder}" ], "limitSymbolsToIncludedHeaders": false } } ], "version": 4 }


Extension

esp_idf_vsc_ex2.txt

Description

We have been trying to get debug to work on the ESP32-S3 devkit C1 for more than one week now. We have managed to get it working on 2 work stations, it is quite unclear how we managed it to get it to work there. We are desperately trying to get the debugging environment working for one of our developers or just trying to understand the problem.

Install the demo "blink" project from VS code ESP-IDF, select com ports "/dev/ttyACM0", configure openocd in configuration as "board/esp32s3-builting.cfg", build project, choose upload method as "JTAG", projects uploads successfully. Whenever we try to start the debug process by pressing the green play button we are greeted with a popup, "Failed to init debug adapter!"

Debug Message

Debug Console output:
Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Starting. Cmd: /home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter_main.py -d 4 -e /home/user/blink/build/blink.elf -l /home/user/blink/debug.log -p 43474 -dn esp32s3 -a 0x10000 -t xtensa-esp32s3-elf- -tsf 6
Listening on port 43474
Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
Got connection
Got json: {
    "arguments": {
        "adapterID": "espidf",
        "clientID": "vscode",
        "clientName": "Visual Studio Code",
        "columnsStartAt1": true,
        "linesStartAt1": true,
        "locale": "en-us",
        "pathFormat": "path",
        "supportsArgsCanBeInterpretedByShell": true,
        "supportsInvalidatedEvent": true,
        "supportsMemoryReferences": true,
        "supportsProgressReporting": true,
        "supportsRunInTerminalRequest": true,
        "supportsVariablePaging": true,
        "supportsVariableType": true
    },
    "command": "initialize",
    "seq": 1,
    "type": "request"
}
Created gdb object of type: GdbEspXtensa

Output window:
[OpenOCD]
Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
User : 3 1 options.c:63 configuration_output_handler(): debug_level: 3
User : 4 1 options.c:63 configuration_output_handler(): 
Debug: 5 1 options.c:244 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin
Debug: 6 1 options.c:245 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd
Debug: 7 1 options.c:246 add_default_dirs(): exepath=/home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin
Debug: 8 1 options.c:247 add_default_dirs(): bin2data=../share/openocd
Debug: 9 1 configuration.c:44 add_script_search_dir(): adding /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts
Debug: 10 1 configuration.c:44 add_script_search_dir(): adding /home/user/.config/openocd
Debug: 11 1 configuration.c:44 add_script_search_dir(): adding /home/user/.openocd
Debug: 12 1 configuration.c:44 add_script_search_dir(): adding /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin/../share/openocd/site
Debug: 13 1 configuration.c:44 add_script_search_dir(): adding /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin/../share/openocd/scripts
Debug: 14 1 command.c:166 script_debug(): command - ocd_find board/esp32s3-builtin.cfg
Debug: 15 1 configuration.c:99 find_file(): found /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/board/esp32s3-builtin.cfg
Debug: 16 1 command.c:166 script_debug(): command - ocd_find interface/esp_usb_jtag.cfg
Debug: 17 1 configuration.c:99 find_file(): found /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/interface/esp_usb_jtag.cfg
Debug: 18 1 command.c:166 script_debug(): command - adapter driver esp_usb_jtag
Info : 19 1 transport.c:118 allow_transports(): only one transport option; autoselect 'jtag'
Debug: 20 1 command.c:166 script_debug(): command - espusbjtag vid_pid 0x303a 0x1001
Info : 21 1 esp_usb_jtag.c:894 esp_usb_jtag_vid_pid(): esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Debug: 22 1 command.c:166 script_debug(): command - espusbjtag caps_descriptor 0x2000
Info : 23 1 esp_usb_jtag.c:907 esp_usb_jtag_caps_descriptor(): esp_usb_jtag: capabilities descriptor set to 0x2000
Debug: 24 1 command.c:166 script_debug(): command - adapter speed 40000
Debug: 25 1 adapter.c:180 adapter_config_khz(): handle adapter khz
Debug: 26 1 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 27 1 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 28 1 command.c:166 script_debug(): command - ocd_find target/esp32s3.cfg
Debug: 29 1 configuration.c:99 find_file(): found /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/target/esp32s3.cfg
Debug: 30 1 command.c:166 script_debug(): command - transport select jtag
Warn : 31 1 transport.c:287 jim_transport_select(): Transport "jtag" was already selected
Debug: 32 1 command.c:166 script_debug(): command - ocd_find bitsbytes.tcl
Debug: 33 1 configuration.c:99 find_file(): found /home/user/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/bitsbytes.tcl

Note that a lot has been cut because of space

Debug: 1591 20806 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
[OpenOCD]
Debug: 1592 20827 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1593 20827 esp_algorithm.c:320 algorithm_load_func_image(): addr 0x00000000, sz 568, flags 0
Debug: 1594 20827 esp_algorithm.c:352 algorithm_load_func_image(): DATA sec size 568 -> 568
Debug: 1595 20827 esp_algorithm.c:357 algorithm_load_func_image(): BSS sec size 265 -> 268
Debug: 1596 20827 target.c:2116 alloc_working_area_try_do(): allocated new working area of 836 bytes at address 0x3fce0000
[OpenOCD]
Debug: 1597 20982 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1598 20982 target.c:1983 print_wa_layout(): b* 0x3fce0000-0x3fce0343 (836 bytes)
Debug: 1599 20982 target.c:1983 print_wa_layout():    0x3fce0344-0x3fceffff (64700 bytes)
Debug: 1600 20982 target.c:2466 target_write_buffer(): writing buffer of 512 byte at 0x3fce0000
[OpenOCD]
Debug: 1601 21023 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1602 21023 target.c:2466 target_write_buffer(): writing buffer of 56 byte at 0x3fce0200
[OpenOCD]
Debug: 1603 21046 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
[OpenOCD]
Debug: 1604 21046 target.c:2116 alloc_working_area_try_do(): allocated new working area of 1300 bytes at address 0x3fce0344
[OpenOCD]
Debug: 1605 21278 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1606 21279 target.c:1983 print_wa_layout(): b* 0x3fce0000-0x3fce0343 (836 bytes)
Debug: 1607 21279 target.c:1983 print_wa_layout(): b* 0x3fce0344-0x3fce0857 (1300 bytes)
Debug: 1608 21279 target.c:1983 print_wa_layout():    0x3fce0858-0x3fceffff (63400 bytes)
Debug: 1609 21279 target.c:2116 alloc_working_area_try_do(): allocated new working area of 28 bytes at address 0x403b2448
[OpenOCD]
Debug: 1610 21302 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1611 21302 target.c:1983 print_wa_layout(): b* 0x403b0000-0x403b2447 (9288 bytes)
Debug: 1612 21302 target.c:1983 print_wa_layout(): b* 0x403b2448-0x403b2463 (28 bytes)
Debug: 1613 21302 target.c:1983 print_wa_layout():    0x403b2464-0x403b33ff (3996 bytes)
Debug: 1614 21302 target.c:2466 target_write_buffer(): writing buffer of 28 byte at 0x403b2448
[OpenOCD]
Debug: 1615 21325 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1616 21325 esp_algorithm.c:443 algorithm_load_func_image(): Stub loaded in 2958.83 ms
Debug: 1617 21325 xtensa_algorithm.c:112 xtensa_algo_init(): reg params count 9 (6/3).
Debug: 1618 21325 xtensa_algorithm.c:59 xtensa_algo_regs_init_start(): Check stack addr 0x3fce0858
Debug: 1619 21325 xtensa_algorithm.c:62 xtensa_algo_regs_init_start(): Adjust stack addr to 0x3fce0850
Debug: 1620 21325 xtensa_algorithm.c:127 xtensa_algo_init(): Set arg[0] = 5 (a2)
Debug: 1621 21325 xtensa_algorithm.c:137 xtensa_algo_init(): Set arg[1] = -1 (a3)
Debug: 1622 21325 xtensa_algorithm.c:137 xtensa_algo_init(): Set arg[2] = 0 (a4)
Debug: 1623 21325 target.c:2116 alloc_working_area_try_do(): allocated new working area of 28 bytes at address 0x3fce0858
[OpenOCD]
Debug: 1624 21349 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1625 21349 target.c:1983 print_wa_layout(): b* 0x3fce0000-0x3fce0343 (836 bytes)
Debug: 1626 21349 target.c:1983 print_wa_layout(): b* 0x3fce0344-0x3fce0857 (1300 bytes)
Debug: 1627 21349 target.c:1983 print_wa_layout(): b* 0x3fce0858-0x3fce0873 (28 bytes)
Debug: 1628 21349 target.c:1983 print_wa_layout():    0x3fce0874-0x3fceffff (63372 bytes)
Debug: 1629 21349 esp_algorithm.c:198 algorithm_run(): Algorithm start @ 0x403b2448, stack 1300 bytes @ 0x3fce0858
Debug: 1630 21349 xtensa.c:1251 xtensa_resume(): esp32s3.cpu0
Debug: 1631 21349 xtensa.c:1180 xtensa_prepare_resume(): esp32s3.cpu0: current=0 address=0x403b2448, handle_breakpoints=1, debug_execution=1)
Debug: 1632 21349 xtensa.c:512 xtensa_write_dirty_registers(): esp32s3.cpu0: start
Debug: 1633 21349 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg pc val 403B2448
Debug: 1634 21349 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowbase val 00000000
Debug: 1635 21349 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowstart val 00000001
Debug: 1636 21349 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ps val 00060025
Debug: 1637 21349 esp32s3.c:324 esp32s3_queue_write_dirty_user_regs(): esp32s3.cpu0: user regs writing is not implemented!
Debug: 1638 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a0 value 00000000, num =1
Debug: 1639 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a1 value 3FCE0840, num =2
Debug: 1640 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a2 value 00000005, num =3
Debug: 1641 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a3 value FFFFFFFF, num =4
Debug: 1642 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a4 value 3FCE0858, num =5
Debug: 1643 21349 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a8 value 403B1C10, num =9
[OpenOCD]
Debug: 1644 21370 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1645 21370 xtensa.c:1233 xtensa_do_resume(): esp32s3.cpu0: start
[OpenOCD]
Debug: 1646 21394 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1647 21394 target.c:1857 target_call_event_callbacks(): target event 2 (resumed) for core esp32s3.cpu0
Debug: 1648 21394 esp32s3.c:593 esp32s3_handle_target_event(): 2
Debug: 1649 21394 esp_xtensa_smp.c:609 esp_xtensa_smp_handle_target_event(): 2
Debug: 1650 21394 esp_xtensa.c:79 esp_xtensa_handle_target_event(): 2
Debug: 1651 21394 xtensa.c:2450 xtensa_handle_target_event(): 2
Debug: 1652 21394 esp_algorithm.c:220 algorithm_run(): Wait algorithm completion
[OpenOCD]
Debug: 1653 21429 xtensa.c:890 xtensa_fetch_all_regs(): esp32s3.cpu0: start
[OpenOCD]
Debug: 1654 21540 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
[OpenOCD]
Debug: 1655 21644 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1656 21644 esp32s3.c:318 esp32s3_fetch_user_regs(): esp32s3.cpu0: user regs fetching is not implemented!
Debug: 1657 21644 xtensa.c:1858 xtensa_poll(): esp32s3.cpu0: Target halted, pc=0x403B245E, debug_reason=00000001, oldstate=00000004
Debug: 1658 21644 xtensa.c:1863 xtensa_poll(): esp32s3.cpu0: Halt reason=0x00000008, exc_cause=4, dsr=0x8000cc11
Info : 1659 21644 xtensa.c:1866 xtensa_poll(): esp32s3.cpu0: Target halted, PC=0x403B245E, debug_reason=00000001
[OpenOCD]
Debug: 1660 21667 esp_xtensa_smp.c:258 esp_xtensa_smp_update_halt_gdb(): GDB target 'esp32s3.cpu0'
Debug: 1661 21667 esp_xtensa_smp.c:272 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu0'
Debug: 1662 21667 esp_xtensa_smp.c:272 esp_xtensa_smp_update_halt_gdb(): Check target 'esp32s3.cpu1'
Debug: 1663 21667 esp_xtensa_smp.c:315 esp_xtensa_smp_update_halt_gdb(): exit
Debug: 1664 21667 target.c:1857 target_call_event_callbacks(): target event 17 (debug-halted) for core esp32s3.cpu0
Debug: 1665 21667 esp32s3.c:593 esp32s3_handle_target_event(): 17
Debug: 1666 21667 esp_xtensa_smp.c:609 esp_xtensa_smp_handle_target_event(): 17
Debug: 1667 21667 esp_xtensa.c:79 esp_xtensa_handle_target_event(): 17
Debug: 1668 21667 xtensa.c:2450 xtensa_handle_target_event(): 17
Debug: 1669 21667 xtensa.c:2260 xtensa_wait_algorithm(): Read mem params
Debug: 1670 21667 xtensa.c:2262 xtensa_wait_algorithm(): Check mem param @ 0x3fce0858
Debug: 1671 21667 xtensa.c:2264 xtensa_wait_algorithm(): Read mem param @ 0x3fce0858
Debug: 1672 21667 target.c:2531 target_read_buffer(): reading buffer of 28 byte at 0x3fce0858
[OpenOCD]
Debug: 1673 21691 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1674 21691 log.c:433 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (4047 ms). This may cause trouble with GDB connections.
Debug: 1675 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a15: 0x000050aa -> 0x00000064
Debug: 1676 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a14: 0x00000020 -> 0x3fce08fc
Debug: 1677 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a13: 0x00800000 -> 0x3fcf3dc0
Debug: 1678 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a12: 0x3fce0858 -> 0x3fcf3de0
Debug: 1679 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a11: 0x00000000 -> 0x0000000c
Debug: 1680 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a9: 0x3fce07c0 -> 0x3fcf4570
Debug: 1681 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a8: 0x803b245c -> 0x820096de
Debug: 1682 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a7: 0x0000000c -> 0x00000000
Debug: 1683 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a6: 0x00000000 -> 0x00060823
Debug: 1684 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a5: 0x3fcf4570 -> 0x3fcf3c90
Debug: 1685 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a4: 0x3fce0858 -> 0x8037cfcd
Debug: 1686 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a3: 0xffffffff -> 0x00000001
Debug: 1687 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a1: 0x3fce0840 -> 0x3fcf45a0
Debug: 1688 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register a0: 0x00000000 -> 0x82001ede
Debug: 1689 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ccount: 0xb1650e8d -> 0xb1629c31
Debug: 1690 21691 xtensa.c:2284 xtensa_wait_algorithm(): Skip restoring register debugcause: 0x00000008 -> 0x00000020
Debug: 1691 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register interrupt: 0x01018240 -> 0x00018240
Debug: 1692 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register eps6: 0x00060225 -> 0x00060d20
Debug: 1693 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register epc6: 0x403b245e -> 0x42017e5a
Debug: 1694 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register epc1: 0x403b1fa9 -> 0x42001ede
Debug: 1695 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ps: 0x00060225 -> 0x00060d20
Debug: 1696 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register configid0: 0x403b245e -> 0x42017e5a
Debug: 1697 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register windowstart: 0x00000001 -> 0x0000a800
Debug: 1698 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register windowbase: 0x00000000 -> 0x0000000f
Debug: 1699 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register sar: 0x00000018 -> 0x00000000
Debug: 1700 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register lcount: 0xffffffff -> 0x00000000
Debug: 1701 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register lend: 0x403b209a -> 0x00000000
Debug: 1702 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register lbeg: 0x403b2084 -> 0x00000000
Debug: 1703 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar63: 0x00000000 -> 0x00000001
Debug: 1704 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar61: 0x00000000 -> 0x3fcf45a0
Debug: 1705 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar60: 0x08000000 -> 0x82001ede
Debug: 1706 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar59: 0xffff0000 -> 0x3fc944fc
Debug: 1707 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar58: 0x600c4030 -> 0x3fc944fc
Debug: 1708 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar57: 0x00000008 -> 0x00000001
Debug: 1709 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar56: 0x600c4028 -> 0x00000001
Debug: 1710 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar54: 0x80000000 -> 0x00000008
Debug: 1711 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar53: 0x3fce0770 -> 0x3fcf45c0
Debug: 1712 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar52: 0x5c000007 -> 0x8037b7e8
Debug: 1713 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar51: 0x00000008 -> 0x00000000
Debug: 1714 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar50: 0x00000004 -> 0x00000001
Debug: 1715 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar49: 0x00000004 -> 0x00000000
Debug: 1716 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar48: 0x600c4150 -> 0x00000000
Debug: 1717 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar47: 0x4004e4c0 -> 0x00000000
Debug: 1718 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar46: 0x08000000 -> 0x00000000
Debug: 1719 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar45: 0x00000020 -> 0x3fcf45e0
Debug: 1720 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar44: 0x00000000 -> 0x8037cd18
Debug: 1721 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar43: 0x3fceffc8 -> 0xb81fc000
Debug: 1722 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar42: 0x00000000 -> 0x60020000
Debug: 1723 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar41: 0x3fce0700 -> 0x3fc92680
Debug: 1724 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar40: 0x8004f428 -> 0x00000000
Debug: 1725 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar39: 0x00000010 -> 0x00000000
Debug: 1726 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar38: 0x50000000 -> 0x3fc944fc
Debug: 1727 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar37: 0x3fce07a0 -> 0x00060023
Debug: 1728 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar36: 0x00000008 -> 0x00060021
[OpenOCD]
Debug: 1729 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar35: 0x4004e950 -> 0x00000001
Debug: 1730 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar34: 0x00000000 -> 0x00060023
Debug: 1731 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar33: 0x3fce0720 -> 0x3fc926b0
Debug: 1732 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar32: 0x803b0312 -> 0x8037cfcd
Debug: 1733 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar31: 0x600c5000 -> 0x00000000
Debug: 1734 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar30: 0x600c500c -> 0x00060f23
Debug: 1735 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar29: 0x00000000 -> 0x3fcf3dd0
Debug: 1736 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar28: 0x00000004 -> 0x8037cfcd
Debug: 1737 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar27: 0x00000004 -> 0x00000001
Debug: 1738 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar26: 0x00ffffff -> 0x3fcf4ecc
Debug: 1739 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar25: 0x50000000 -> 0x00060d23
Debug: 1740 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar24: 0x00000006 -> 0x00060d20
Debug: 1741 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar23: 0x600c5000 -> 0x00000000
Debug: 1742 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar22: 0x00000006 -> 0x00060d23
Debug: 1743 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar21: 0x00000000 -> 0x3fcf4540
Debug: 1744 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar20: 0x00000002 -> 0x8037cfcd
Debug: 1745 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar19: 0x3fce0858 -> 0x00000003
Debug: 1746 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar18: 0x00000000 -> 0x00060023
Debug: 1747 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar17: 0x3fce0780 -> 0x3fcf4490
Debug: 1748 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar16: 0x803b1ea0 -> 0x8037cfcd
Debug: 1749 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar15: 0x000050aa -> 0x3fcf4570
Debug: 1750 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar14: 0x00000020 -> 0x3fc944fc
Debug: 1751 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar13: 0x00800000 -> 0x3fcf4550
Debug: 1752 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar12: 0x3fce0858 -> 0x820096d2
Debug: 1753 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar11: 0x00000000 -> 0x00000064
Debug: 1754 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar10: 0x00000000 -> 0x3fce08fc
Debug: 1755 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar9: 0x3fce07c0 -> 0x3fcf3dc0
Debug: 1756 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar8: 0x803b245c -> 0x3fcf3de0
Debug: 1757 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar4: 0x3fce0858 -> 0x820096de
Debug: 1758 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar3: 0xffffffff -> 0x00000000
Debug: 1759 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar2: 0x00000000 -> 0x00060823
Debug: 1760 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar1: 0x3fce0840 -> 0x3fcf3c90
Debug: 1761 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register ar0: 0x00000000 -> 0x8037cfcd
Debug: 1762 21691 xtensa.c:2294 xtensa_wait_algorithm(): restoring register pc: 0x403b245e -> 0x42017e5a
Debug: 1763 21691 xtensa.c:512 xtensa_write_dirty_registers(): esp32s3.cpu0: start
Debug: 1764 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg pc val 42017E5A
Debug: 1765 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lbeg val 00000000
Debug: 1766 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lend val 00000000
Debug: 1767 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg lcount val 00000000
Debug: 1768 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg sar val 00000000
Debug: 1769 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowbase val 0000000F
Debug: 1770 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg windowstart val 0000A800
Debug: 1771 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg configid0 val 42017E5A
Debug: 1772 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ps val 00060D20
Debug: 1773 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg epc1 val 42001EDE
Debug: 1774 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg epc6 val 42017E5A
Debug: 1775 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg eps6 val 00060D20
Debug: 1776 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg interrupt val 00018240
Debug: 1777 21691 xtensa.c:526 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ccount val B1629C31
Debug: 1778 21691 esp32s3.c:324 esp32s3_queue_write_dirty_user_regs(): esp32s3.cpu0: user regs writing is not implemented!
Debug: 1779 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a0 value 82001EDE, num =1
Debug: 1780 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a1 value 3FCF45A0, num =2
Debug: 1781 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a3 value 00000001, num =4
Debug: 1782 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a4 value 8037CFCD, num =5
Debug: 1783 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a5 value 3FCF3C90, num =6
Debug: 1784 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a6 value 00060823, num =7
Debug: 1785 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a7 value 00000000, num =8
Debug: 1786 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a8 value 820096DE, num =9
Debug: 1787 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a9 value 3FCF4570, num =10
Debug: 1788 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a11 value 0000000C, num =12
Debug: 1789 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a12 value 3FCF3DE0, num =13
Debug: 1790 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a13 value 3FCF3DC0, num =14
Debug: 1791 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a14 value 3FCE08FC, num =15
Debug: 1792 21691 xtensa.c:591 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg a15 value 00000064, num =16
Debug: 1793 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar60 value 82001EDE, num =60
Debug: 1794 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar61 value 3FCF45A0, num =61
Debug: 1795 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar63 value 00000001, num =63
Debug: 1796 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar0 value 8037CFCD, num =0
Debug: 1797 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar1 value 3FCF3C90, num =1
Debug: 1798 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar2 value 00060823, num =2
Debug: 1799 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar3 value 00000000, num =3
Debug: 1800 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar4 value 820096DE, num =4
Debug: 1801 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar8 value 3FCF3DE0, num =8
Debug: 1802 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar9 value 3FCF3DC0, num =9
Debug: 1803 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar10 value 3FCE08FC, num =10
Debug: 1804 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar11 value 00000064, num =11
Debug: 1805 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar12 value 820096D2, num =12
Debug: 1806 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar13 value 3FCF4550, num =13
Debug: 1807 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar14 value 3FC944FC, num =14
Debug: 1808 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar15 value 3FCF4570, num =15
Debug: 1809 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar16 value 8037CFCD, num =16
Debug: 1810 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar17 value 3FCF4490, num =17
Debug: 1811 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar18 value 00060023, num =18
Debug: 1812 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar19 value 00000003, num =19
Debug: 1813 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar20 value 8037CFCD, num =20
Debug: 1814 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar21 value 3FCF4540, num =21
Debug: 1815 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar22 value 00060D23, num =22
Debug: 1816 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar23 value 00000000, num =23
Debug: 1817 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar24 value 00060D20, num =24
Debug: 1818 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar25 value 00060D23, num =25
Debug: 1819 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar26 value 3FCF4ECC, num =26
Debug: 1820 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar27 value 00000001, num =27
Debug: 1821 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar28 value 8037CFCD, num =28
Debug: 1822 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar29 value 3FCF3DD0, num =29
Debug: 1823 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar30 value 00060F23, num =30
Debug: 1824 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar31 value 00000000, num =31
Debug: 1825 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar32 value 8037CFCD, num =32
Debug: 1826 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar33 value 3FC926B0, num =33
Debug: 1827 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar34 value 00060023, num =34
Debug: 1828 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar35 value 00000001, num =35
Debug: 1829 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar36 value 00060021, num =36
Debug: 1830 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar37 value 00060023, num =37
Debug: 1831 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar38 value 3FC944FC, num =38
Debug: 1832 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar39 value 00000000, num =39
Debug: 1833 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar40 value 00000000, num =40
Debug: 1834 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar41 value 3FC92680, num =41
Debug: 1835 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar42 value 60020000, num =42
Debug: 1836 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar43 value B81FC000, num =43
Debug: 1837 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar44 value 8037CD18, num =44
Debug: 1838 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar45 value 3FCF45E0, num =45
Debug: 1839 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar46 value 00000000, num =46
Debug: 1840 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar47 value 00000000, num =47
Debug: 1841 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar48 value 00000000, num =48
Debug: 1842 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar49 value 00000000, num =49
Debug: 1843 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar50 value 00000001, num =50
Debug: 1844 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar51 value 00000000, num =51
Debug: 1845 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar52 value 8037B7E8, num =52
Debug: 1846 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar53 value 3FCF45C0, num =53
Debug: 1847 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar54 value 00000008, num =54
Debug: 1848 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar56 value 00000001, num =56
Debug: 1849 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar57 value 00000001, num =57
Debug: 1850 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar58 value 3FC944FC, num =58
Debug: 1851 21691 xtensa.c:616 xtensa_write_dirty_registers(): esp32s3.cpu0: Writing back reg ar59 value 3FC944FC, num =59
[OpenOCD]
Debug: 1852 21730 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1853 21730 esp_algorithm.c:248 algorithm_run(): Got algorithm RC 0x0
[OpenOCD]
Debug: 1854 21753 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1855 21753 target.c:2203 target_free_working_area_restore(): freed 28 bytes of working area at address 0x3fce0858
Debug: 1856 21753 target.c:1983 print_wa_layout(): b* 0x3fce0000-0x3fce0343 (836 bytes)
Debug: 1857 21753 target.c:1983 print_wa_layout(): b* 0x3fce0344-0x3fce0857 (1300 bytes)
Debug: 1858 21753 target.c:1983 print_wa_layout():    0x3fce0858-0x3fceffff (63400 bytes)
[OpenOCD]
Debug: 1859 21775 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
[OpenOCD]
Debug: 1860 21775 target.c:2203 target_free_working_area_restore(): freed 28 bytes of working area at address 0x403b2448
Debug: 1861 21775 target.c:1983 print_wa_layout(): b* 0x403b0000-0x403b2447 (9288 bytes)
Debug: 1862 21775 target.c:1983 print_wa_layout():    0x403b2448-0x403b33ff (4024 bytes)
[OpenOCD]
Debug: 1863 21851 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1864 21851 target.c:2203 target_free_working_area_restore(): freed 1300 bytes of working area at address 0x3fce0344
Debug: 1865 21851 target.c:1983 print_wa_layout(): b* 0x3fce0000-0x3fce0343 (836 bytes)
Debug: 1866 21851 target.c:1983 print_wa_layout():    0x3fce0344-0x3fceffff (64700 bytes)
[OpenOCD]
Debug: 1867 22327 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1868 22327 target.c:2203 target_free_working_area_restore(): freed 9288 bytes of working area at address 0x403b0000
Debug: 1869 22327 target.c:1983 print_wa_layout():    0x403b0000-0x403b33ff (13312 bytes)
[OpenOCD]
Debug: 1870 22382 xtensa.c:788 xtensa_core_status_check(): esp32s3.cpu0: DSR (8000CC11)
Debug: 1871 22382 target.c:2203 target_free_working_area_restore(): freed 836 bytes of working area at address 0x3fce0000
Debug: 1872 22382 target.c:1983 print_wa_layout():    0x3fce0000-0x3fceffff (65536 bytes)
Debug: 1873 22382 xtensa.c:726 xtensa_smpbreak_write(): esp32s3.cpu0: write smpbreak set=0x30000 clear=0x600000
[OpenOCD]
Debug: 1874 22388 xtensa.c:744 xtensa_smpbreak_set(): esp32s3.cpu0: set smpbreak=30000, state=2
Info : 1875 22388 esp_flash.c:402 esp_flash_get_mappings(): Flash mapping 0: 0x10020 -> 0x3c020020, 34 KB
Info : 1876 22388 esp_flash.c:402 esp_flash_get_mappings(): Flash mapping 1: 0x20020 -> 0x42000020, 98 KB
Info : 1877 22388 esp_flash.c:985 esp_flash_probe(): Using flash bank 'esp32s3.cpu0.drom' size 36 KB
Debug: 1878 22388 esp_flash.c:1002 esp_flash_probe(): allocated 9 sectors
Info : 1879 22388 gdb_server.c:1081 gdb_new_connection(): New GDB Connection: 1, Target esp32s3.cpu0, state: halted
Debug: 1880 22388 gdb_server.c:401 gdb_log_incoming_packet(): [esp32s3.cpu0] received packet: qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+
Debug: 1881 22388 xtensa.c:1106 xtensa_get_gdb_reg_list(): reg_class=0, num_regs=228
[OpenOCD]
Debug: 1882 22388 gdb_server.c:418 gdb_log_outgoing_packet(): [esp32s3.cpu0] sending packet: $PacketSize=4000;qXfer:memory-map:read+;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+;vContSupported+#02
Warn : 1883 22388 gdb_server.c:369 gdb_write(): Error writing to GDB socket. Dropping the connection.
Debug: 1884 22388 gdb_server.c:1126 gdb_connection_closed(): GDB Close, Target: esp32s3.cpu0, state: halted, gdb_actual_connections=0
Debug: 1885 22388 target.c:1857 target_call_event_callbacks(): target event 8 (gdb-end) for core esp32s3.cpu0
Debug: 1886 22388 esp32s3.c:593 esp32s3_handle_target_event(): 8
Debug: 1887 22388 esp_xtensa_smp.c:609 esp_xtensa_smp_handle_target_event(): 8
Debug: 1888 22388 esp_xtensa.c:79 esp_xtensa_handle_target_event(): 8
Debug: 1889 22388 xtensa.c:2450 xtensa_handle_target_event(): 8
Debug: 1890 22388 target.c:1857 target_call_event_callbacks(): target event 23 (gdb-detach) for core esp32s3.cpu0
Debug: 1891 22388 esp32s3.c:593 esp32s3_handle_target_event(): 23
Debug: 1892 22388 esp_xtensa_smp.c:609 esp_xtensa_smp_handle_target_event(): 23
Debug: 1893 22388 esp_xtensa.c:79 esp_xtensa_handle_target_event(): 23
Debug: 1894 22388 xtensa.c:2450 xtensa_handle_target_event(): 23
Info : 1895 22388 server.c:577 server_loop(): dropped 'gdb' connection
[OpenOCD]
Debug: 1896 28293 log.c:433 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (1233 ms). This may cause trouble with GDB connections.
[Debug Adapter]
2022-10-06 20:45:28,972 - Gdb - DEBUG - MI<-:
[{'message': None,
  'payload': 'Ignoring packet error, continuing...\\n',
  'stream': 'stdout',
  'type': 'console'},
 {'message': None,
  'payload': 'warning: unrecognized item \\"timeout\\" in \\"qSupported\\" '
             'response\\n',
  'stream': 'stdout',
  'type': 'log'},
 {'message': None,
  'payload': 'Ignoring packet error, continuing...\\n',
  'stream': 'stdout',
  'type': 'console'},
 {'message': 'error',
  'payload': {'msg': "Remote replied unexpectedly to 'vMustReplyEmpty': "
                     'timeout'},
  'stream': 'stdout',
  'token': None,
  'type': 'result'}]
[Debug Adapter]
2022-10-06 20:45:28,972 - Gdb - INFO - CONS: 'Ignoring packet error, continuing...\\n'
2022-10-06 20:45:28,972 - Gdb - DEBUG - LOG: 'warning: unrecognized item \\"timeout\\" in \\"qSupported\\" response\\n'
2022-10-06 20:45:28,972 - Gdb - INFO - CONS: 'Ignoring packet error, continuing...\\n'
2022-10-06 20:45:28,972 - Gdb - DEBUG - RESULT: error {'msg': "Remote replied unexpectedly to 'vMustReplyEmpty': timeout"}
[Debug Adapter]
2022-10-06 20:45:28,972 - Debug Adapter (main) - ERROR - Failed to connect to "remote 127.0.0.1:3333"!
Traceback (most recent call last):
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/command_processor.py", line 52, in __call__
    on_request(protocol_message)
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/command_processor.py", line 75, in on_initialize_request
    raise e
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/command_processor.py", line 70, in on_initialize_request
    self.da.adapter_init()
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 317, in adapter_init
    raise e
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 313, in adapter_init
    self.start_gdb()
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 622, in start_gdb
    raise e
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 619, in start_gdb
    self._gdb.connect()
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_backend/debug_backend/gdb.py", line 578, in connect
    self.target_select(remote_mode, self._remote_target, tmo=tmo)
  File "/home/user/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/debug_adapter/debug_backend/debug_backend/gdb.py", line 258, in target_select
    raise DebuggerError('Failed to connect to "%s %s"!' % (tgt_type, tgt_params))
debug_adapter.debug_backend.debug_backend.defs.DebuggerError: Failed to connect to "remote 127.0.0.1:3333"!
[Debug Adapter]
2022-10-06 20:45:28,973 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "response", "request_seq": 1, "success": false, "command": "initialize", "seq": 7, "message": "Failed to init Debug Adapter!", "body": {}}

[Debug Adapter]
2022-10-06 20:45:28,973 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Failed to connect to \"remote 127.0.0.1:3333\"!\n", "source": {}}, "seq": 8}

2022-10-06 20:45:28,974 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Failed to connect to \"remote 127.0.0.1:3333\"!\n", "source": {}}, "seq": 9}

[Debug Adapter]
2022-10-06 20:45:29,010 - Debug Adapter (ReaderThread) - DEBUG - read line: >>b'Content-Length: 79\\r\\n'<<

[Debug Adapter]
2022-10-06 20:45:29,011 - Debug Adapter (ReaderThread) - DEBUG - read line: >>b'\\r\\n'<<

2022-10-06 20:45:29,012 - Debug Adapter(Command Processor) - DEBUG - Got json: {
    "arguments": {
        "restart": false
    },
    "command": "disconnect",
    "seq": 2,
    "type": "request"
}
2022-10-06 20:45:29,012 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Got json: {\n    \"arguments\": {\n        \"restart\": false\n    },\n    \"command\": \"disconnect\",\n    \"seq\": 2,\n    \"type\": \"request\"\n}\n", "source": {}}, "seq": 10}

2022-10-06 20:45:29,012 - Debug Adapter (main) - DEBUG - Adapter is Stopping...
2022-10-06 20:45:29,012 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Debug Adapter stopped\n", "source": {}}, "seq": 11}

2022-10-06 20:45:29,012 - Debug Adapter (main) - DEBUG - Stopping target poller
2022-10-06 20:45:29,012 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Adapter is Stopping...\n", "source": {}}, "seq": 12}

2022-10-06 20:45:29,013 - Debug Adapter (main) - DEBUG - Closing the GDB process
[Debug Adapter]
2022-10-06 20:45:29,013 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Stopping target poller\n", "source": {}}, "seq": 13}

2022-10-06 20:45:29,013 - Debug Adapter (main) - DEBUG - Closing the Socket
2022-10-06 20:45:29,013 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Closing the GDB process\n", "source": {}}, "seq": 14}

[Debug Adapter]
2022-10-06 20:45:29,013 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Closing the Socket\n", "source": {}}, "seq": 15}

2022-10-06 20:45:29,014 - Debug Adapter (main) - DEBUG - Stopping of the Writer thread
2022-10-06 20:45:29,014 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "event", "event": "output", "body": {"output": "Stopping of the Writer thread\n", "source": {}}, "seq": 16}

[Debug Adapter]
2022-10-06 20:45:29,014 - Debug Adapter (main) - DEBUG - Stopping of the Reader thread
[Debug Adapter]
2022-10-06 20:45:29,014 - Debug Adapter (main) - DEBUG - Adapter is Stopped
[Debug Adapter]
DEBUG_ADAPTER_STOPPED
2022-10-06 20:45:29,014 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
[Debug Adapter]
2022-10-06 20:45:29,015 - Debug Adapter(Command Processor) - DEBUG - Processed command: disconnect
[Stopped] : ESP-IDF Debug Adapter

Other Steps to Reproduce

Install fresh ubuntu on any workstation, install linux dependencies as required by ESP-IDF, install vs code, install ESP-IDF plugin in vs code, run ESP-IDF plugin installation, install udev rules, load blink demo project, configure project for esp32S3, compile, upload via JTAG, as soon as you try to debug you are hit with the "Failed to init Debug Adapater!"

I have checked existing issues, online documentation and the Troubleshooting Guide

brianignacio5 commented 2 years ago

Have you tried reducing the openOCD and debug adapter logLevel ? This increases the overhead. Also try to use the latest openOCD release because many ESP32-S3 bug fixes have been implemented there.

brianignacio5 commented 2 years ago

Closing this issue for lack of response.