-
Notifications
You must be signed in to change notification settings - Fork 233
Build instructions ESP32
Maxim Kulkin edited this page Apr 12, 2019
·
1 revision
- Initialize and sync all submodules (recursively):
git submodule update --init --recursive
-
Copy wifi.h.sample -> wifi.h and edit it with correct WiFi SSID and password.
-
Install esp-idf by following instructions on esp-idf project page. At the end you should have xtensa-esp32-elf toolchain in your path and IDF_PATH environment variable pointing to esp-idf directory.
-
Configure project:
make -C examples/esp32/led menuconfig
There are many settings there, but at least you should configure "Serial flasher config -> Default serial port". Also, check "Components -> HomeKit" menu section.
- Build example:
make -C examples/esp32/led all
- To prevent any effects from previous firmware (e.g. firmware crashing right at start), highly recommend to erase flash:
make -C examples/esp32/led erase_flash
- Upload firmware to ESP32:
make -C examples/esp32/led flash
make -C examples/esp32/led monitor