Compile on the command line with PlatformIO Core
Step by Step
- Install PlatformIO Core (PIO).
- Clone the source code repository. You really have to clone the source code repository. Do not download and extract a source ZIP file. During the build process the Git hash is embedded into the firmware. If you merely download and extract the source ZIP file a build error will occur, as no Git status can be determined.
- Adjust the serial port in file
platformio_override.ini
to your setup. The setting occurs twice:upload_port
monitor_port
- Build the firmware:
platformio run -e generic_esp32
(chose a suitable PIO environment) - Upload to ESP32 module:
platformio run -e generic_esp32 -t upload
Other Popular PlatformIO Tasks
* Clean the sources: `platformio run -e generic_esp32 -t clean`
* Erase flash: `platformio run -e generic_esp32 -t erase`