Open source FreeRTOS Firmware for ESP8266 and DHT22 sensor with Apple HomeKit support (OTA)
esp-homekit build instructions
Step-by-step esp-homekit SDK flash instructions
git clone --recursive https://github.com/SuperHouse/esp-open-rtos.git
export SDK_PATH=`pwd`/esp-open-rtos;
export ESPPORT=/dev/cu.usbserial-1410;
export FLASH_SIZE=8;
export HOMEKIT_SPI_FLASH_BASE_ADDR=0x7a000;
export HOMEKIT_DEBUG=1;
Erase flash:
esptool.py -p /dev/cu.usbserial-1410 --baud 115200 erase_flash;
Flash the new firmware:
esptool.py -p /dev/cu.usbserial-1410 --baud 115200 write_flash -fs 1MB -fm dout -ff 40m 0x0 firmware_prebuilt/rboot.bin 0x1000 firmware_prebuilt/blank_config.bin 0x2000 firmware_prebuilt/otaboot.bin;
docker-run esp-rtos make -C . ESPPORT=/dev/cu.usbserial-1410 FLASH_SIZE=8 HOMEKIT_SPI_FLASH_BASE_ADDR=0x8c000 HOMEKIT_DEBUG=1 clean
docker-run esp-rtos make -C . ESPPORT=/dev/cu.usbserial-1410 FLASH_SIZE=8 HOMEKIT_SPI_FLASH_BASE_ADDR=0x8c000 HOMEKIT_DEBUG=1 all
sh signing.sh
echo "Sign firmware"
echo "Upload to GitHub and create new release!"
screen /dev/cu.usbserial-1410 115200 –L
- Connect to WiFi SSID with `LCM-`` prefix
- Visit
http://192.168.4.1
- Choose your WiFi access point
- Enter WiFi AC password
- Enter OTA repository:
vlewin/esp-8266-dht22-homekit
- Enter OTA binary:
main.bin
- Click
JOIN
[ ] Update LSM firmware
[ ] Enable OTA firmware update