- totalement remanié la structure de mon dépôt, cela commençait à être trop le foutoire ;-(
This commit is contained in:
23
zflash.sh
23
zflash.sh
@@ -1,11 +1,24 @@
|
||||
#!/bin/bash
|
||||
#Petit script pour flasher facilement les NodeMCU
|
||||
#zf181015.1147
|
||||
#Petit script pour flasher facilement les NodeMCU avec un firmware
|
||||
|
||||
#ATTENTION: c'est pour ma structure, il faudra donc l'adapter
|
||||
|
||||
#zf181118.1022
|
||||
|
||||
|
||||
#test si l'argument est vide
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo -e "\nSyntax: ./zflash.sh ../../Firmware/nodemcu-master-13-modules-2018-10-11-16-35-53-float.bin \n\n"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo ---------- start zflash.sh
|
||||
|
||||
cd ./Tools/esptool-master
|
||||
|
||||
python esptool.py erase_flash
|
||||
sleep
|
||||
python esptool.py write_flash -fm dio 0x00000 ../../Firmware/nodemcu-master-13-modules-2018-10-11-16-35-53-float.bin
|
||||
sleep 1
|
||||
sleep 2
|
||||
python esptool.py write_flash -fm dio 0x00000 $1
|
||||
sleep 2
|
||||
screen /dev/cu.wchusbserial1410 115200
|
||||
|
||||
Reference in New Issue
Block a user