-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathzflash-esp01.sh
More file actions
executable file
·37 lines (26 loc) · 1.08 KB
/
zflash-esp01.sh
File metadata and controls
executable file
·37 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#Petit script pour flasher facilement les ESP-01 (les petit avec 1MB) avec un firmware
#ATTENTION: c'est pour ma structure, il faudra donc l'adapter
#zf200720.1838
#test si l'argument est vide
if [ -z "$1" ]
then
echo -e "\nSyntax:
Pour le dernier firmware à la mode:
./zflash-esp01.sh ../../Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.bin
./zflash-esp01.sh ../../Firmware/nodemcu-master-11-modules-2019-12-15-16-45-47-float.bin
./zflash-esp01.sh ../../Firmware/nodemcu-master-18-modules-2019-12-17-20-28-32-float.bin
./zflash-esp01.sh ../../Firmware/nodemcu-master-12-modules-2019-12-21-11-05-58-float.bin
./zflash-esp01.sh ../../Firmware/nodemcu-master-19-modules-2019-12-31-16-40-12-float.bin
Pour l'ancien qui supporte encore le DS18B20:
./zflash-esp01.sh ../../Firmware/nodemcu-master-20-modules-2019-06-01-12-50-39-float.bin
"
exit
fi
cd ./Tools/esptool-master
python esptool.py erase_flash
sleep 2
#python esptool.py write_flash -fm dio 0x00000 $1
python esptool.py write_flash -fm dout 0x00000 $1
sleep 2
screen /dev/cu.wchusbserial1410 115200