- totalement remanié la structure de mon dépôt, cela commençait à être trop le foutoire ;-(

This commit is contained in:
Christian Zufferey
2018-11-18 10:36:16 +01:00
parent 3bfc2949d2
commit b2b632a6cd
61 changed files with 56 additions and 1214 deletions

View File

@@ -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