Update firmware Makefile

This commit is contained in:
Lauri Võsandi 2021-07-11 21:21:11 +03:00
parent a1180d19fa
commit b00c81b1de

View File

@ -1,8 +1,8 @@
NAME=esp8266-20180511-v1.9.4.bin NAME=esp8266-1m-20210418-v1.15.bin
flash: flash:
wget -c http://micropython.org/resources/firmware/${NAME} wget -c http://micropython.org/resources/firmware/${NAME}
esptool.py -p /dev/ttyUSB0 write_flash 0 ${NAME} esptool.py -p /dev/ttyUSB0 write_flash --flash_size=1MB 0 ${NAME}
erase: erase:
esptool.py -p /dev/ttyUSB0 erase_flash esptool.py -p /dev/ttyUSB0 erase_flash
@ -15,3 +15,9 @@ upload:
console: console:
echo "Ctrl-A + Ctrl-Q to close Picocom" echo "Ctrl-A + Ctrl-Q to close Picocom"
picocom -b115200 /dev/ttyUSB0 picocom -b115200 /dev/ttyUSB0
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