From aea5608b7145cb2cfd80d4b90a30143494af56fa Mon Sep 17 00:00:00 2001 From: C3MA Date: Fri, 8 Mar 2019 21:30:21 +0100 Subject: [PATCH] Flashing first the old firmware --- index.html | 2 +- os/flash.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a6caac6..a938ea3 100644 --- a/index.html +++ b/index.html @@ -19,4 +19,4 @@
$ADDITIONAL_LINE - \ No newline at end of file + diff --git a/os/flash.sh b/os/flash.sh index b79f680..e505669 100755 --- a/os/flash.sh +++ b/os/flash.sh @@ -31,7 +31,10 @@ if [ $? -ne 0 ]; then echo "Error reading the MAC -> set the device into the bootloader!" exit 1 fi - +echo "Flashing the old one" +./esptool.py --port /dev/$DEVICE $BAUD write_flash 0x00000 0x00000.bin 0x10000 0x10000.bin +sleep 1 +echo "Flashing the new" ./esptool.py --port /dev/$DEVICE $BAUD write_flash -fm dio 0x00000 nodemcu2.bin # 0x3fc000 esp_init_data_default_v08.bin 0x07e000 blank.bin 0x3fe000 blank.bin #./esptool.py --port /dev/$DEVICE $BAUD write_flash 0x00000 0x00000.bin 0x10000 0x10000.bin