Download and install the latest Arduino IDE
Windows Installer
from arduino.ccDownload and install Git from git-scm.com
Start
Git GUI
and run through the following steps:Select
Clone Existing Repository
Select source and destination
Sketchbook Directory: Usually
C:/Users/[YOUR_USER_NAME]/Documents/Arduino
and is listed underneath the "Sketchbook location" in Arduino preferences.Source Location:
https://github.com/espressif/arduino-esp32.git
Target Directory:
[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32
Click
Clone
to start cloning the repository
open a
Git Bash
session pointing to[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32
and executegit submodule update --init --recursive
Open
[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools
and double-clickget.exe
When
get.exe
finishes, you should see the following files in the directory
Plug your ESP32 board and wait for the drivers to install (or install manually any that might be required)
Start Arduino IDE
Select your board in
Tools > Board
menuSelect the COM port that the board is attached to
Compile and upload (You might need to hold the boot button while uploading)