forked from letscontrolit/ESPEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio_esp32_envs.ini
327 lines (280 loc) · 15.4 KB
/
platformio_esp32_envs.ini
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
;;; ESP32 test build ********************************************************************;
; Status of the ESP32 support is still considered "beta" ;
; Most plugins work just fine on ESP32. ;
; Especially some plugins using serial may not run very well (GPS does run fine). ;
; ***************************************************************************************;
[esp32_always]
lib_ignore = ESP8266WiFi, ESP8266Ping, ESP8266WebServer, ESP8266HTTPUpdateServer, ESP8266mDNS, ESPEasy_ESP8266Ping, RABurton ESP8266 Mutex
[esp32_common]
extends = common, core_esp32_2_1_0
lib_deps = https://github.com/TD-er/ESPEasySerial.git#v2.0.5, adafruit/Adafruit ILI9341 @ ^1.5.6, Adafruit GFX Library, LOLIN_EPD, Adafruit BusIO, VL53L0X @ 1.3.0, SparkFun VL53L1X 4m Laser Distance Sensor @ 1.2.9, td-er/SparkFun MAX1704x Fuel Gauge Arduino Library @ ^1.0.1
lib_ignore = ${esp32_always.lib_ignore}, ESP32_ping, IRremoteESP8266, HeatpumpIR
board_build.f_flash = 80000000L
board_build.flash_mode = dout
board_upload.maximum_size = 1900544
board_build.partitions = esp32_partition_app1810k_spiffs316k.csv
extra_scripts = post:tools/pio/post_esp32.py
${extra_scripts_default.extra_scripts}
build_unflags = -Wall
build_flags = ${mqtt_flags.build_flags}
-DCONFIG_FREERTOS_ASSERT_DISABLE
-DCONFIG_LWIP_ESP_GRATUITOUS_ARP
-DCONFIG_LWIP_GARP_TMR_INTERVAL=30
monitor_filters = esp32_exception_decoder
; Custom: 4096k version --------------------------
[env:custom_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags} -DPLUGIN_BUILD_CUSTOM
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
pre:tools/pio/pre_custom_esp32.py
[env:custom_IR_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags} -DPLUGIN_BUILD_CUSTOM
board = esp32dev
lib_ignore = ${esp32_always.lib_ignore}, ESP32_ping, HeatpumpIR
extra_scripts = ${esp32_common.extra_scripts}
pre:tools/pio/pre_custom_esp32.py
[env:normal_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
lib_deps = ${esp32_common.lib_deps}, ServoESP32
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:test_A_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_ESP32
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:test_B_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_B_ESP32
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:test_C_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_C_ESP32
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:test_D_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_D_ESP32
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:test_A_ESP32-wrover-kit_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_ESP32
board = esp-wrover-kit
upload_protocol = ftdi
debug_tool = ftdi
debug_extra_cmds = break Misc.ino:3011
extra_scripts = ${esp32_common.extra_scripts}
[env:test_B_ESP32-wrover-kit_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_B_ESP32
board = esp-wrover-kit
upload_protocol = ftdi
debug_tool = ftdi
debug_extra_cmds = break Misc.ino:3011
extra_scripts = ${esp32_common.extra_scripts}
[env:test_C_ESP32-wrover-kit_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_C_ESP32
board = esp-wrover-kit
upload_protocol = ftdi
debug_tool = ftdi
debug_extra_cmds = break Misc.ino:3011
extra_scripts = ${esp32_common.extra_scripts}
[env:test_D_ESP32-wrover-kit_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_D_ESP32
board = esp-wrover-kit
upload_protocol = ftdi
debug_tool = ftdi
debug_extra_cmds = break Misc.ino:3011
extra_scripts = ${esp32_common.extra_scripts}
[env:test_A_ESP32_4M316k_lolin_d32_pro]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
; -DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_ESP32
; -DUSES_P096
board = lolin_d32_pro
extra_scripts = ${esp32_common.extra_scripts}
[env:test_B_ESP32_4M316k_lolin_d32_pro]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
; -DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_B_ESP32
-DUSES_P096
board = lolin_d32_pro
extra_scripts = ${esp32_common.extra_scripts}
[env:test_C_ESP32_4M316k_lolin_d32_pro]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
; -DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_C_ESP32
; -DUSES_P096
board = lolin_d32_pro
extra_scripts = ${esp32_common.extra_scripts}
[env:test_D_ESP32_4M316k_lolin_d32_pro]
extends = esp32_common
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
; -DFEATURE_ARDUINO_OTA
-DPLUGIN_SET_TEST_D_ESP32
-DUSES_P096
board = lolin_d32_pro
extra_scripts = ${esp32_common.extra_scripts}
[env:test_A_ESP32_IRExt_4M316k]
extends = env:test_A_ESP32_4M316k
lib_ignore = AS_BH1750, ${esp32_always.lib_ignore}, ESP32_ping
build_flags = ${esp32_common.build_flags}
-DPLUGIN_BUILD_NORMAL_IRext
[env:test_B_ESP32_IRExt_4M316k]
extends = env:test_B_ESP32_4M316k
lib_ignore = AS_BH1750, ${esp32_always.lib_ignore}, ESP32_ping
build_flags = ${esp32_common.build_flags}
-DPLUGIN_BUILD_NORMAL_IRext
[env:test_C_ESP32_IRExt_4M316k]
extends = env:test_C_ESP32_4M316k
lib_ignore = AS_BH1750, ${esp32_always.lib_ignore}, ESP32_ping
build_flags = ${esp32_common.build_flags}
-DPLUGIN_BUILD_NORMAL_IRext
[env:test_D_ESP32_IRExt_4M316k]
extends = env:test_D_ESP32_4M316k
lib_ignore = AS_BH1750, ${esp32_always.lib_ignore}, ESP32_ping
build_flags = ${esp32_common.build_flags}
-DPLUGIN_BUILD_NORMAL_IRext
[env:energy_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
lib_deps = ${esp32_common.lib_deps}, ServoESP32
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-D PLUGIN_ENERGY_COLLECTION
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
[env:display_ESP32_4M316k]
extends = esp32_common
platform = ${esp32_common.platform}
lib_deps = ${esp32_common.lib_deps}, ServoESP32
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-D PLUGIN_DISPLAY_COLLECTION
board = esp32dev
extra_scripts = ${esp32_common.extra_scripts}
; Custom: 4096k version --------------------------
[env:custom_ESP32_4M316k_ETH]
extends = env:custom_ESP32_4M316k
platform = ${env:custom_ESP32_4M316k.platform}
build_flags = ${env:custom_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:normal_ESP32_4M316k_ETH]
extends = env:normal_ESP32_4M316k
platform = ${env:normal_ESP32_4M316k.platform}
build_flags = ${env:normal_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:test_A_ESP32_4M316k_ETH]
extends = env:test_A_ESP32_4M316k
platform = ${env:test_A_ESP32_4M316k.platform}
build_flags = ${env:test_A_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:test_B_ESP32_4M316k_ETH]
extends = env:test_B_ESP32_4M316k
platform = ${env:test_B_ESP32_4M316k.platform}
build_flags = ${env:test_B_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:test_C_ESP32_4M316k_ETH]
extends = env:test_C_ESP32_4M316k
platform = ${env:test_C_ESP32_4M316k.platform}
build_flags = ${env:test_C_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:test_D_ESP32_4M316k_ETH]
extends = env:test_D_ESP32_4M316k
platform = ${env:test_D_ESP32_4M316k.platform}
build_flags = ${env:test_D_ESP32_4M316k.build_flags} -DHAS_ETHERNET
[env:test_A_ESP32-wrover-kit_4M316k_ETH]
extends = env:test_A_ESP32-wrover-kit_4M316k
platform = ${env:test_A_ESP32-wrover-kit_4M316k.platform}
build_flags = ${env:test_A_ESP32-wrover-kit_4M316k.build_flags} -DHAS_ETHERNET
[env:test_B_ESP32-wrover-kit_4M316k_ETH]
extends = env:test_B_ESP32-wrover-kit_4M316k
platform = ${env:test_B_ESP32-wrover-kit_4M316k.platform}
build_flags = ${env:test_B_ESP32-wrover-kit_4M316k.build_flags} -DHAS_ETHERNET
[env:test_C_ESP32-wrover-kit_4M316k_ETH]
extends = env:test_C_ESP32-wrover-kit_4M316k
platform = ${env:test_C_ESP32-wrover-kit_4M316k.platform}
build_flags = ${env:test_C_ESP32-wrover-kit_4M316k.build_flags} -DHAS_ETHERNET
[env:test_D_ESP32-wrover-kit_4M316k_ETH]
extends = env:test_D_ESP32-wrover-kit_4M316k
platform = ${env:test_D_ESP32-wrover-kit_4M316k.platform}
build_flags = ${env:test_D_ESP32-wrover-kit_4M316k.build_flags} -DHAS_ETHERNET
; A Lolin D32 PRO with 16MB Flash, allowing 4MB sketch size, and file storage using the default (SPIFFS) filesystem
[max_ESP32_16M]
extends = esp32_common
lib_ignore = ${esp32_always.lib_ignore}, ESP32_ping
lib_deps = ${esp32_common.lib_deps}, VL53L0X
board_upload.maximum_size = 4194304
build_flags = ${esp32_common.build_flags}
-DFEATURE_ARDUINO_OTA
-DPLUGIN_BUILD_MAX_ESP32
; TODO: To enable PS-RAM Support needs more build flags than these 2, for now define ESP32_ENABLE_PSRAM is used to en/disable detecting PS-Ram size on Info page
; -DBOARD_HAS_PSRAM // both flags already enabled for Lolin D32 Pro board by PlatformIO
; -mfix-esp32-psram-cache-issue
board = lolin_d32_pro
; A Lolin D32 PRO with 16MB Flash, allowing 4MB sketch size, and file storage using LittleFS filesystem
[max_ESP32_16M_LittleFS]
extends = max_ESP32_16M
lib_deps = ${max_ESP32_16M.lib_deps}, https://github.com/lorol/LITTLEFS.git
board_build.filesystem = littlefs
; A Lolin D32 PRO with 16MB Flash, allowing 4MB sketch size, and 1MB assigned to file storage using SPIFFS filesystem
[env:max_ESP32_16M1M]
extends = max_ESP32_16M
board_build.partitions = esp32_partition_app4096k_spiffs1024k.csv
; A Lolin D32 PRO with 16MB Flash, allowing 4MB sketch size, and 2MB assigned to file storage using LittleFS filesystem
[env:max_ESP32_16M2M_LittleFS]
extends = max_ESP32_16M_LittleFS
board_build.partitions = esp32_partition_app4096k_spiffs2048k.csv
; A Lolin D32 PRO with 16MB Flash, allowing 4MB sketch size, and the rest (nearly 8MB) assigned to file storage using LittleFS filesystem
[env:max_ESP32_16M8M_LittleFS]
extends = max_ESP32_16M_LittleFS
board_build.partitions = esp32_partition_app4096k_spiffs8124k.csv
; If you have a board with Ethernet integrated and 16MB Flash, then this configuration could be enabled, it's based on the max_ESP32_16M1M definition
[env:max_ESP32_16M1M_ETH]
extends = env:max_ESP32_16M1M
build_flags = ${env:max_ESP32_16M1M.build_flags} -DHAS_ETHERNET
; If you have a board with Ethernet integrated and 16MB Flash, then this configuration could be enabled, it's based on the max_ESP32_16M2M_LittleFS definition
[env:max_ESP32_16M2M_LittleFS_ETH]
extends = env:max_ESP32_16M2M_LittleFS
build_flags = ${env:max_ESP32_16M2M_LittleFS.build_flags} -DHAS_ETHERNET
; If you have a board with Ethernet integrated and 16MB Flash, then this configuration could be enabled, it's based on the max_ESP32_16M8M_LittleFS definition
[env:max_ESP32_16M8M_LittleFS_ETH]
extends = env:max_ESP32_16M8M_LittleFS
build_flags = ${env:max_ESP32_16M8M_LittleFS.build_flags} -DHAS_ETHERNET