$ pip3 install esptool
$ esptool.py version
esptool.py v3.2
3.2
git clone -b v2.1.0 https://github.com/espressif/ESP8266_NONOS_SDK/
cd ESP8266_NONOS_SDK/bin
https://www.dropbox.com/s/i43cgo0bi89fxbu/boot_v1.6a.bin?dl=0
- Connect the module to USB-serial adapter
- Retrieve serial port
- Run shell script below
#!/bin/sh
port="/dev/tty.usbserial-DJ00LQLZ"
echo "Updating ESP-WROOM-02 Shield ESP8266 firmware (port:" $port ")"
read -p "Reset with flash mode (IO0 = Low). Press [Enter] key to continue."
esptool.py --port $port --chip esp8266 --baud 115200 write_flash \
0x000000 ./boot_v1.6a.bin \
0x001000 ./at/1024+1024/user1.2048.new.5.bin \
0x1fc000 ./esp_init_data_default_v08.bin \
0xfe000 ./blank.bin \
0x1fe000 ./blank.bin
echo "Update completed."