How to build - thilo-hub/Lua-RTOS-ESP32 GitHub Wiki

  1. Install ESP32 toolchain for your desktop platform. Please, follow the instructions provided by ESPRESSIF:

  2. Clone esp-idf repository from ESPRESSIF:

    git clone --recursive https://github.com/espressif/esp-idf.git
    
  3. Clone Lua RTOS repository:

    git clone --recursive https://github.com/whitecatboard/Lua-RTOS-ESP32
    
  4. 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
    
  5. 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
  6. 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.

  7. 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