Closed neil-ecobloc closed 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.
Closing this issue for lack of response.
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
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