-
-
Notifications
You must be signed in to change notification settings - Fork 4
6. Building and Flashing the LED Example
Achim Pieters edited this page Oct 17, 2024
·
1 revision
- Start the Docker Container:
docker run -it -v ~/esp32-homekit-demo:/project -w /project espressif/idf:v5.2.2
- Navigate to the LED Example:
cd examples/led
- Set the Target to ESP32:
idf.py set-target esp32
- Open the Configuration Menu:
idf.py menuconfig
- Configure Wi-Fi Settings:
- Go to Example Configuration.
- Set your Wi-Fi SSID and Password.
- Save and exit the configuration menu.
- Build the Application:
idf.py build
- Wait for the build process to complete.
- Open a New Terminal Window on Your Mac.
- Navigate to the LED Example Directory:
cd esp32-homekit-demo/examples/led
- Erase the Flash Memory:
esptool.py erase_flash
- Flash the Compiled Code:
esptool.py --chip esp32 --port /dev/tty.usbserial-XXXXXXXX --baud 460800 write_flash -z 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/esp32-homekit-demo.bin
- Replace /dev/tty.usbserial-XXXXXXXX with your device's port name.
- Monitor the Serial Output (Optional):
screen /dev/tty.usbserial-XXXXXXXX 115200
- Press
Ctrl+A
followed byK
to exit the screen session.