Files
NodeMCU_Lua/WIFI repeater/zflash.sh
2019-12-01 12:46:51 +01:00

31 lines
562 B
Bash
Executable File

#!/bin/bash
#Petit script pour flasher facilement les NodeMCU avec le firmware WIFI repeater
#ATTENTION: c'est pour ma structure, il faudra donc l'adapter
#zf191201.1243
esptool_path='../Tools/esptool-master'
#test si l'argument est vide
if [ -z "$1" ]
then
echo -e "\nSyntax:
./zflash.sh go
"
exit
fi
echo ---------- start zflash.sh
python $esptool_path/esptool.py erase_flash
sleep 2
python $esptool_path/esptool.py write_flash -fs 4MB -ff 80m -fm dio 0x00000 0x00000.bin 0x02000 0x02000.bin
sleep 2
screen /dev/cu.wchusbserial1410 115200