forked from attermann/microReticulum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
362 lines (345 loc) · 10.3 KB
/
Copy pathplatformio.ini
File metadata and controls
362 lines (345 loc) · 10.3 KB
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
; 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]
default_envs =
native17
ttgo-lora32-v21
ttgo-t-beam
lilygo_tbeam_supreme
heltec_wifi_lora_32_V4
wiscore_rak4631
[env]
build_unflags =
-std=gnu++11
-fno-exceptions
build_flags =
-std=gnu++17
-fexceptions
-Wall
;-Wextra
-Wno-missing-field-initializers -Wno-format -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-parameter -Wno-unused-private-field -Wno-braced-scalar-init
-DUNITY_SUPPORT_64
; Only define LIBRARY_TEST when testing library directly
-DLIBRARY_TEST
;-DNDEBUG
-DDEBUGLOG_DEFAULT_LOG_LEVEL_TRACE
-DRNS_LOG_LEVEL=RNS_LOG_LEVEL_TRACE
-DRNS_LOW_MEMORY_REBOOT
-DRNS_DEBUG_HEAP
-DRNS_DEBUG_MEMORY
-DRNS_DEBUG_METRICS
-DRNS_DEBUG_PATHSTORE
-DRNS_USE_FS
-DRNS_USE_PROVISIONING
-DRNS_ENABLE_REMOTE_PROVISIONING
-DUSTORE_ENABLE_LOG
-DUSTORE_USE_UNIVERSALFS
; Divergent features
;-DRNS_SAME_INTERFACE_PATH_REQUESTS=0
;-DRNS_REJECT_BLACKHOLED_ANNOUNCE=0
;-DRNS_BLOCK_UNRESPONSIVE_ANNOUNCE=0
;-DRNS_NEIGHBOR_PROBING=0
-DRNS_NEIGHBOR_PATH_REQUEST=1
lib_deps =
ArduinoJson@^7.4.2
MsgPack@^0.4.2
https://github.com/attermann/Crypto.git
test_framework = unity
; Following property enables Unity integration testing
test_build_src = true
[env:native]
platform = native
build_flags =
${env.build_flags}
-DNATIVE
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native-local]
platform = native
build_flags =
${env.build_flags}
-DNATIVE
lib_deps =
${env.lib_deps}
microStore=symlink://../microStore
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native11]
platform = native
build_unflags =
${env.build_unflags}
-std=gnu++17
build_flags =
${env.build_flags}
-std=gnu++11
-DNATIVE
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native14]
platform = native
build_unflags =
${env.build_unflags}
-std=gnu++17
build_flags =
${env.build_flags}
-std=gnu++14
-DNATIVE
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native17]
platform = native
build_unflags =
${env.build_unflags}
build_flags =
${env.build_flags}
-DNATIVE
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native20]
platform = native
build_unflags =
${env.build_unflags}
-std=gnu++17
build_flags =
${env.build_flags}
-std=gnu++20
-DNATIVE
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:native_debug]
platform = native
build_unflags =
${env.build_unflags}
build_flags =
${env.build_flags}
-DNATIVE
; CBA TEST
;-fsanitize=address
-fno-omit-frame-pointer
-g
;-O1
-O0
;-DBOARD_HAS_PSRAM=1
;-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_ALLOCATOR
-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_POOL_ALLOCATOR
-DRNS_CONTAINER_ALLOCATOR=RNS_ALTHEAP_POOL_ALLOCATOR
;-DRNS_HEAP_POOL_BUFFER_SIZE=81920
;-DRNS_HEAP_POOL_BUFFER_SIZE=102400
-DRNS_HEAP_POOL_BUFFER_SIZE=204800
;-DRNS_HEAP_POOL_BUFFER_SIZE=307200
;-DRNS_HEAP_POOL_BUFFER_SIZE=409600
;-DRNS_HEAP_POOL_BUFFER_SIZE=512000
;-DRNS_HEAP_POOL_BUFFER_SIZE=614400
;-DRNS_HEAP_POOL_BUFFER_SIZE=1024000
-DRNS_ALTHEAP_POOL_BUFFER_SIZE=2048000
-DTLSF_DEBUG=1
;-DRNS_MEM_LOG
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
; Following required to force-include libraries that are marked arduino-only
lib_compat_mode = off
[env:embedded]
framework = arduino
monitor_speed = 115200
upload_speed = 460800
build_unflags =
${env.build_unflags}
;-fno-rtti
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
https://github.com/attermann/microStore.git
[env:ttgo-lora32-v21]
extends = env:embedded
platform = espressif32
board = ttgo-lora32-v21
board_build.partitions = no_ota.csv
build_unflags =
${env:embedded.build_unflags}
build_flags =
${env:embedded.build_flags}
-DBOARD_ESP32
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
monitor_filters = esp32_exception_decoder
[env:ttgo-t-beam]
extends = env:embedded
platform = espressif32
board = ttgo-t-beam
board_build.partitions = no_ota.csv
;board_build.partitions = huge_app.csv
build_flags =
${env:embedded.build_flags}
-DBOARD_ESP32
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
monitor_filters = esp32_exception_decoder
[env:lilygo_tbeam_supreme]
extends = env:embedded
platform = espressif32
board = t-beams3-supreme
board_build.partitions = no_ota.csv
;board_build.partitions = huge_app.csv
build_flags =
${env:embedded.build_flags}
-DBOARD_ESP32
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
monitor_filters = esp32_exception_decoder
; also Heltec Wireless Tracker
[env:heltec_wifi_lora_32_V4]
extends = env:embedded
platform = espressif32
board = esp32-s3-devkitc-1
board_build.partitions = no_ota.csv
;board_build.partitions = huge_app.csv
build_flags =
${env.build_flags}
-DBOARD_ESP32
-DMSGPACK_USE_BOOST=OFF
-DARDUINO_USB_CDC_ON_BOOT=1
; CBA TEST
-DBOARD_HAS_PSRAM=1
;-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_ALLOCATOR
-DRNS_DEFAULT_ALLOCATOR=RNS_PSRAM_ALLOCATOR
;-DRNS_CONTAINER_ALLOCATOR=RNS_PSRAM_ALLOCATOR
-DRNS_CONTAINER_ALLOCATOR=RNS_PSRAM_POOL_ALLOCATOR
-DRNS_PSRAM_POOL_BUFFER_SIZE=2048000
lib_deps =
${env:embedded.lib_deps}
monitor_filters = esp32_exception_decoder
upload_speed = 921600
[env:wiscore_rak4631]
extends = env:embedded
platform = nordicnrf52
board = rak4630
board_build.variants_dir = variants
board_build.variant = rak4630
board_build.partitions = no_ota.csv
;build_src_filter = ${env:embedded.build_src_filter}+<../variants/rak4630>
build_unflags =
${env:embedded.build_unflags}
-fno-exceptions ; Required for exception handling on nordicnrf52
-fno-rtti ; Required for exception handling on nordicnrf52
--specs=nano.specs ; Required for exception handling on nordicnrf52
build_flags =
${env:embedded.build_flags}
-fexceptions ; Required for exception handling on nordicnrf52
-frtti ; Required for exception handling on nordicnrf52
--specs=nosys.specs ; Required for exception handling on nordicnrf52
;-I variants/rak4630
-DBOARD_NRF52
-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_POOL_ALLOCATOR
-DRNS_HEAP_POOL_BUFFER_SIZE=204800
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
adafruit/Adafruit TinyUSB Library
; MCU: Nordic nRF52840 (32-bit ARM Cortex-M4, 64 MHz)
; SRAM: 256 KB
; PSRAM: N/A
; Flash: 1 MB internal
; External Flash Interface: N/A
; LoRa: Semtech SX1262
; NOTE: Must double-click RESET button (top-left) to enter DFU mode before uploading firmware
[env:lilygo-techo]
extends = env:embedded
platform = nordicnrf52
board = lilygo_t_echo
board_build.variants_dir = variants
board_build.variant = lilygo_t_echo
;board_build.partitions = no_ota.csv
;board_build.filesystem = littlefs
;build_src_filter = ${env:embedded.build_src_filter}+<../variants/lilygo_t_echo>
; REQUIRED for boot. We must add `adafruit/Adafruit TinyUSB Library` to
; lib_deps to get `Serial` / `Adafruit_USBD_CDC` strong defs (the PIO Adafruit
; builder only adds the BSP-bundled TinyUSB to the include path, not the
; compile list). But that creates an archive-linking issue: most TinyUSB
; strong defs sit in archive members that the linker doesn't pull in (the
; weak refs from the BSP's main.cpp don't trigger archive search), leaving
; weak refs unresolved -> BL instructions patched to nop.w -> pre-main fault
; -> bootloader rejects the app -> fast red blink forever. lib_archive=no
; defeats the archive packaging and links every .o unconditionally.
; (Meshtastic avoids the whole mess by using their own framework fork that
; ships TinyUSB compiled into the BSP itself; the same pattern would work
; here but would be a much heavier change.)
lib_archive = no
build_unflags =
${env:embedded.build_unflags}
-fno-exceptions ; Required for exception handling on nordicnrf52
-fno-rtti ; Required for exception handling on nordicnrf52
--specs=nano.specs ; Required for exception handling on nordicnrf52
build_flags =
${env:embedded.build_flags}
-fexceptions ; Required for exception handling on nordicnrf52
-frtti ; Required for exception handling on nordicnrf52
--specs=nosys.specs ; Required for exception handling on nordicnrf52
;-I variants/lilygo_t_echo
-DBOARD_NRF52
-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_POOL_ALLOCATOR
-DRNS_HEAP_POOL_BUFFER_SIZE=204800
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
adafruit/Adafruit TinyUSB Library
upload_protocol = nrfutil
upload_port = /dev/cu.usbmodem101
; MCU: Nordic nRF52840 (32-bit ARM Cortex-M4, 64 MHz)
; SRAM: 256 KB
; PSRAM: N/A
; Flash: 1 MB internal
; External Flash Interface: N/A
; LoRa: Semtech SX1262
; NOTE: Must double-click RESET button (top-left) to enter DFU mode before uploading firmware
[env:nrf52840-dk-adafruit]
extends = env:embedded
platform = nordicnrf52
board = nrf52840_dk_adafruit
;board_build.partitions = no_ota.csv
;board_build.filesystem = littlefs
build_unflags =
${env:embedded.build_unflags}
-fno-exceptions ; Required for exception handling on nordicnrf52
-fno-rtti ; Required for exception handling on nordicnrf52
--specs=nano.specs ; Required for exception handling on nordicnrf52
build_flags =
${env:embedded.build_flags}
-fexceptions ; Required for exception handling on nordicnrf52
-frtti ; Required for exception handling on nordicnrf52
--specs=nosys.specs ; Required for exception handling on nordicnrf52
-DBOARD_NRF52
-DRNS_DEFAULT_ALLOCATOR=RNS_HEAP_POOL_ALLOCATOR
-DRNS_HEAP_POOL_BUFFER_SIZE=204800
-DMSGPACK_USE_BOOST=OFF
lib_deps =
${env:embedded.lib_deps}
adafruit/Adafruit TinyUSB Library
upload_protocol = nrfutil
upload_port = /dev/cu.usbmodem101