To buld the ESP32 firmware:
- Install the ESP32 toolchain for your OS. You do not need to install the ESP-IDF -- that happens automatically in the next step.
- For Linux: https://esp-idf.readthedocs.io/en/v3.2/get-started/linux-setup.html
- For Windows: https://esp-idf.readthedocs.io/en/v3.2/get-started/windows-setup.html
- For OSX: https://esp-idf.readthedocs.io/en/v3.2/get-started/macos-setup.html
-
Pull in the ESP-IDF, MicroPython, and other dependencies:
git submodule update --init --recursive
-
Build mpy_cross:
cd firmware/esp32/components/micropython/micropython/mpy-cross/ && make && cd ../../../..
-
Optionally configure the serial port that your badge appears on (under Serial Flasher Config):
make menuconfig
-
Build it:
make -j5
-
Flash it:
make flash
The EFM8 firmware has only been built inside Simplicity Studio.