File tree Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "build" : {
3
+ "arduino" : {
4
+ "ldscript" : " eagle.flash.4m1m.ld"
5
+ },
6
+ "core" : " esp8266" ,
7
+ "extra_flags" : " -DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_SCHIRMILABS_EDUINO_WIFI" ,
8
+ "f_cpu" : " 80000000L" ,
9
+ "f_flash" : " 40000000L" ,
10
+ "flash_mode" : " dio" ,
11
+ "mcu" : " esp8266" ,
12
+ "variant" : " eduinowifi"
13
+ },
14
+ "connectivity" : [
15
+ " wifi"
16
+ ],
17
+ "frameworks" : [
18
+ " arduino" ,
19
+ " esp8266-rtos-sdk" ,
20
+ " esp8266-nonos-sdk"
21
+ ],
22
+ "name" : " Schirmilabs Eduino WiFi" ,
23
+ "upload" : {
24
+ "maximum_ram_size" : 81920 ,
25
+ "maximum_size" : 4194304 ,
26
+ "require_upload_port" : true ,
27
+ "resetmethod" : " nodemcu" ,
28
+ "speed" : 115200
29
+ },
30
+ "url" : " https://github.com/schirmilabs/Eduino-WiFi" ,
31
+ "vendor" : " Schirmilabs"
32
+ }
Original file line number Diff line number Diff line change @@ -122,6 +122,19 @@ def _update_max_upload_size(env):
122
122
env .BoardConfig ().update ("upload.maximum_size" , ldsizes ['app_size' ])
123
123
124
124
125
+ def get_esptoolpy_reset_flags (resetmethod ):
126
+ # no dtr, no_sync
127
+ resets = ("no_reset_no_sync" , "soft_reset" )
128
+ if resetmethod == "nodemcu" :
129
+ # dtr
130
+ resets = ("default_reset" , "hard_reset" )
131
+ elif resetmethod == "ck" :
132
+ # no dtr
133
+ resets = ("no_reset" , "soft_reset" )
134
+
135
+ return ["--before" , resets [0 ], "--after" , resets [1 ]]
136
+
137
+
125
138
########################################################
126
139
127
140
env = DefaultEnvironment ()
@@ -305,6 +318,10 @@ def _update_max_upload_size(env):
305
318
UPLOADCMD = '"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS $SOURCE' ,
306
319
)
307
320
321
+ env .Prepend (
322
+ UPLOADERFLAGS = get_esptoolpy_reset_flags (env .subst ("$UPLOAD_RESETMETHOD" ))
323
+ )
324
+
308
325
upload_actions = [
309
326
env .VerboseAction (env .AutodetectUploadPort ,
310
327
"Looking for upload port..." ),
Original file line number Diff line number Diff line change 12
12
"type" : " git" ,
13
13
"url" : " https://github.com/platformio/platform-espressif8266.git"
14
14
},
15
- "version" : " 2.4 .0" ,
15
+ "version" : " 2.5 .0" ,
16
16
"packageRepositories" : [
17
17
" https://dl.bintray.com/platformio/dl-packages/manifest.json" ,
18
18
" http://dl.platformio.org/packages/manifest.json" ,
46
46
"framework-arduinoespressif8266" : {
47
47
"type" : " framework" ,
48
48
"optional" : true ,
49
- "version" : " ~3.20603 .0"
49
+ "version" : " ~3.20700 .0"
50
50
},
51
51
"framework-esp8266-rtos-sdk" : {
52
52
"type" : " framework" ,
You can’t perform that action at this time.
0 commit comments