Skip to content

Downloading and compiling for ESP32

briand edited this page Aug 21, 2021 · 4 revisions

Requirements

You will need VSCode with PlatformIO extension enabled. You will also need an ESP32 device (find it online from 4 USD). Follow instructions for installing drivers in your environment.

Downloading

$ git clone https://github.com/briand-hub/toresp32.git

WARNING: always refer to the latest release in order to have a stable and working code! For example:

$ git clone https://github.com/briand-hub/toresp32.git -b v1.0.0

Compiling

Open the download folder VSCode and wait PlatformIO to be ready. Open the file include/BriandDefines.hxx if you wish to change some settings. All the code is very well commented, feel free to make any change if you wish. On VSCode click the PlatformIO icon, then click "Build". The first compilation will take a lot more because IDF libraries need to compile too.

Uploading

On VSCode click the PlatformIO then click "Upload" or "Upload and monitor".

Other platforms: ESP32-S2 or ESP32-WRover

SPI-RAM enabled devices could be used with increased performances. sdkoconfig files are provided for those platforms, just compile with PlatformIO for the right device and always take a look to platformio.ini file for setting the right platform/chip.

Clone this wiki locally