This commit is contained in:
ollo 2016-06-18 19:11:52 +02:00
parent c19d33d24f
commit 07852a6f25
3 changed files with 5 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -9,6 +9,8 @@ if [ $# -ne 1 ]; then
fi fi
DEVICE=$1 DEVICE=$1
#BAUD="--baud 57600"
#BAUD="--baud 921600"
# check the serial connection # check the serial connection
@ -23,11 +25,12 @@ if [ ! -f esptool.py ]; then
exit 1 exit 1
fi fi
sudo ./esptool.py --port /dev/$DEVICE read_mac ./esptool.py --port /dev/$DEVICE $BAUD read_mac
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Error reading the MAC -> set the device into the bootloader!" echo "Error reading the MAC -> set the device into the bootloader!"
exit 1 exit 1
fi fi
sudo ./esptool.py --port /dev/$DEVICE write_flash 0x00000 nodemcu-master-bit,enduser_setup,file,gpio,node,rtcfifo,rtcmem,rtctime,sntp,spi,tmr,uart,wifi,ws2812-integer.bin #./esptool.py --port /dev/$DEVICE $BAUD write_flash 0x00000 nodemcu-master-enduser_setup,file,gpio,net,node,rtcfifo,rtcmem,rtctime,sntp,spi,tmr,uart,wifi,ws2812-integer.bin
./esptool.py --port /dev/ttyUSB0 $BAUD write_flash 0x00000 0x00000.bin 0x10000 0x10000.bin