Skip to content

Commit 772ec50

Browse files
committed
Merge branch 'release/v2.5.0'
2 parents 4a9e74d + f48ebbe commit 772ec50

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

boards/eduinowifi.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

builder/main.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ def _update_max_upload_size(env):
122122
env.BoardConfig().update("upload.maximum_size", ldsizes['app_size'])
123123

124124

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+
125138
########################################################
126139

127140
env = DefaultEnvironment()
@@ -305,6 +318,10 @@ def _update_max_upload_size(env):
305318
UPLOADCMD='"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS $SOURCE',
306319
)
307320

321+
env.Prepend(
322+
UPLOADERFLAGS=get_esptoolpy_reset_flags(env.subst("$UPLOAD_RESETMETHOD"))
323+
)
324+
308325
upload_actions = [
309326
env.VerboseAction(env.AutodetectUploadPort,
310327
"Looking for upload port..."),

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/platformio/platform-espressif8266.git"
1414
},
15-
"version": "2.4.0",
15+
"version": "2.5.0",
1616
"packageRepositories": [
1717
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1818
"http://dl.platformio.org/packages/manifest.json",
@@ -46,7 +46,7 @@
4646
"framework-arduinoespressif8266": {
4747
"type": "framework",
4848
"optional": true,
49-
"version": "~3.20603.0"
49+
"version": "~3.20700.0"
5050
},
5151
"framework-esp8266-rtos-sdk": {
5252
"type": "framework",

0 commit comments

Comments
 (0)