ESP-IDF in VSCode and OpenOCD
Posted: Tue Oct 29, 2024 12:36 pm
I have been working for a few days to get ESP-IDF working in VSCode. Followed every tutorial and video on the internet almost, but got it working now.
I have an ESP32-S3 with a dual USB (one UART and one JTAG).
I am now able to flash the module using UART, on either port.
Now I am moving to debugging.
Followed the instructions, installed the USB driver for the embedded JTAG interface, changed the interface in VSCode from UART to JTAG. And clicked flash. Not yet at the debugging. When I do, I get the attached prompt. I say yes to launch, then get the following.
Then I keep getting this in the VSCode notification.
Error: non zero exit code 1 The following Python requirements are not satisfied: Requirement 'setuptools<71.0.1,>=21' was not met. Installed version: 75.3.0 To install the missing packages, please run "install.bat" Diagnostic information: IDF_PYTHON_ENV_PATH: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env Python interpreter used: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe Constraint file: C:\Users\Hassa\.espressif\espidf.constraints.v5.3.txt Requirement files: - C:/Users/Hassa/Desktop/esp-idf/tools\requirements\requirements.core.txt Python being checked: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe ESP-IDF v5.3.1 at ChildProcess.<anonymous> (\dist\extension.js:2:1421636) at ChildProcess.emit (node:events:519:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
I know all these are clearly why I am not able to flash with JTAG, the question is, is there a manual or step by step to fix all this. My assumption would have been that the Extension would have taken care of all of this, but clearly there is a lot of manual setup that I need to do which for the past 2 days I have been. Now I am stuck here.
For example, when I get use install.bat...where and how.
I am not an expert user, first time setting this up.
I have an ESP32-S3 with a dual USB (one UART and one JTAG).
I am now able to flash the module using UART, on either port.
Now I am moving to debugging.
Followed the instructions, installed the USB driver for the embedded JTAG interface, changed the interface in VSCode from UART to JTAG. And clicked flash. Not yet at the debugging. When I do, I get the attached prompt. I say yes to launch, then get the following.
Code: Select all
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
C:\Users\Hassa\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin\openocd.exe
C:\Users\Hassa\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin\openocd.exe
*Flash]
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
adapter speed: 20000 kHz
WARNING: boards/esp32-wrover.cfg is deprecated, and may be removed i
n a future release.
If your board is ESP32-WROVER-KIT, use board/esp32-wrover-kit-1.8v.cfg instead.
Info : auto-selecting first available session tran
sport "jtag". To override use 'transport select <transport>'.
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: unable to open ftdi device with description '*', serial '*' at bus location '*'
❌ C:\Users\Hassa\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "C:\Users\Hassa\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
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
[/OpenOCD]
Flash]
Can't perform JTag flash, because OpenOCD server is not running!
Flash has finished. You can monitor with ESP-IDF: Monitor your device command
non zero exit code 1
The following Python requirements are not satisfied:
Requirement 'setuptools<71.0.1,>=21' was not met. Installed version: 75.3.0
To install the missing packages, please run "install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env
Python interpreter used: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Constraint file: C:\Users\Hassa\.espressif\espidf.constraints.v5.3.txt
Requirement files:
- C:/Users/Hassa/Desktop/esp-idf/tools\requirements\requirements.core.txt
Python being checked: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
ESP-IDF v5.3.1
non zero exit code 1
The following Python requirements are not satisfied:
Requirement 'setuptools<71.0.1,>=21' was not met. Installed version: 75.3.0
To install the missing packages, please run "install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env
Python interpreter used: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Constraint file: C:\Users\Hassa\.espressif\espidf.constraints.v5.3.txt
Requirement files:
- C:/Users/Hassa/Desktop/esp-idf/tools\requirements\requirements.core.txt
Python being checked: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
ESP-IDF v5.3.1
/Flash]
[SDK Configuration Editor]
---------------------------ERROR--------------------------
The following Python requirements are not satisfied:
Requirement 'setuptools<71.0.1,>=21' was not met. Installed version: 75.3.0
To install the missing packages, please run "install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env
Python interpreter used: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Constraint file: C:\Users\Hassa\.espressif\espidf.constraints.v5.3.txt
Requirement files:
- C:/Users/Hassa/Desktop/esp-idf/tools\requirements\requirements.core.txt
Python being checked: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
ESP-IDF v5.3.1
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 1
-----------------------END OF ERROR-----------------------
Then I keep getting this in the VSCode notification.
Error: non zero exit code 1 The following Python requirements are not satisfied: Requirement 'setuptools<71.0.1,>=21' was not met. Installed version: 75.3.0 To install the missing packages, please run "install.bat" Diagnostic information: IDF_PYTHON_ENV_PATH: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env Python interpreter used: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe Constraint file: C:\Users\Hassa\.espressif\espidf.constraints.v5.3.txt Requirement files: - C:/Users/Hassa/Desktop/esp-idf/tools\requirements\requirements.core.txt Python being checked: C:\Users\Hassa\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe ESP-IDF v5.3.1 at ChildProcess.<anonymous> (\dist\extension.js:2:1421636) at ChildProcess.emit (node:events:519:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
I know all these are clearly why I am not able to flash with JTAG, the question is, is there a manual or step by step to fix all this. My assumption would have been that the Extension would have taken care of all of this, but clearly there is a lot of manual setup that I need to do which for the past 2 days I have been. Now I am stuck here.
For example, when I get use install.bat...where and how.
I am not an expert user, first time setting this up.