espressif / openocd-esp32

OpenOCD branch with ESP32 JTAG support
Other
350 stars 128 forks source link

[Bug Report]: EPS32-C3 "Failed to init Debug Adapter" (VSC-727) (OCD-399) #173

Closed SilentButeo2 closed 1 year ago

SilentButeo2 commented 3 years ago

I try to debug an esp32c3 unit with the integrated serail/jtag functionality over usb. Building and running with "Build, flash and start monitor on your device" seems to work fine. (using the default hello_world example) But if I want to debug with F5, I get "Failed to init Debug Adapter". Don't know if the default launch.json is the correct one for debugging the esp32c3. I came across several other launch.json files but some of them stated there were out dated.

HW: Using a ESP32-C3-DevKitM-1. Changed it to use the usb serial/jtag functionality. Running

Expected behavior Possibility to step through the code

Logs debug.log:

2021-08-13 11:16:51,210 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
2021-08-13 11:16:51,215 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
2021-08-13 11:16:51,278 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED

Settings launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "espidf",
      "name": "Launch",
      "request": "launch"
    }
  ]
}
brianignacio5 commented 3 years ago

We need more information from your system. Please share the following:

Use the ESP-IDF: Doctor command to generate a report of your configuration.

Click the menu View and select Output. Check the output channels: ESP-IDF, ESP-IDF Debug Adapter, OpenOCD

Logs:

SilentButeo2 commented 3 years ago

ESP-IDF: Doctor command

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19042 
System environment variable PATH 
 C:\Program Files\AdoptOpenJDK\jdk-11.0.10.9-hotspot\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft MPI\Bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\PuTTY\;C:\Program Files\dotnet\;C:\Program Files (x86)\Pico Technology\PicoScope6\;C:\Program Files (x86)\Perforce;C:\Program Files (x86)\dotnet\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;D:\progs\Ruby27-x64\bin;C:\Users\demouser\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\demouser\AppData\Local\Programs\Python\Python39\;C:\Users\demouser\AppData\Local\Microsoft\WindowsApps;C:\Users\demouser\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\demouser\AppData\Roaming\npm;P:\scripting\pc-lint\bin;C:\Users\demouser\.dotnet\tools;C:\Users\demouser\AppData\Local\Pandoc\;D:\progs\cygwin64\bin; 
