Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 2.46 KB

BUILD.md

File metadata and controls

44 lines (35 loc) · 2.46 KB

How to build the UFO firmware yourself.

Please be warned that we cannot provide any support or warranty as soon as you upload non-officially released firmware.

get the build environment

getting the latest version

Tested with ESP-IDF version 3.1.1:

git clone --recursive --branch release/v3.1.1 https://github.com/espressif/esp-idf.git
git submodule update 

build settings

run make menuconfig

make menuconfig
  • Serial flasher config --> (COMx) Default serial port e.g. COM4 on Windows (you find on Windows COM port in device manager), /dev/ttyS4 on WSL or /dev/ttyUSB0 on Linux (look at /dev/tty*); you can use speeds up to 921600bps
  • Serial flasher config --> Flash size --> 4 MB
  • Component config --> ESP32-specific --> (10) Task watchdog timeout (seconds)
  • Component config --> ESP32-specific --> Core dump destination --> Flash
  • Component config --> Amazon Web Services IoT Platform --> turn ON [*]
  • Partition table --> Custom parition table --> partitions.csv

useful build commands

executed in the ufo-esp32 folder

  • make menuconfig to create buildenvironment
  • make erase_flash to erase all partitions of the flash
  • make clean to force a fresh build from scratch
  • make -j all just build all with max parallel threads (omit -j in case of compile errors caused by race conditions)
  • make -j all flash monitor build all, flash to UFO, and start monitoring over serial interface
  • make monitor reboots the UFO and monitors output over serial interface