I was surprised, how smooth the installation into a vanilla system was. The only snafu was related to the serial monitor problem introduced in Espressif IDF 0.6.0. My original workaround works in older Windows 10 environment, but today I got the latest Windows 10 upgrade and the CMD was replaced with powershell and a new workaround is required.
The bottom line is,
there are no software setups required for the debugger. Once it is connected, it just works.
My setup has the following components
- Windows 10 Pro, version 20H2
- VSC 1.52.1
- Espressif IDF 0.6.0
- ESP-IDF 4.1
- FT2232HL (ESP-Prog used to work too)
- ESP32 Pico D4
In half an hour, you can start the debugging with the following steps
1. Debugger Interface Driver
- If Device Manager shows two Dual RS232-HS as Other devices, the FT2232HL driver has to be replaced
- Download the latest Zadig version from
https://zadig.akeo.ie/
- Start Zadig, in Options menu, select List All Devices, select Dual RS232-HS (interface 0)
- Select Install Driver to replace the FTDI driver with WinUSB driver
2. Python
- Install latest Python version from
https://www.python.org/downloads/
- Disable path length limit because ESP IDF VSCE will use a lot of PATH items
3. Git
- Download latest Git from
https://gitforwindows.org/
- Install Git with the default settings, optionally change the default editor
4. Visual Studio Code
- Install VSC from
https://code.visualstudio.com/
- Start VSC, in Extensions (Ctrl-Shift-X), enter "esp" in search field
- Select Espressif IDF, select Install
- In Extensions (Ctrl-Shift-X), select ESP-IDF Explorer, select EXPRESS option
- There should be no need to change any of these options
- Select Install
- If you are repeating this, use F1 or Ctrl-Shift-P to select command ESP-IDF: Configure ESP-IDF extension
5. Pip Update
- If the ESP EDF Extension configuration complaints about pip version it can be updated
- On Command terminal (CMD), enter "python -m pip install --upgrade pip"
6. Select a Template
- Open Command Palette (F1 or Ctrl-Shift-P), select ESP-IDF: Show Examples Projects
- In get-started, select hello_world, select Create project using example hello_world
- Save the project folder in your place, such as Documents\ESP32\Projects\Hello_World
7. Target System
- Open Command Palette, select ESP-IDF: Select port to use
8. Compile and Flash
- Use the ESP-IDF Build project icon on bottom of the VSC window to start compilation
- Use the ESP-IDF Flash device icon on bottom of the VSC window to start flashing
- On first time it asks to select the flash method, select UART
9. Monitor device
- Use the ESP-IDF Monitor device icon on bottom of the VSC window to start serial monitoring
- With Espressif IDF 0.6.0, this is not working
- In the workaround, select Terminal Menu, select New Terminal to start CMD
- In the terminal, enter C:\Users\name\esp\esp-idf\export && idf.py -p comX monitor
- Where name = user name, comX = com port number
- Note: The latest update of Windows 10 uses powershell instead of CMD.
There the multicommand separator is semicolon instead of double ampersand
10. Start debugger
- In the Run menu, select Start Debugging (F5)
Just wondering, why Espressif is not publishing these simplified steps