Visual Studio Code version 1.59.0 
Visual Studio Code language en 
Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 
ESP-IDF Extension version 1.1.1 
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) D:/progs/esp/master/esp-idf/
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
Custom extra paths (idf.customExtraPaths) C:\Users\demouser\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin;C:\Users\demouser\.espressif\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0\xtensa-esp32s2-elf\bin;C:\Users\demouser\.espressif\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0\xtensa-esp32s3-elf\bin;C:\Users\demouser\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin;C:\Users\demouser\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\Users\demouser\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\Users\demouser\.espressif\tools\cmake\3.20.3\bin;C:\Users\demouser\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210721\openocd-esp32\bin;C:\Users\demouser\.espressif\tools\ninja\1.10.2;C:\Users\demouser\.espressif\tools\idf-exe\1.0.1;C:\Users\demouser\.espressif\tools\ccache\4.3\ccache-4.3-windows-64;C:\Users\demouser\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
Custom extra vars (idf.customExtraVars) {"OPENOCD_SCRIPTS":"C:\\Users\\demouser\\.espressif\\tools\\openocd-esp32\\v0.10.0-esp32-20210721/openocd-esp32/share/openocd/scripts","IDF_CCACHE_ENABLE":"1"}
Virtual env Python Path (idf.pythonBinPath) C:\Users\demouser\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe
Serial port (idf.port) COM30
OpenOCD Configs (idf.openOcdConfigs) board/esp32c3-builtin.cfg
ESP-IDF Tools Path (idf.toolsPath) C:\Users\demouser\.espressif
Git Path (idf.gitPath) C:/Users/demouser/.espressif/tools/idf-git/2.30.1/cmd/git.exe
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espIdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) true
Access to ESP-MDF Path (idf.espIdfPath) false
Access to ESP-IDF Custom extra paths
Access to C:\Users\demouser\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin: true
Access to C:\Users\demouser\.espressif\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0\xtensa-esp32s2-elf\bin: true
Access to C:\Users\demouser\.espressif\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0\xtensa-esp32s3-elf\bin: true
Access to C:\Users\demouser\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin: true
Access to C:\Users\demouser\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: true
Access to C:\Users\demouser\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: true
Access to C:\Users\demouser\.espressif\tools\cmake\3.20.3\bin: true
Access to C:\Users\demouser\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210721\openocd-esp32\bin: true
Access to C:\Users\demouser\.espressif\tools\ninja\1.10.2: true
Access to C:\Users\demouser\.espressif\tools\idf-exe\1.0.1: true
Access to C:\Users\demouser\.espressif\tools\ccache\4.3\ccache-4.3-windows-64: true
Access to C:\Users\demouser\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: true
Access to Virtual env Python Path (idf.pythonBinPath) true
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path (idf.toolsPath) true
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.30.1.windows.1
ESP-IDF version 4.4
Python version 3.8.7
Python's pip version 20.3.3
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
bitstring version: 3.1.9
Brotli version: 1.0.9
certifi version: 2021.5.30
cffi version: 1.14.6
charset-normalizer version: 2.0.4
click version: 8.0.1
colorama version: 0.4.4
construct version: 2.10.54
contextlib2 version: 21.6.0
cryptography version: 3.4.7
ecdsa version: 0.17.0
esp-windows-curses version: 0.1
Flask version: 0.12.5
Flask-Compress version: 1.10.1
Flask-SocketIO version: 2.9.6
future version: 0.18.2
gcovr version: 5.0
gdbgui version: 0.13.2.0
gevent version: 1.5.0
greenlet version: 1.1.1
idf-component-manager version: 0.2.100b0
idna version: 3.2
itsdangerous version: 2.0.1
Jinja2 version: 3.0.1
kconfiglib version: 13.7.1
lxml version: 4.6.3
MarkupSafe version: 2.0.1
pip version: 20.3.3
psutil version: 5.8.0
pycparser version: 2.20
pyelftools version: 0.27
pygdbmi version: 0.9.0.2
Pygments version: 2.9.0
pyparsing version: 2.3.1
pyserial version: 3.5
python-engineio version: 3.14.2
python-socketio version: 4.6.1
pywin32 version: 301
PyYAML version: 5.4.1
reedsolo version: 1.5.4
requests version: 2.26.0
requests-toolbelt version: 0.9.1
schema version: 0.7.4
semantic-version version: 2.8.5
setuptools version: 57.4.0
six version: 1.16.0
tqdm version: 4.62.0
urllib3 version: 1.26.6
websocket-client version: 1.2.0
Werkzeug version: 0.16.1
wheel version: 0.36.2
windows-curses version: 2.2.0
xmlrunner version: 1.7.7
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements from D:\progs\esp\master\esp-idf\requirements.txt are satisfied.
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension Python packages Python requirements from c:\Users\demouser\.vscode\extensions\espressif.esp-idf-extension-1.1.1\requirements.txt are satisfied.
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Python requirements from c:\Users\demouser\.vscode\extensions\espressif.esp-idf-extension-1.1.1\esp_debug_adapter\requirements.txt are satisfied.
---------------------------------------------------- Visual Studio Code launch.json --------------------------------------------------------
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "espidf",
      "name": "Launch",
      "request": "launch"
    }
  ]
} 
---------------------------------------------------- Visual Studio Code c_cpp_properties.json ----------------------------------------------
{
    "configurations": [
        {
            "name": "ESP-IDF",
            "compilerPath": "C:\\Users\\demouser\\.espressif\\tools\\riscv32-esp-elf\\esp-2021r1-8.4.0\\riscv32-esp-elf\\bin\\riscv32-esp-elf-gcc.exe",
            "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
}

--------------------------------------------------------------------------------------------------------------------------------------------

Output: ESP-IDF

-- Found Git: C:/Users/demouser/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file D:/demo/hello_world/sdkconfig
-- Found PythonInterp: C:/Users/demouser/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") 
-- Could NOT find Perl (missing: PERL_EXECUTABLE) 
-- App "hello-world" version: 1
-- Adding linker script D:/demo/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_system/ld/esp32c3/sections.ld.in
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32c3 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: D:/progs/esp/master/esp-idf/components/app_trace D:/progs/esp/master/esp-idf/components/app_update D:/progs/esp/master/esp-idf/components/asio D:/progs/esp/master/esp-idf/components/bootloader D:/progs/esp/master/esp-idf/components/bootloader_support D:/progs/esp/master/esp-idf/components/bt D:/progs/esp/master/esp-idf/components/cbor D:/progs/esp/master/esp-idf/components/cmock D:/progs/esp/master/esp-idf/components/coap D:/progs/esp/master/esp-idf/components/console D:/progs/esp/master/esp-idf/components/cxx D:/progs/esp/master/esp-idf/components/driver D:/progs/esp/master/esp-idf/components/efuse D:/progs/esp/master/esp-idf/components/esp-tls D:/progs/esp/master/esp-idf/components/esp32c3 D:/progs/esp/master/esp-idf/components/esp_adc_cal D:/progs/esp/master/esp-idf/components/esp_common D:/progs/esp/master/esp-idf/components/esp_eth D:/progs/esp/master/esp-idf/components/esp_event D:/progs/esp/master/esp-idf/components/esp_gdbstub D:/progs/esp/master/esp-idf/components/esp_hid D:/progs/esp/master/esp-idf/components/esp_http_client D:/progs/esp/master/esp-idf/components/esp_http_server D:/progs/esp/master/esp-idf/components/esp_https_ota D:/progs/esp/master/esp-idf/components/esp_https_server D:/progs/esp/master/esp-idf/components/esp_hw_support D:/progs/esp/master/esp-idf/components/esp_ipc D:/progs/esp/master/esp-idf/components/esp_lcd D:/progs/esp/master/esp-idf/components/esp_local_ctrl D:/progs/esp/master/esp-idf/components/esp_netif D:/progs/esp/master/esp-idf/components/esp_phy D:/progs/esp/master/esp-idf/components/esp_pm D:/progs/esp/master/esp-idf/components/esp_ringbuf D:/progs/esp/master/esp-idf/components/esp_rom D:/progs/esp/master/esp-idf/components/esp_serial_slave_link D:/progs/esp/master/esp-idf/components/esp_system D:/progs/esp/master/esp-idf/components/esp_timer D:/progs/esp/master/esp-idf/components/esp_websocket_client D:/progs/esp/master/esp-idf/components/esp_wifi D:/progs/esp/master/esp-idf/components/espcoredump D:/progs/esp/master/esp-idf/components/esptool_py D:/progs/esp/master/esp-idf/components/expat D:/progs/esp/master/esp-idf/components/fatfs D:/progs/esp/master/esp-idf/components/freemodbus D:/progs/esp/master/esp-idf/components/freertos D:/progs/esp/master/esp-idf/components/hal D:/progs/esp/master/esp-idf/components/heap D:/progs/esp/master/esp-idf/components/idf_test D:/progs/esp/master/esp-idf/components/ieee802154 D:/progs/esp/master/esp-idf/components/jsmn D:/progs/esp/master/esp-idf/components/json D:/progs/esp/master/esp-idf/components/libsodium D:/progs/esp/master/esp-idf/components/log D:/progs/esp/master/esp-idf/components/lwip D:/demo/hello_world/main D:/progs/esp/master/esp-idf/components/mbedtls D:/progs/esp/master/esp-idf/components/mdns D:/progs/esp/master/esp-idf/components/mqtt D:/progs/esp/master/esp-idf/components/newlib D:/progs/esp/master/esp-idf/components/nghttp D:/progs/esp/master/esp-idf/components/nvs_flash D:/progs/esp/master/esp-idf/components/openssl D:/progs/esp/master/esp-idf/components/openthread D:/progs/esp/master/esp-idf/components/partition_table D:/progs/esp/master/esp-idf/components/protobuf-c D:/progs/esp/master/esp-idf/components/protocomm D:/progs/esp/master/esp-idf/components/pthread D:/progs/esp/master/esp-idf/components/riscv D:/progs/esp/master/esp-idf/components/sdmmc D:/progs/esp/master/esp-idf/components/soc D:/progs/esp/master/esp-idf/components/spi_flash D:/progs/esp/master/esp-idf/components/spiffs D:/progs/esp/master/esp-idf/components/tcp_transport D:/progs/esp/master/esp-idf/components/tcpip_adapter D:/progs/esp/master/esp-idf/components/tinyusb D:/progs/esp/master/esp-idf/components/unity D:/progs/esp/master/esp-idf/components/usb D:/progs/esp/master/esp-idf/components/vfs D:/progs/esp/master/esp-idf/components/wear_levelling D:/progs/esp/master/esp-idf/components/wifi_provisioning D:/progs/esp/master/esp-idf/components/wpa_supplicant
-- Configuring done
-- Generating done
-- Build files have been written to: D:/demo/hello_world/build
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'd:\demo\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory d:\demo\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 d:\demo\hello_world"...
-- Found Git: C:/Users/demouser/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/demouser/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file D:/demo/hello_world/sdkconfig
-- Found PythonInterp: C:/Users/demouser/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") 
-- Could NOT find Perl (missing: PERL_EXECUTABLE) 
-- App "hello-world" version: 1
-- Adding linker script D:/demo/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_system/ld/esp32c3/sections.ld.in
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
-- Adding linker script D:/progs/esp/master/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32c3 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: D:/progs/esp/master/esp-idf/components/app_trace D:/progs/esp/master/esp-idf/components/app_update D:/progs/esp/master/esp-idf/components/asio D:/progs/esp/master/esp-idf/components/bootloader D:/progs/esp/master/esp-idf/components/bootloader_support D:/progs/esp/master/esp-idf/components/bt D:/progs/esp/master/esp-idf/components/cbor D:/progs/esp/master/esp-idf/components/cmock D:/progs/esp/master/esp-idf/components/coap D:/progs/esp/master/esp-idf/components/console D:/progs/esp/master/esp-idf/components/cxx D:/progs/esp/master/esp-idf/components/driver D:/progs/esp/master/esp-idf/components/efuse D:/progs/esp/master/esp-idf/components/esp-tls D:/progs/esp/master/esp-idf/components/esp32c3 D:/progs/esp/master/esp-idf/components/esp_adc_cal D:/progs/esp/master/esp-idf/components/esp_common D:/progs/esp/master/esp-idf/components/esp_eth D:/progs/esp/master/esp-idf/components/esp_event D:/progs/esp/master/esp-idf/components/esp_gdbstub D:/progs/esp/master/esp-idf/components/esp_hid D:/progs/esp/master/esp-idf/components/esp_http_client D:/progs/esp/master/esp-idf/components/esp_http_server D:/progs/esp/master/esp-idf/components/esp_https_ota D:/progs/esp/master/esp-idf/components/esp_https_server D:/progs/esp/master/esp-idf/components/esp_hw_support D:/progs/esp/master/esp-idf/components/esp_ipc D:/progs/esp/master/esp-idf/components/esp_lcd D:/progs/esp/master/esp-idf/components/esp_local_ctrl D:/progs/esp/master/esp-idf/components/esp_netif D:/progs/esp/master/esp-idf/components/esp_phy D:/progs/esp/master/esp-idf/components/esp_pm D:/progs/esp/master/esp-idf/components/esp_ringbuf D:/progs/esp/master/esp-idf/components/esp_rom D:/progs/esp/master/esp-idf/components/esp_serial_slave_link D:/progs/esp/master/esp-idf/components/esp_system D:/progs/esp/master/esp-idf/components/esp_timer D:/progs/esp/master/esp-idf/components/esp_websocket_client D:/progs/esp/master/esp-idf/components/esp_wifi D:/progs/esp/master/esp-idf/components/espcoredump D:/progs/esp/master/esp-idf/components/esptool_py D:/progs/esp/master/esp-idf/components/expat D:/progs/esp/master/esp-idf/components/fatfs D:/progs/esp/master/esp-idf/components/freemodbus D:/progs/esp/master/esp-idf/components/freertos D:/progs/esp/master/esp-idf/components/hal D:/progs/esp/master/esp-idf/components/heap D:/progs/esp/master/esp-idf/components/idf_test D:/progs/esp/master/esp-idf/components/ieee802154 D:/progs/esp/master/esp-idf/components/jsmn D:/progs/esp/master/esp-idf/components/json D:/progs/esp/master/esp-idf/components/libsodium D:/progs/esp/master/esp-idf/components/log D:/progs/esp/master/esp-idf/components/lwip D:/demo/hello_world/main D:/progs/esp/master/esp-idf/components/mbedtls D:/progs/esp/master/esp-idf/components/mdns D:/progs/esp/master/esp-idf/components/mqtt D:/progs/esp/master/esp-idf/components/newlib D:/progs/esp/master/esp-idf/components/nghttp D:/progs/esp/master/esp-idf/components/nvs_flash D:/progs/esp/master/esp-idf/components/openssl D:/progs/esp/master/esp-idf/components/openthread D:/progs/esp/master/esp-idf/components/partition_table D:/progs/esp/master/esp-idf/components/protobuf-c D:/progs/esp/master/esp-idf/components/protocomm D:/progs/esp/master/esp-idf/components/pthread D:/progs/esp/master/esp-idf/components/riscv D:/progs/esp/master/esp-idf/components/sdmmc D:/progs/esp/master/esp-idf/components/soc D:/progs/esp/master/esp-idf/components/spi_flash D:/progs/esp/master/esp-idf/components/spiffs D:/progs/esp/master/esp-idf/components/tcp_transport D:/progs/esp/master/esp-idf/components/tcpip_adapter D:/progs/esp/master/esp-idf/components/tinyusb D:/progs/esp/master/esp-idf/components/unity D:/progs/esp/master/esp-idf/components/usb D:/progs/esp/master/esp-idf/components/vfs D:/progs/esp/master/esp-idf/components/wear_levelling D:/progs/esp/master/esp-idf/components/wifi_provisioning D:/progs/esp/master/esp-idf/components/wpa_supplicant
-- Configuring done
-- Generating done
-- Build files have been written to: D:/demo/hello_world/build
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory d:\demo\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 d:\demo\hello_world"...

Output: ESP-IDF Debug Adapter

DEBUG_ADAPTER_STARTED
2021-08-17 09:45:52,912 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
DEBUG_ADAPTER_READY2CONNECT
2021-08-17 09:45:52,932 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
DEBUG_ADAPTER_STOPPED
2021-08-17 09:45:52,963 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
[Stopped] : ESP-IDF Debug Adapter

OpenOCD

Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Warn : Transport "jtag" was already selected
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 40000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info :  hart 0: XLEN=32, misa=0x40101104
Info : Listening on port 3333 for gdb connections
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 16 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent on❌ ly 0 out of 32 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 48 byt❌ es.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 64 bytes.
❌ Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 80 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb ❌ sent only 0 out of 96 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 112 bytes.
Error: missing data from ❌ bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 128 bytes.
Error: missing data fro❌ m bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 144 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 160 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 176 bytes.
Error: miss❌ ing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 192 byt❌ es.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ou❌ t of 208 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 224 bytes.
Error: missing data from bitq interface
Er❌ ror: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0❌  out of 240 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 256 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 256 bytes.❌ 
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 272 bytes.
Error: missing❌  data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 288 bytes.
Error: m❌ issing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out ❌ of 304 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 320 bytes.
❌ Error: esp_usb_jtag: usb sent onl❌ y 0 out of 320 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 336 bytes.
❌ Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_us❌ b_jtag: usb sent only 0 out of 352 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 368 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 384 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 384 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ou❌ t of 400 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 ou❌ t of 416 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 432 bytes.
Err❌ or: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 448 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 448 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 464 bytes❌ .
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out o❌ f 480 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 496 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb ❌ sent only 0 out of 512 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 512 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb se❌ nt only 0 out of 528 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: es❌ p_usb_jtag: usb sent only 0 out of 544 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 560 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: e❌ sp_usb_jtag: usb sent only 0 out of 576 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 576 bytes.
Error: missin❌ g data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 592 bytes.
Error: missing❌  data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 608 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out❌  of 624 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 640 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 640 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed ❌ jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 656 bytes.
Error: missing❌  data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 672 bytes.
Error: missing data❌  from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only❌  0 out of 688 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 704 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 704 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 720 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp❌ _usb_jtag: usb sent only 0 out of 736 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 752 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_us❌ b_jtag: usb sent only 0 out of 768 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 768 bytes.
Error: missing dat❌ a from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out ❌ of 784 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jta❌ g: usb sent only 0 out of 800 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 816 b❌ ytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: ❌ usb sent only 0 out of 832 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 832 bytes.
Error: missing data from ❌ bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only ❌ 0 out of 848 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag:❌  usb sent only 0 out of 864 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 880 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out❌  of 896 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 896 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 912 bytes.
Er❌ ror: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 928 bytes.
❌ Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 944 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 960 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 960 bytes.
Error: mis❌ sing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent on❌ ly 0 out of 976 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 99❌ 2 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1008 bytes.
Error: miss❌ ing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1024 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1024 bytes.
❌ Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb se❌ nt only 0 out of 1040 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent on❌ ly 0 out of 1056 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sen❌ t only 0 out of 1072 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb❌ _jtag: usb sent only 0 out of 1088 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1088 bytes.
Error: missing d❌ ata from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 1104 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_us❌ b_jtag: usb sent only 0 out of 1120 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1136 bytes.
Error: missin❌ g data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1152 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1152 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1168 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1184 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1200 bytes.
Erro❌ r: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb s❌ ent only 0 out of 1216 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1216 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1232❌  bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only ❌ 0 out of 1248 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 1264 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1280 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1280 bytes.
Error: missing data ❌ from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out ❌ of 1296 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Err❌ or: esp_usb_jtag: usb sent only 0 out of 1312 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out❌  of 1328 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_u❌ sb_jtag: usb sent only 0 out of 1344 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1344 bytes.
Error: ❌ missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1360 ❌ bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1376 bytes.
Error: missing data from bitq i❌ nterface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 o❌ ut of 1392 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Erro❌ r: esp_usb_jtag: usb sent only 0 out of 1408 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1408 bytes.
Erro❌ r: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 142❌ 4 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1440 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out ❌ of 1456 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1472 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1472 by❌ tes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag❌ : usb sent only 0 out of 1488 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1504 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out o❌ f 1520 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: ❌ esp_usb_jtag: usb sent only 0 out of 1536 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1536 bytes.
Error: missing data from bitq interface
Error: dmi_❌ scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only❌  0 out of 1552 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1568 bytes.
Er❌ ror: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ou❌ t of 1584 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1600 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1600 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out o❌ f 1616 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1632 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent ❌ only 0 out of 1648 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1664 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1664 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: u❌ sb sent only 0 out of 1680 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent onl❌ y 0 out of 1696 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1712 bytes.
Error: missing d❌ ata from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 172❌ 8 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1728 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0❌  out of 1744 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: es❌ p_usb_jtag: usb sent only 0 out of 1760 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only ❌ 0 out of 1776 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1792 bytes❌ .
Error: esp_usb_jtag: usb sent only 0 out of 1792 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent onl❌ y 0 out of 1808 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1824 bytes.
Error: missing data fro❌ m bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1840 bytes.
Error: missing da❌ ta from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1856 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1856 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only ❌ 0 out of 1872 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 1888 bytes.
Error: mis❌ sing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1904 bytes.
Error: missing data f❌ rom bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1920 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 1920 bytes.
Error: missing data from b❌ itq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 1936 bytes.
Error: missing data ❌ from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 1952 bytes.
Error: missing data f❌ rom bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out o❌ f 1968 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out o❌ f 1984 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 1984 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: ❌ usb sent only 0 out of 2000 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2016 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 2032 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_j❌ tag: usb sent only 0 out of 2048 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 2048 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 2048 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: us❌ b sent only 0 out of 2064 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only ❌ 0 out of 2080 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only ❌ 0 out of 2096 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2112 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 2112 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2128 bytes.
❌ Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2144❌  bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out ❌ of 2160 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2176 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 2176 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0❌  out of 2192 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: ❌ usb sent only 0 out of 2208 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag:❌  usb sent only 0 out of 2224 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2240 bytes❌ .
Error: esp_usb_jtag: usb sent only 0 out of 2240 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2256 bytes.
Error: mi❌ ssing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2272 bytes.
Error: missing data fro❌ m bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ❌ out of 2288 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2304 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 2304 bytes.
Error: mi❌ ssing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jt❌ ag: usb sent only 0 out of 2320 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2336 bytes.
Error: missing data from bit❌ q interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2352 bytes.
Er❌ ror: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2368 by❌ tes.
Error: esp_usb_jtag: usb sent only 0 out of 2368 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb s❌ ent only 0 out of 2384 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: ❌ esp_usb_jtag: usb sent only 0 out of 2400 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent onl❌ y 0 out of 2416 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb❌ _jtag: usb sent only 0 out of 2432 bytes.
Error: esp_usb_jtag: usb sent only 0 out of 2432 bytes.
Error: missing data from bitq interface
❌ Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_j❌ tag: usb sent only 0 out of 2448 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jta❌ g: usb sent only 0 out of 2464 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2480 bytes.
Error: miss❌ ing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2496 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 2496 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb se❌ nt only 0 out of 2512 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
❌ Error: esp_usb_jtag: usb sent only 0 out of 2528 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2544 byte❌ s.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb_jtag: usb sent only 0 out of 2560 bytes.
❌ Error: esp_usb_jtag: usb sent only 0 out of 2560 bytes.
Error: missing data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 ou❌ t of 2576 bytes.
Error: extra data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
Error: Failed to read DMSTATUS (-4)!
Error: esp_usb❌ _jtag: usb sent only 0 out of 2592 bytes.
Error: extra data from bitq interface
Error: dmi_scan failed jtag scan
Error: failed read at 0x11, status=2
❌ Error: esp_usb_jtag: usb sent only 0 out of 2608 bytes.
[Stopped] : OpenOCD Server

esp_idf_vsc_ext.log

{"user":true,"message":"Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']","stack":"Error: JTAG_FLASH_FAILED\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:414414\n\tat Generator.throw (<anonymous>)\n\tat a (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:413637)\n\tat runMicrotasks (<anonymous>)\n\tat processTicksAndRejections (internal/process/task_queues.js:93:5)","level":"error","timestamp":"2021-08-13T09:58:55.800Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 3221225477","stack":"Error: Spawn exit with non-zero3221225477\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:81919)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-13T09:58:56.031Z"}
{"message":"non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:4137)\n\tat ChildProcess.emit (events.js:315:20)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","level":"error","timestamp":"2021-08-13T09:59:23.522Z"}
{"message":"Cannot access filePath: C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe","level":"error","timestamp":"2021-08-13T09:59:23.523Z"}
{"message":"non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:4137)\n\tat ChildProcess.emit (events.js:315:20)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","level":"error","timestamp":"2021-08-13T10:00:09.396Z"}
{"message":"Cannot access filePath: C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe","level":"error","timestamp":"2021-08-13T10:00:09.396Z"}
{"message":"Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:6907\n\tat ChildProcess.exithandler (child_process.js:308:7)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-13T10:01:33.043Z"}
{"message":"non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:4137)\n\tat ChildProcess.emit (events.js:315:20)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","level":"error","timestamp":"2021-08-13T10:01:54.430Z"}
{"message":"Cannot access filePath: C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe","level":"error","timestamp":"2021-08-13T10:01:54.431Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 3221225477","stack":"Error: Spawn exit with non-zero3221225477\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:81919)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-13T10:08:17.326Z"}
{"message":"Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:6907\n\tat ChildProcess.exithandler (child_process.js:308:7)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-17T07:11:03.134Z"}
{"message":"Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:6907\n\tat ChildProcess.exithandler (child_process.js:308:7)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-17T07:12:39.549Z"}
{"message":"CMake Error at D:/progs/esp/master/esp-idf/tools/cmake/component.cmake:243 (message):\n  Traceback (most recent call last):\n\n    File \"runpy.py\", line 194, in _run_module_as_main\n    File \"runpy.py\", line 87, in _run_code\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\__main__.py\", line 3, in <module>\n      main()\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\prepare.py\", line 110, in main\n      args.func(args)\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\prepare.py\", line 45, in inject_requirements\n      ComponentManager(args.project_dir).inject_requirements(\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\core.py\", line 340, in inject_requirements\n      requirements = requirements_manager.load()\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\cmake_component_requirements.py\", line 54, in load\n      with open(self.path, mode='r', encoding='utf-8') as f:\n\n  FileNotFoundError: [Errno 2] No such file or directory:\n  'D:/demo/hello_world/build/component_requires.temp.cmake'\n\nCall Stack (most recent call first):\n  D:/progs/esp/master/esp-idf/tools/cmake/build.cmake:488 (__component_get_requirements)\n  D:/progs/esp/master/esp-idf/tools/cmake/project.cmake:361 (idf_build_process)\n  CMakeLists.txt:6 (project)\n\n\n","stack":"Error: CMake Error at D:/progs/esp/master/esp-idf/tools/cmake/component.cmake:243 (message):\n  Traceback (most recent call last):\n\n    File \"runpy.py\", line 194, in _run_module_as_main\n    File \"runpy.py\", line 87, in _run_code\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\__main__.py\", line 3, in <module>\n      main()\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\prepare.py\", line 110, in main\n      args.func(args)\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\prepare_components\\prepare.py\", line 45, in inject_requirements\n      ComponentManager(args.project_dir).inject_requirements(\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\core.py\", line 340, in inject_requirements\n      requirements = requirements_manager.load()\n    File \"C:\\Users\\demouser\\.espressif\\python_env\\idf4.4_py3.8_env\\lib\\site-packages\\idf_component_manager\\cmake_component_requirements.py\", line 54, in load\n      with open(self.path, mode='r', encoding='utf-8') as f:\n\n  FileNotFoundError: [Errno 2] No such file or directory:\n  'D:/demo/hello_world/build/component_requires.temp.cmake'\n\nCall Stack (most recent call first):\n  D:/progs/esp/master/esp-idf/tools/cmake/build.cmake:488 (__component_get_requirements)\n  D:/progs/esp/master/esp-idf/tools/cmake/project.cmake:361 (idf_build_process)\n  CMakeLists.txt:6 (project)\n\n\n\n\tat m.printError (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27954)\n\tat Socket.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27383)\n\tat Socket.emit (events.js:315:20)\n\tat addChunk (internal/streams/readable.js:309:12)\n\tat readableAddChunk (internal/streams/readable.js:284:9)\n\tat Socket.Readable.push (internal/streams/readable.js:223:10)\n\tat Pipe.onStreamRead (internal/stream_base_commons.js:188:23)","level":"error","timestamp":"2021-08-17T07:12:56.865Z"}
{"message":"cmake failed with exit code 1\r\n","stack":"Error: cmake failed with exit code 1\r\n\n\tat m.printError (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27954)\n\tat Socket.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27383)\n\tat Socket.emit (events.js:315:20)\n\tat addChunk (internal/streams/readable.js:309:12)\n\tat readableAddChunk (internal/streams/readable.js:284:9)\n\tat Socket.Readable.push (internal/streams/readable.js:223:10)\n\tat Pipe.onStreamRead (internal/stream_base_commons.js:188:23)","level":"error","timestamp":"2021-08-17T07:12:56.871Z"}
{"message":"SDK Configuration editor confserver process exited with code: 2","stack":"Error: SDK Configuration editor confserver process exited with code: 2\n\tat m.printError (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27954)\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:27560)\n\tat ChildProcess.emit (events.js:315:20)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","level":"error","timestamp":"2021-08-17T07:12:56.893Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 3221225477","stack":"Error: Spawn exit with non-zero3221225477\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:81919)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-17T07:46:10.123Z"}
{"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:ADF_PATH}'\n\tat Object.accessSync (fs.js:220:3)\n\tat Object.e.accessSync (electron/js2c/asar_bundle.js:5:7989)\n\tat I (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:4296)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:234928\n\tat Generator.next (<anonymous>)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:229683\n\tat new Promise (<anonymous>)\n\tat l (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:229428)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:234751\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:235831\n\tat Generator.next (<anonymous>)\n\tat s (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:233356)\n\tat runMicrotasks (<anonymous>)\n\tat processTicksAndRejections (internal/process/task_queues.js:93:5)","level":"error","timestamp":"2021-08-17T07:46:10.320Z"}
{"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:MDF_PATH}'\n\tat Object.accessSync (fs.js:220:3)\n\tat Object.e.accessSync (electron/js2c/asar_bundle.js:5:7989)\n\tat I (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:4296)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:235124\n\tat Generator.next (<anonymous>)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:229683\n\tat new Promise (<anonymous>)\n\tat l (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:229428)\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:234751\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:235831\n\tat Generator.next (<anonymous>)\n\tat s (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:8:233356)\n\tat runMicrotasks (<anonymous>)\n\tat processTicksAndRejections (internal/process/task_queues.js:93:5)","level":"error","timestamp":"2021-08-17T07:46:10.320Z"}
{"message":"Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger  v0.10.0-esp32-20210721 (2021-07-21-13:35)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:6907\n\tat ChildProcess.exithandler (child_process.js:308:7)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-17T07:46:11.299Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 3221225477","stack":"Error: Spawn exit with non-zero3221225477\n\tat ChildProcess.<anonymous> (c:\\Users\\demouser\\.vscode\\extensions\\espressif.esp-idf-extension-1.1.1\\dist\\extension.js:1:81919)\n\tat ChildProcess.emit (events.js:315:20)\n\tat maybeClose (internal/child_process.js:1048:16)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)","level":"error","timestamp":"2021-08-17T07:54:01.576Z"}
gerekon commented 3 years ago

Hi @SilentButeo2 Have you connected separate USB cable to USB D+/- pins of the chip as described here?

pdecostervgls commented 3 years ago

I got the same issue, although not with a DevKit but a custom build board. It's connected via a Tag-Connect (10 pin) to a Segger J-Link over USB.

gerekon commented 3 years ago

@pdecostervgls If you want to use external Debug Adapter, please follow this steps https://github.com/espressif/openocd-esp32/issues/165#issuecomment-878397446. It is disabled by default

pdecostervgls commented 3 years ago

@gerekon Are you referring to burning the (e)fuses? I am using a prototype board made by our electrical engineer, and I believe its a ESP32, but he's on vacation and I'm not sure i'd be comfortable with doing something irreversible.

Mind you, the programming and debugging used to work a few weeks ago with Eclipse, so I am not sure if its neccesary

SilentButeo2 commented 3 years ago

Yes, I've changed the 0 ohm resistors to switch from UART to GPIO18/19.

Currently I've switch to the Eclipse debug setup and there, I have made (after a lot of trial and error) this to work (not yet stable, but it seems to work)

gerekon commented 3 years ago

Yes, I've changed the 0 ohm resistors to switch from UART to GPIO18/19.

@SilentButeo2 Do I understand correctly that you use USB Serial/JTAG Controller Console instead of the default chip's HW UART? And flashing via USB Serial/JTAG Controller Console works ok?

BTW, in order to narrow down possible problem's causes. Can I ask you to reproduce the problem w/o VsCode?

  1. Flash blink example.
  2. Run OpenOCD openocd -f board/esp32c3-builtin.cfg
  3. Create gdbinit file with the following contents
    target remote :3333
    mon reset halt
    flushregs
    b app_main
    c
  4. Run GDB riscv32-esp-elf-gdb -x gdbinit build/blink.elf
  5. You should stop at app_main
gerekon commented 3 years ago

Tag-Connect (10 pin) to a Segger J-Link over USB. and I believe its a ESP32

@pdecostervgls According to your message you use SEGGER JLink as debug adapter with ESP32 (not ESP32-C3). Am I right? Here we are talking about ESP32-C3 builltin JTAG adapter. So I do not understand how you can see the problem described at the beginning of the topic.

gerekon commented 3 years ago

@pdecostervgls If you have a problem with ESP32 debugging you can create separate ticket in OpenOCD repo. https://github.com/espressif/openocd-esp32

nanshanISCK commented 5 months ago

I can start OpenOCD normally and then download binary files using JTAG, but if I press F5 to debug, the following error will be reported 1713000590299