File tree 3 files changed +14
-23
lines changed
3 files changed +14
-23
lines changed Original file line number Diff line number Diff line change 137
137
"systems" : [
138
138
{
139
139
"host" : " x86_64-mingw32" ,
140
- "url" : " https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-3/python-3.7.2.post1-embed-win32 .zip" ,
141
- "archiveFileName" : " python-3.7.2.post1-embed-win32 .zip" ,
142
- "checksum" : " SHA-256:8136937ac00c28549893d1241011054a0e90517e0a193c2986323fa9f6501ed9 " ,
143
- "size" : " 6612720 "
140
+ "url" : " https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-3/python-3.7.2.post1-embed-win32v2 .zip" ,
141
+ "archiveFileName" : " python-3.7.2.post1-embed-win32v2 .zip" ,
142
+ "checksum" : " SHA-256:26665d2925ee75118bb7d8620e9ee988adc2ca3e660a9f4c06a09a06c94c0c29 " ,
143
+ "size" : " 6431781 "
144
144
},
145
145
{
146
146
"host" : " i686-mingw32" ,
147
- "url" : " https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-3/python-3.7.2.post1-embed-win32 .zip" ,
148
- "archiveFileName" : " python-3.7.2.post1-embed-win32 .zip" ,
149
- "checksum" : " SHA-256:8136937ac00c28549893d1241011054a0e90517e0a193c2986323fa9f6501ed9 " ,
150
- "size" : " 6612720 "
147
+ "url" : " https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-3/python-3.7.2.post1-embed-win32v2 .zip" ,
148
+ "archiveFileName" : " python-3.7.2.post1-embed-win32v2 .zip" ,
149
+ "checksum" : " SHA-256:26665d2925ee75118bb7d8620e9ee988adc2ca3e660a9f4c06a09a06c94c0c29 " ,
150
+ "size" : " 6431781 "
151
151
}
152
152
]
153
153
},
Original file line number Diff line number Diff line change @@ -137,8 +137,7 @@ tools.esptool.upload.params.quiet=
137
137
# First, potentially perform an erase or nothing
138
138
# Next, do the binary upload
139
139
# Combined in one rule because Arduino doesn't suport upload.1.pattern/upload.3.pattern
140
- tools.esptool.upload.pattern="{cmd}" "{runtime.platform.path}/tools/upload.py" "{runtime.platform.path}/tools/pyserial" "{runtime.platform.path}/tools/esptool/esptool.py" --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" {upload.erase_cmd} --end --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" write_flash 0x0 "{build.path}/{build.project_name}.bin" --end
141
-
140
+ tools.esptool.upload.pattern="{cmd}" "{runtime.platform.path}/tools/upload.py" "{runtime.platform.path}/tools/pyserial" "{runtime.platform.path}/tools/esptool" --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" {upload.erase_cmd} --end --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" write_flash 0x0 "{build.path}/{build.project_name}.bin" --end
142
141
143
142
tools.esptool.upload.network_pattern="{network_cmd}" "{runtime.platform.path}/tools/espota.py" -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"
144
143
Original file line number Diff line number Diff line change 3
3
# Wrapper for Arduino core / others that can call esptool.py possibly multiple times
4
4
# Adds pyserial to sys.path automatically based on the path of the current file
5
5
6
- # First patameter is pyserial path, then a series of command arguments separated with --end
7
- # i.e. upload.py tools/pyserial tools/esptool/esptool.py erase_flash --end write_flash file 0x0 --end
6
+ # First parameter is pyserial path, second is esptool path, then a series of command arguments separated with --end
7
+ # i.e. upload.py tools/pyserial tools/esptool erase_flash --end write_flash file 0x0 --end
8
8
9
- import inspect
10
- import os
11
9
import sys
12
10
13
11
sys .argv .pop (0 ) # Remove executable name
14
12
try :
15
13
sys .path .append (sys .argv .pop (0 ).replace ('\\ ' , '/' )) # Add pyserial dir to search path, in UNIX format
16
- esptool = sys .argv .pop (0 ).replace ('\\ ' , '/' ) # Full path to esptool.py, in UNIX format
14
+ sys .path .append (sys .argv .pop (0 ).replace ('\\ ' , '/' )) # Add esptool dir to search path, in UNIX format
15
+ import esptool # If this fails, we can't continue and will bomb below
17
16
except :
18
17
sys .stderr .write ("Error in command line, need pyserial path as 1st arg and esptool path as 2nd.\n " )
19
18
sys .exit (1 )
20
19
21
20
fakeargs = [];
22
21
while len (sys .argv ):
23
22
if sys .argv [0 ] == '--end' :
24
- pid = os .fork ()
25
- if pid == 0 :
26
- sys .argv = ['esptool.py' ] + fakeargs
27
- sys .stderr .write ("Running: " + " " .join (sys .argv ) + "\n " )
28
- exec (open (esptool ).read ())
29
- sys .exit (0 )
30
- else :
31
- os .waitpid (pid , 0 )
23
+ esptool .main (fakeargs )
32
24
sys .argv .pop (0 ) # Remove --end
33
25
fakeargs = []
34
26
else :
You can’t perform that action at this time.
0 commit comments