forked from RFD-FHEM/SIGNALDuino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
444 lines (402 loc) · 15.7 KB
/
platformio.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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; https://docs.platformio.org/en/latest/projectconf/section_env.html
; only SIGNALDECODER DEBUG firmware versions based on ESP8266
; default_envs = SDC_DEBUG_1, SDC_DEBUGDECODE_1, SDC_DEBUGDECODE_255, SDC_DEBUGDETECT_0, SDC_DEBUGDETECT_1, SDC_DEBUGDETECT_2, SDC_DEBUGDETECT_3, SDC_DEBUGDETECT_3_DEBUGDECODE_1, SDC_DEBUGDETECT_255, SDC_DEBUGDETECT_255_DEBUGDECODE_1
test_dir = tests/
[env]
build_src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
lib_extra_dirs = src/_micro-api/libraries/
#debug_port = COM6
#monitor_port = COM6f
#upload_port = COM6
upload_speed = 921600
; file for Advanced Scripting
; https://docs.platformio.org/en/latest/projectconf/advanced_scripting.html
extra_scripts = pre:extra_script.py ; to rename projectfile
[env_esp]
; all options for ESP
monitor_port = socket://192.168.0.30:23
;monitor_port = COM6
[env_maple_mini]
; all options for MAPLE_Mini
; extra_scripts = pre:custom_hwids.py ; to write USB PID for device | needed to right reconnected
; platform = ststm32 ; Stable version
platform = https://github.com/platformio/platform-ststm32.git ; Development version
board = maple_mini_origin
board_build.mcu = stm32f103cbt6 ; https://docs.platformio.org/en/latest/projectconf/section_env_platform.html#board-build-mcu
board_build.core = STM32Duino ; https://docs.platformio.org/en/latest/platforms/ststm32.html#configuration
framework = arduino
build_flags=
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC ; CDC (generic Serial supersede U(S)ART)
-D USBCON ; !! work only with maple_mini bootloader v1.0 !!
;-D USBD_VID=0x1eaf ; Maple Serial (COMxx)
;-D USBD_PID=0x0003 ; Bootloader
-D USBD_PID=0x0004 ; Device
-D USBD_VID=0x0483 ; Serielles USB-Geraet (COMxx)
-D USB_MANUFACTURER="STMicroelectronics"
-D USB_PRODUCT="\"Maple\""
; * * * * * * * * * * * * * * * * * * * * *
; behind this lines, all hardware projects
; * * * * * * * * * * * * * * * * * * * * *
[env:esp32s]
; Espressif ESP32 / NodeMCU - single core, max 240 MHz, power consumption 80 mA
; RAM: [= ] 14.4% (used 47316 bytes from 327680 bytes)
; Flash: [======= ] 67.4% (used 882793 bytes from 1310720 bytes)
platform = [email protected] ; version 6.6 set
#platform = espressif32 ; always stable version | not work 241014
board = nodemcu-32s
framework = arduino
debug_tool = olimex-arm-usb-ocd-h
monitor_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:esp32cc1101]
; Espressif ESP32 / NodeMCU - single core, max 240 MHz, power consumption 80 mA
; RAM: [= ] 14.5% (used 47436 bytes from 327680 bytes)
; Flash: [======= ] 67.9% (used 889529 bytes from 1310720 bytes)
platform = [email protected] ; version 6.6 set
#platform = espressif32 ; always stable version | not work 241014
board = nodemcu-32s
framework = arduino
monitor_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:esp8266s]
; Espressif ESP8266 - single core, max 160 MHz, GPIO 17, power consumption 80 mA
; RAM: [==== ] 40.1% (used 32828 bytes from 81920 bytes)
; Flash: [==== ] 35.5% (used 370599 bytes from 1044464 bytes)
platform = [email protected] ; version 4.2.1 set
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps=
build_flags=
[env:esp8266cc1101]
; Espressif ESP8266 - single core, max 160 MHz, GPIO 17, power consumption 80 mA
; RAM: [==== ] 40.1% (used 32880 bytes from 81920 bytes)
; Flash: [==== ] 36.0% (used 376343 bytes from 1044464 bytes)
platform = [email protected] ; version 4.2.1 set
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:MAPLEMINI_F103CBs]
; ST-Microelectronics STM32F103C8T6 bootloader v1.0
; RAM: [=== ] 29.1% (used 5968 bytes from 20480 bytes)
; Flash: [==== ] 41.7% (used 46144 bytes from 110592 bytes)
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
-D ARDUINO_MAPLEMINI_F103CB=1
[env:MAPLEMINI_F103CBcc1101]
; ST-Microelectronics STM32F103C8T6 bootloader v1.0
; RAM: [=== ] 29.5% (used 6032 bytes from 20480 bytes)
; Flash: [===== ] 46.6% (used 51568 bytes from 110592 bytes)
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
-D ARDUINO_MAPLEMINI_F103CB=1
-D OTHER_BOARD_WITH_CC1101=1
[env:nano328]
; RAM: [==== ] 41.9% (used 858 bytes from 2048 bytes)
; Flash: [======= ] 69.7% (used 21426 bytes from 30720 bytes)
platform = atmelavr
board = nanoatmega328
build_flags=
framework = arduino
build_src_filter = -cc1101.h -cc1101.cpp +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
[env:nano328_bootl_new]
; Arduino Nano ATmega328 - bootloader Optiboot
; RAM: [==== ] 41.9% (used 858 bytes from 2048 bytes)
; Flash: [======= ] 69.7% (used 21426 bytes from 30720 bytes)
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:nanoCC1101]
; RAM: [==== ] 44.6% (used 914 bytes from 2048 bytes)
; Flash: [======== ] 81.0% (used 24888 bytes from 30720 bytes)
platform = atmelavr
board = nanoatmega328
framework = arduino
build_flags=-D OTHER_BOARD_WITH_CC1101=1
build_src_filter = -cc1101.h -cc1101.cpp +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
[env:nanoCC1101_bootl_new]
; Arduino Nano ATmega328 - bootloader Optiboot
; RAM: [==== ] 44.6% (used 914 bytes from 2048 bytes)
; Flash: [======== ] 81.0% (used 24888 bytes from 30720 bytes)
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:miniculCC1101]
; Minicul with cc1101 running at 8 mhz
; RAM: [==== ] 42.1% (used 862 bytes from 2048 bytes)
; Flash: [======= ] 69.7% (used 21406 bytes from 30720 bytes)
platform = atmelavr
board = pro8MHzatmega328
framework = arduino
monitor_speed = 57600
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = -D ARDUINO_ATMEGA328P_MINICUL=1
[env:promini8cc1101]
; Arduino Pro or Pro Mini - Atmel ATmega328 running at 8MHz
; RAM: [==== ] 44.6% (used 913 bytes from 2048 bytes)
; Flash: [======== ] 80.9% (used 24866 bytes from 30720 bytes)
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:promini16cc1101]
; Arduino Pro or Pro Mini - Atmel ATmega328 running at 16MHz
; RAM: [==== ] 45.0% (used 921 bytes from 2048 bytes)
; Flash: [======== ] 80.8% (used 24820 bytes from 30720 bytes)
platform = atmelavr
board = pro16MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:promini8s]
; Arduino Pro or Pro Mini - Atmel ATmega328 running at 8MHz
; RAM: [==== ] 41.7% (used 854 bytes from 2048 bytes)
; Flash: [======= ] 70.3% (used 21610 bytes from 30720 bytes)
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:promini16s]
; Arduino Pro or Pro Mini - Atmel ATmega328 running at 16MHz
; RAM: [==== ] 42.1% (used 862 bytes from 2048 bytes)
; Flash: [======= ] 70.2% (used 21554 bytes from 30720 bytes)
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:radinoCC1101]
; Arduino compatible (Arduino Micro / Leonardo) - Atmel ATmega32U4
; RAM: [=== ] 34.5% (used 882 bytes from 2560 bytes)
; Flash: [========= ] 94.6% (used 27114 bytes from 28672 bytes)
;
; Radino board from in-circuit is not in POI
; these are compatible with all PIN´s
; working correctly; send & receive function works
platform = atmelavr
board = micro
framework = arduino
board_build.mcu = atmega32u4 ; change microcontroller
board_build.f_cpu = 8000000L ; change MCU frequency
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D ARDUINO_RADINOCC1101=1
[env:wemos_d1_mini_proCC1101]
; Espressif ESP8266 WeMos D1 mini pro - single core, max 160MHz, GPIO 11, power consumption 70 mA
; RAM: [==== ] 40.1% (used 32880 bytes from 81920 bytes)
; Flash: [==== ] 36.0% (used 376331 bytes from 1044464 bytes)
platform = espressif8266
board = d1_mini_pro
framework = arduino
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D PIN_LED_INVERSE=1 -D OTHER_BOARD_WITH_CC1101=1
[env:wemos_d1_mini_pro]
; Espressif ESP8266 WeMos D1 mini pro - single core, max 160MHz, GPIO 11, power consumption 70 mA
; RAM: [==== ] 38.9% (used 31876 bytes from 81920 bytes)
; Flash: [=== ] 34.9% (used 364828 bytes from 1044464 bytes)
platform = espressif8266
board = d1_mini_pro
framework = arduino
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D PIN_LED_INVERSE=1
; only SIGNALDECODER DEBUG firmware versions based on ESP8266
; -----------------------------------------------------------
[env:SDC_DEBUG_1]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 40.6% (used 33252 bytes from 81920 bytes)
; Flash: [==== ] 36.1% (used 376661 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1
[env:SDC_DEBUGDECODE_1]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 40.9% (used 33508 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 378285 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG -D DEBUGDECODE=1
[env:SDC_DEBUGDECODE_255]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.0% (used 33572 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 378317 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDECODE=255
[env:SDC_DEBUGDETECT_0]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 40.6% (used 33284 bytes from 81920 bytes)
; Flash: [==== ] 36.1% (used 376789 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=0
[env:SDC_DEBUGDETECT_1]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.0% (used 33576 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 377657 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=1
[env:SDC_DEBUGDETECT_2]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.0% (used 33572 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 377709 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=2
[env:SDC_DEBUGDETECT_3]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.1% (used 33640 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 378153 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=3
[env:SDC_DEBUGDETECT_3_DEBUGDECODE_1]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.4% (used 33896 bytes from 81920 bytes)
; Flash: [==== ] 36.4% (used 379809 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=3 -D DEBUGDECODE=1
[env:SDC_DEBUGDETECT_255]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.2% (used 33768 bytes from 81920 bytes)
; Flash: [==== ] 36.2% (used 378553 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=255
[env:SDC_DEBUGDETECT_255_DEBUGDECODE_1]
; 80KB RAM, 4MB Flash
; RAM: [==== ] 41.5% (used 34020 bytes from 81920 bytes)
; Flash: [==== ] 36.4% (used 380213 bytes from 1044464 bytes)
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env_esp.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG=1 -D DEBUGDETECT=255 -D DEBUGDECODE=1
; only tests native
; -----------------
[env:native]
platform = native
lib_deps =
build_flags =
-std=c++11
lib_archive = false
test_ignore = embedded*
;src_dir = tests/testSignalDecoder
lib_compat_mode = off