-
Notifications
You must be signed in to change notification settings - Fork 223
How to build
Thomas E. Horner edited this page Mar 12, 2019
·
3 revisions
-
Install ESP32 toolchain for your desktop platform. Please, follow the instructions provided by ESPRESSIF:
-
Clone esp-idf repository from ESPRESSIF:
git clone --recursive https://github.com/espressif/esp-idf.git
-
Clone Lua RTOS repository:
git clone --recursive https://github.com/whitecatboard/Lua-RTOS-ESP32
-
Setup the build environment:
Go to Lua-RTOS-ESP32 folder:
cd Lua-RTOS-ESP32
Edit the env file and change PATH, IDF_PATH, LIBRARY_PATH, PKG_CONFIG_PATH, CPATH for fit to your installation locations.
Now do:
source ./env
-
Set the default configuration for your board:
Board Run this command WHITECAT ESP32 N1 make SDKCONFIG_DEFAULTS=WHITECAT-ESP32-N1 defconfig ESP32 CORE make SDKCONFIG_DEFAULTS=ESP32-CORE-BOARD defconfig ESP32 THING make SDKCONFIG_DEFAULTS=ESP32-THING defconfig GENERIC make SDKCONFIG_DEFAULTS=GENERIC defconfig -
Change the default configuration:
You can change the default configuration doing:
make menuconfig
Remember to check the device name for your board's USB-TO-SERIAL adapter under the "Serial flasher config / Default serial port" category.
-
Compile:
Build Lua RTOS, and flash it to your ESP32 board:
make flash
Flash the spiffs file system image to your ESP32 board:
make flashfs