-
Notifications
You must be signed in to change notification settings - Fork 332
Description
OS
Windows
Operating System version
Windows 11
Visual Studio Code version
1.99.3
ESP-IDF version
5.1.2
Python version
3.11.2
Doctor command output
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.26100
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\libnvvp;C:\Program Files\Python311\Scripts;C:\Program Files\Python311;C:\Program Files\Common Files\Oracle\Java\javapath;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\dotnet;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\PuTTY;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files\nodejs;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files (x86)\IVI Foundation\IVI\Bin;C:\Program Files\IVI Foundation\IVI\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\NVIDIA Corporation\Nsight Compute 2025.1.1;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\AppData\Local\Microsoft\WindowsApps;C:\AppData\Local\GitHubDesktop\bin;C:\Program Files\mitmproxy\bin;C:\Program Files\heroku\bin;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\AppData\Roaming\npm;
System environment variable PYTHON
undefined
Visual Studio Code Remote name undefined
Visual Studio Code version 1.99.3
Visual Studio Code language en
Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.9.1
Workspace folder c:\Projects\ChessUpTwo\ESP32
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) C:/Espressif/frameworks/esp-idf-v5.1.2/
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) ${env:HOMEKIT_PATH}
Custom extra paths C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin;C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin;C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin;C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin;C:\Espressif\tools\ninja\1.10.2;C:\Espressif\tools\idf-exe\1.0.3;C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\esp-rom-elfs\20230320
ESP-IDF extra vars
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\share\openocd\scripts
IDF_CCACHE_ENABLE: 1
ESP_ROM_ELF_DIR: C:\Espressif\tools\esp-rom-elfs\20230320
IDF_PYTHON_ENV_PATH: C:\Espressif\python_env\idf5.1_py3.11_env
ESP_IDF_VERSION: 5.1
PATH: C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin;C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin;C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin;C:\Espressif\tools\esp-clang\15.0.0-23786128ae\esp-clang\bin;C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin;C:\Espressif\tools\ninja\1.10.2;C:\Espressif\tools\idf-exe\1.0.3;C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\python_env\idf5.1_py3.11_env\Scripts;C:/Espressif/frameworks/esp-idf-v5.1.2/tools;%PATH%
IDF_DEACTIVATE_FILE_PATH: C:\Users\RICHAR~1\AppData\Local\Temp\tmpo3ec5_e8idf_39064
User extra vars (idf.customExtraVars)
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230208/openocd-esp32/share/openocd/scripts
IDF_CCACHE_ENABLE: 1
ESP_ROM_ELF_DIR: C:\Espressif\tools\esp-rom-elfs\20230320/
System python Path (idf.pythonInstallPath) C:\Espressif\tools\idf-python\3.11.2\python.exe
Virtual environment Python path (computed) C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe
Serial port (idf.port) COM5
OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg
ESP-IDF Tools Path (idf.toolsPath) C:\Espressif
Git Path (idf.gitPath) C:\Espressif\tools\idf-git\2.39.2\cmd\git.exe
Notification Mode (idf.notificationMode) All
Flash type (idf.flashType) UART
Flash partition to use (idf.flashPartitionToUse) all
-------------------------------------------------------- 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-HomeKit Path (idf.espHomeKitSdkPath) false
Access to ESP-IDF Custom extra paths
Access to C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin: true
Access to C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: true
Access to C:\Espressif\tools\cmake\3.24.0\bin: true
Access to C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: true
Access to C:\Espressif\tools\ninja\1.10.2: true
Access to C:\Espressif\tools\idf-exe\1.0.3: true
Access to C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: true
Access to C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true
Access to C:\Espressif\tools\esp-rom-elfs\20230320: true
Access to System python Path (idf.pythonInstallPath) true
Access to Virtual environment Python path (computed) true
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path (idf.toolsPath) true
-------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
Spaces in system environment Path true
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-HomeKit-SDK Path (idf.espHomeKitSdkPath) false
Spaces in ESP-IDF Custom extra paths
Spaces in C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin: false
Spaces in C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: false
Spaces in C:\Espressif\tools\cmake\3.24.0\bin: false
Spaces in C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: false
Spaces in C:\Espressif\tools\ninja\1.10.2: false
Spaces in C:\Espressif\tools\idf-exe\1.0.3: false
Spaces in C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: false
Spaces in C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false
Spaces in C:\Espressif\tools\esp-rom-elfs\20230320: false
Spaces in System python Path (idf.pythonInstallPath) false
Spaces in Virtual environment Python path (computed) false
Spaces in ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.39.2.windows.1
ESP-IDF version 5.1.2
Python version 3.11.2
Python's pip version 25.0.1
-------------------------------------------------- Project configuration settings ----------------------------------------------------------
-------------------------------------------------- Python packages in Virtual environment Python path (computed) ---------------------------
aiohttp version: 3.9.3
aiosignal version: 1.3.1
annotated-types version: 0.7.0
attrs version: 23.1.0
bidict version: 0.23.1
bitarray version: 2.8.1
bitstring version: 4.1.2
bokeh version: 2.4.3
CacheControl version: 0.13.1
cairocffi version: 1.6.1
CairoSVG version: 2.7.1
cattrs version: 23.1.2
certifi version: 2023.7.22
cffi version: 1.16.0
cfgv version: 3.4.0
chardet version: 5.2.0
charset-normalizer version: 3.3.0
click version: 8.1.8
colorama version: 0.4.6
construct version: 2.10.70
contextlib2 version: 21.6.0
cortex-profiler version: 1.0.0
crcmod version: 1.7
cryptography version: 39.0.2
cssselect2 version: 0.7.0
defusedxml version: 0.7.1
distlib version: 0.3.8
ecdsa version: 0.18.0
esp-coredump version: 1.13.1
esp-debug-backend version: 1.0.3
esp-idf-kconfig version: 1.5.0
esp-idf-monitor version: 1.5.0
esp_idf_panic_decoder version: 1.3.0
esp-idf-size version: 1.6.1
esptool version: 4.8.1
filelock version: 3.12.4
freertos-gdb version: 1.0.4
freetype-py version: 2.4.0
frozenlist version: 1.4.1
h11 version: 0.14.0
identify version: 2.6.0
idf-component-manager version: 2.1.2
idna version: 3.4
intelhex version: 2.3.0
Jinja2 version: 3.1.2
jsonref version: 1.1.0
kconfiglib version: 14.1.0
linkermapviz version: 0.1.0
lxml version: 5.2.1
markdown-it-py version: 3.0.0
MarkupSafe version: 2.1.3
mdurl version: 0.1.2
msgpack version: 1.0.7
multidict version: 6.0.5
nodeenv version: 1.9.1
numpy version: 1.26.1
outcome version: 1.3.0.post0
packaging version: 24.2
Pillow version: 10.1.0
pip version: 25.0.1
platformdirs version: 3.11.0
pre-commit version: 3.8.0
psycopg2 version: 2.9.10
pycairo version: 1.26.0
pyclang version: 0.6.0
pycparser version: 2.21
pydantic version: 2.8.2
pydantic_core version: 2.20.1
pydantic-settings version: 2.4.0
pyelftools version: 0.29
pygdbmi version: 0.9.0.2
Pygments version: 2.17.2
pyparsing version: 3.0.9
pyserial version: 3.5
PySocks version: 1.7.1
python-dotenv version: 1.0.1
python-engineio version: 4.9.0
python-socketio version: 5.11.1
pywin32 version: 308
PyYAML version: 6.0.1
reedsolo version: 1.7.0
reportlab version: 4.1.0
requests version: 2.32.3
requests-cache version: 1.1.0
requests-file version: 1.5.1
requests-toolbelt version: 1.0.0
rich version: 13.7.0
rlPyCairo version: 0.3.0
ruamel.yaml version: 0.18.10
ruamel.yaml.clib version: 0.2.12
schema version: 0.7.5
selenium version: 4.15.2
setuptools version: 71.0.0
simple-websocket version: 1.0.0
SimpleWebSocketServer version: 0.1.2
six version: 1.16.0
sniffio version: 1.3.0
sortedcontainers version: 2.4.0
squarify version: 0.4.3
svglib version: 1.5.1
tinycss2 version: 1.2.1
tornado version: 6.3.3
tqdm version: 4.66.1
trio version: 0.23.1
trio-websocket version: 0.11.1
typing_extensions version: 4.8.0
url-normalize version: 1.4.3
urllib3 version: 1.26.16
virtualenv version: 20.26.3
webencodings version: 0.5.1
websocket-client version: 1.6.3
websockets version: 11.0.3
windows-curses version: 2.3.1
wsproto version: 1.2.0
yarl version: 1.9.4
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements are satisfied.
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Python requirements are satisfied.
---------------------------------------------------- Visual Studio Code launch.json --------------------------------------------------------
{
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter",
"initCommands": [
"set remote hardware-watchpoint-limit 1",
"mon reset halt",
"maintenance flush register-cache",
"thb app_main",
"source ${workspaceFolder}/build/prefix_map_gdbinit"
]
},
{
"type": "espidf",
"name": "Launch",
"request": "launch"
}
]
}
---------------------------------------------------- Visual Studio Code c_cpp_properties.json ----------------------------------------------
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "${config:idf.toolsPathWin}\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe",
"compileCommands": "${config:idf.buildPath}/compile_commands.json",
"includePath": [
"${config:idf.espIdfPathWin}/components/",
"${workspaceFolder}/"
],
"browse": {
"path": [
"${config:idf.espIdfPathWin}/components",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}
----------------------------------------------------------- Logfile -----------------------------------------------------------------
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:53:29.135Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:53:29.139Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:53:52.163Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:53:52.168Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\ndebug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:54:25.818Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:54:25.822Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:54:41.558Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat ChildProcess._handle.onexit (node:internal/child_process:304:5)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:54:41.564Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:55:33.811Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:55:33.815Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:57:09.938Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat ChildProcess._handle.onexit (node:internal/child_process:304:5)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:57:09.940Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ debug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:58:05.485Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:58:05.497Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\ndebug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T14:58:30.590Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat ChildProcess._handle.onexit (node:internal/child_process:304:5)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T14:58:30.592Z"}
{"message":"OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n❌ Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\ndebug_level: 2\r\nError: Debug Adapter has to be specified, see "adapter driver" command\r\n\r\n","stack":"Error: OpenOCD server failed to start because of Error: Debug Adapter has to be specified, see "adapter driver" command\n\tat Socket. (\dist\extension.js:2:1569380)\n\tat Socket.emit (node:events:518:28)\n\tat addChunk (node:internal/streams/readable:561:12)\n\tat readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n\tat Readable.push (node:internal/streams/readable:392:5)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-05-01T15:04:18.227Z"}
{"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n\tat ChildProcess. (\dist\extension.js:2:1570073)\n\tat ChildProcess.emit (node:events:518:28)\n\tat maybeClose (node:internal/child_process:1104:16)\n\tat Socket. (node:internal/child_process:456:11)\n\tat Socket.emit (node:events:518:28)\n\tat Pipe. (node:net:343:12)","category":"OpenOCDManager close","level":"error","timestamp":"2025-05-01T15:04:18.231Z"}
{"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RichardAllen\AppData\Local\Programs\Microsoft VS Code\${env:ADF_PATH}'\n\tat Object.accessSync (node:fs:247:11)\n\tat t.accessSync (node:electron/js2c/node_init:2:9332)\n\tat je (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1433635)\n\tat c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1673089\n\tat Da (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1674258)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1909810","category":"src utils canAccessFile","level":"error","timestamp":"2025-05-01T15:07:53.512Z"}
{"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RichardAllen\AppData\Local\Programs\Microsoft VS Code\${env:MDF_PATH}'\n\tat Object.accessSync (node:fs:247:11)\n\tat t.accessSync (node:electron/js2c/node_init:2:9332)\n\tat je (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1433635)\n\tat c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1673267\n\tat Da (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1674258)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1909810","category":"src utils canAccessFile","level":"error","timestamp":"2025-05-01T15:07:53.512Z"}
{"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RichardAllen\AppData\Local\Programs\Microsoft VS Code\${env:ESP_MATTER_PATH}'\n\tat Object.accessSync (node:fs:247:11)\n\tat t.accessSync (node:electron/js2c/node_init:2:9332)\n\tat je (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1433635)\n\tat c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1673359\n\tat Da (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1674258)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1909810","category":"src utils canAccessFile","level":"error","timestamp":"2025-05-01T15:07:53.512Z"}
{"message":"Cannot access filePath: ${env:HOMEKIT_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RichardAllen\AppData\Local\Programs\Microsoft VS Code\${env:HOMEKIT_PATH}'\n\tat Object.accessSync (node:fs:247:11)\n\tat t.accessSync (node:electron/js2c/node_init:2:9332)\n\tat je (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1433635)\n\tat c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1673455\n\tat Da (c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1674258)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async c:\Users\RichardAllen\.vscode\extensions\espressif.esp-idf-extension-1.9.1\dist\extension.js:2:1909810","category":"src utils canAccessFile","level":"error","timestamp":"2025-05-01T15:07:53.512Z"}
Extension
No response
Description
When trying to fix OpenOCD configurations, often the configuration won't work, but the IDE takes ~30 seconds to figure out the connection won't work, even when the process has died. Ex:
Console(at this point, OpenOCD has come and gone, there is no use waiting longer):
For assistance with OpenOCD errors, please refer to our Troubleshooting FAQ: https://github.com/espressif/openocd-esp32/wiki/Troubleshooting-FAQ
OpenOCD Exit with non-zero error code 1
[Stopped] : OpenOCD Server
~20 seconds later:
Debug Message
Normally, I would paste the OpenOCD error here, but this ticket isn't about OpenOCD, it's about how the IDE hangs when OpenOCD fails. Please let me know if you need anything else.
Other Steps to Reproduce
Try setting OpenOCD for builtin-JTAG on S2 or S3, then unplug all ESP microcontrollers.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.