2021-07-21 09:36:18 +00:00
|
|
|
NAME=esp8266-1m-20210618-v1.16.bin
|
2018-12-23 21:28:40 +00:00
|
|
|
|
|
|
|
flash:
|
|
|
|
wget -c http://micropython.org/resources/firmware/${NAME}
|
2021-07-11 18:21:11 +00:00
|
|
|
esptool.py -p /dev/ttyUSB0 write_flash --flash_size=1MB 0 ${NAME}
|
2018-12-23 21:28:40 +00:00
|
|
|
|
|
|
|
erase:
|
|
|
|
esptool.py -p /dev/ttyUSB0 erase_flash
|
|
|
|
|
|
|
|
upload:
|
|
|
|
ampy -p /dev/ttyUSB0 put picoweb.py
|
|
|
|
ampy -p /dev/ttyUSB0 put timezone.py
|
|
|
|
ampy -p /dev/ttyUSB0 put main.py
|
|
|
|
|
|
|
|
console:
|
|
|
|
echo "Ctrl-A + Ctrl-Q to close Picocom"
|
|
|
|
picocom -b115200 /dev/ttyUSB0
|
2021-07-11 18:21:11 +00:00
|
|
|
|
|
|
|
clone_read:
|
|
|
|
esptool.py -p /dev/ttyUSB0 read_flash 0 0x100000 clone.bin
|
|
|
|
|
|
|
|
clone_write:
|
|
|
|
esptool.py -p /dev/ttyUSB0 write_flash --flash_size=1MB 0 clone.bin
|