-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Kaspars Dambis edited this page Oct 27, 2018
·
4 revisions
- Add a wireless switch functionality and enable deep sleep. ESP8266 can go to deep sleep and pull
GPIO16low when the sleep timer is up. Connect GPIO16 toRESET.
Flash the latest firmware revision 3.0.
Download the latest ESP8266 SDK which includes the firmware:
wget https://github.com/espressif/ESP8266_NONOS_SDK/archive/v3.0.zip
unzip v3.0.zip
cd ESP8266_NONOS_SDK-3.0
Now flash the firmware to appropriate memory locations on the chip memory:
esptool.py --port=/dev/tty.SLAB_USBtoUART write_flash --flash_size 2MB-c1 \
0x00000 bin/boot_v1.7.bin \
0x01000 bin/at/1024+1024/user1.2048.new.5.bin \
0xfe000 bin/blank.bin \
0x1fc000 bin/esp_init_data_default_v08.bin \
0x1fb000 bin/blank.bin \
0x1fe000 bin/blank.bin
where /dev/tty.SLAB_USBtoUART is path to your USB to UART device. It is important to specify the flash size --flash_size 2MB-c1 or it will fail to set the correct memory map, with the following error:
mismatch map 5,spi_size_map 3
system_partition_table_regist fail
See this issue for additional information and debugging.