If you don't have ESP-IDF installed see Install ESP-IDF
- cd <project_directory>
- python setup.py
- Settings -> Build, Execution, Deployment -> Toolchains
- Add (Alt + Insert) -> MinGW
- Name: Xtensa ESP32
- Add environment -> From file
- Environment file: \esp32-cpp-template\espidf_source.bat
- Settings -> Build, Execution, Deployment -> CMake
- Delete (Alt + Delete) all profiles.
- Add (Alt + Insert)
- Toolchain: XTensa ESP32
- (Optional) Repeat 8. and 9. for all the profiles you need.
- Apply -> OK
- View -> Tool Windows -> Terminal (Alt + F12)
.\idf.bat menuconfig
- New Predefined Session (It's an arrow pointing down next to Local in the Terminal window. It is only visible if you're mouse is hovering on the Terminal window.)
- Command Prompt
.\idf.bat menuconfig
- Under Run / Debug Configurations in the top right corner, select Flash.
- Build the configuration
- Configuration -> Edit
- Copy the 'flash' configuration by selecting it and clicking Copy Configuration (Ctrl + D)
- Name: flash_and_monitor
- Executable: \esp32-cpp-template\flash_and_monitor.bat
- Program arguments: monitor -p
- Working directory: \esp32-cpp-template\
- Environment variables: IDF_PATH=C:\path\to\esp-idf
- Check 'Emulate terminal in the output console'.
- Press the Play button to flash and monitor.
cd <esp-idf directory>
mkdir esp
cd esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
powershell -ExecutionPolicy Bypass -File install.ps1
python <installation directory>\esp\esp-idf\tools\idf_tools.py install-python-env