-
Notifications
You must be signed in to change notification settings - Fork 1
Flashing the Device
-
Connect serial port (RX/TX/GND)
-
Pull IO0 to GND during reset
-
I'm using
/dev/cu.usbserial
in the following commands, this may vary depending on the device you are using. -
Optional - Backup flash: For sockets with 2 MB flash (e.g. obi-socket 2ng gen):
esptool.py --port /dev/cu.usbserial --baud 460800 read_flash 0 2097152 orig_fw.bin
For sockets with 1 MB flash (e.g. BlitzWolf SHP2):
esptool.py --port /dev/cu.usbserial --baud 460800 read_flash 0 1048576 orig_fw.bin
- Erase flash - Don't skip this step, it is important:
esptool.py --port /dev/cu.usbserial --baud 460800 erase_flash
- Flash micropython image:
esptool -p /dev/cu.usbserial --baud 460800 write_flash 0 firmware-combined.bin
If you are getting errors, try a lower baud rate (230400 or 115200).
This firmware image is based on micropython 1.9.4 and already includes Picoweb and umqtt (robust and simple) as frozen byte code.
Now the next step is to continue with the Software Installation