-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplatformio.ini
More file actions
286 lines (240 loc) · 7.62 KB
/
platformio.ini
File metadata and controls
286 lines (240 loc) · 7.62 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
; #############################################################################
; ### PlatformIO Project Configuration File ###
; #############################################################################
[platformio]
name = STM32WLE5x
description = Project for developing LoRaWAN Sensor Node firmware
; #############################################################################
; ### Options - to be reused on some environments ###
; #############################################################################
[options]
board = mumo_stm32wle5jc
local_build_flags =
-std=gnu++17
-Wno-unknown-pragmas
-D platformio
cloud_build_flags =
-std=gnu++17
-Wno-unknown-pragmas
testing_build_flags =
-D unitTesting
common_debug_build_flags =
-O0
-g
-ggdb
-D debugBuild
test_coverage_build_flags =
-lgcov
--coverage
-fprofile-abs-path
-O0
aes_hardware_software =
-D HARDWARE_AES
; -D SOFTWARE_AES
; choose either UART1 / (ST-Link as test port) or UART2 / COM26 (USB as test port
; ST-Link V3-mini has usually COM3
; ST-Link V3-miniE has usually COM14
host_test_port = COM5
target_test_port = -D TARGET_TEST_PORT_UART1
; #############################################################################
; ### Settings Common to all environments ###
; #############################################################################
[env]
lib_ldf_mode = deep
; #############################################################################
; ### Dummy - to trigger PIO to install ststm32 ###
; #############################################################################
[env:dummy]
platform = ststm32
board = ${options.board}
; #############################################################################
; ### Local desktop and Cloud Unittesting : ALL generic unittests ###
; #############################################################################
[env:all_generic_unittests]
platform = native
build_unflags = -std=gnu++11
build_flags =
${options.testing_build_flags}
${options.test_coverage_build_flags}
${options.cloud_build_flags}
-D generic
-D SOFTWARE_AES
test_framework = unity
test_filter =
generic/test_*
check_src_filters =
lib/*
src/*
test/*
check_flags =
--suppress=unusedFunction
; extra_scripts = post:.github/workflows/buildcoveragereport.py
; gcovr --sort uncovered-number --sort-reverse --html-nested -e .pio* -o ./test/coverage/main.html
; #############################################################################
; ### Local desktop and Cloud Unittesting : SELECTED generic unittests ###
; #############################################################################
[env:some_generic_unittests]
platform = native
build_unflags = -std=gnu++11
build_flags =
${options.testing_build_flags}
${options.test_coverage_build_flags}
${options.cloud_build_flags}
-D generic
-D SOFTWARE_AES
debug_build_flags = -O0 -g -ggdb
test_framework = unity
test_filter =
;generic/test_general
;generic/test_circularbuffer
;generic/test_sensordevicecollection
;generic/test_sensordevicestate
;generic/test_sensorchannel
;generic/test_font
;generic/test_logging
;generic/test_gpio
;generic/test_power
;generic/test_display
;generic/test_battery
;generic/test_bme68x
;generic/test_tsl2591
;generic/test_sht40
;generic/test_sps30
;generic/test_screen
;generic/test_maincontroller
;generic/test_applicationevent
;generic/test_graphics
;generic/test_lorawan_deviceaddress
;generic/test_framecount
;generic/test_lorawan_0_general
;generic/test_lorawan_1_rawmessage
;generic/test_lorawan_2_crypto
;generic/test_lorawan_3_txrxcycle
;generic/test_lorawan_4_mac
;generic/test_sx126x
generic/test_float
;generic/test_aeskey
;generic/test_aesblock
;generic/test_hexascii
;generic/test_channelcollection
;generic/test_settingscollection
;generic/test_sps30
;generic/test_sensirion
;generic/test_measurementcollection
;generic/test_measurementgroup
;generic/test_measurementgroupcollection
;generic/test_realtimeclock
;generic/test_uniqueid
;generic/test_nvs
;generic/test_float
;generic/test_cli
;generic/test_bitmatrix
;generic/test_bitvector
;generic/test_qrcode_original
;generic/test_reedsolomon
;generic/test_qrcode
;generic/test_sensordevicetype
;generic/test_batterytype
;generic/test_gf256
debug_test = generic/test_float
; #############################################################################
; ### Local Application build ###
; #############################################################################
[env:target_mumo_v2x]
platform = ststm32
;platform_packages = platformio/toolchain-gccarmnoneeabi@^1.120301.0
board = ${options.board}
framework = stm32cube
upload_protocol = stlink
monitor_speed = 115200
debug_tool = stlink
extra_scripts = pre:.github/workflows/buildinfo.py
build_unflags = -std=gnu++11
build_flags =
${options.local_build_flags}
${options.aes_hardware_software}
-D v2
debug_build_flags =
${options.common_debug_build_flags}
; #############################################################################
; ### Some Target Unit Tests ###
; #############################################################################
[env:some_target_mumo_v2x_unittests]
platform = ststm32
board = ${options.board}
framework = stm32cube
upload_protocol = stlink
build_unflags = -std=gnu++11
build_flags =
${options.local_build_flags}
${options.testing_build_flags}
-Wno-unused-function
${options.aes_hardware_software}
${options.target_test_port}
debug_tool = stlink
test_framework = unity
test_port = ${options.host_test_port}
test_filter =
;target_no_jigs/test_aes
;target_no_jigs/test_lorawan_crypto
;target_no_jigs/test_vdd_enable
;target_no_jigs/test_eeprom
;target_no_jigs/test_tsl2591
;target_no_jigs/test_sht40
target_no_jigs/test_scd40
;target_no_jigs/test_eeprom_pagewrite
;tools/test_initialize_eeprom
;tools/test_initialize_mac
;target_no_jigs/test_display
;target_no_jigs/test_screen
;target_no_jigs/test_rtc
;test_semihosting
;test_target_rng
;test_target_lowpower
;target_no_jigs/test_target_interrupts
;test_target_lptim1
;test_target_spi
;test_target_i2c
;test_target_uart1
;test_target_uart2
;test_target_lorawan_txrxcycle
;test_target_sx126x
;test_benchmark_aes
;test_target_gpio
;tools/test_read_uid64
;target_no_jigs/test_nvs
;target_no_jigs/test_HAL_timeout
;target_no_jigs/test_measurementgroupcollection
debug_test = target_no_jigs/test_scd40
; #############################################################################
; ### All Target Unit Tests ###
; #############################################################################
[env:all_target_mumo_v2x_unittests]
platform = ststm32
board = ${options.board}
framework = stm32cube
upload_protocol = stlink
build_unflags = -std=gnu++11
build_flags =
${options.local_build_flags}
${options.testing_build_flags}
-Wno-unused-function
${options.aes_hardware_software}
${options.target_test_port}
debug_tool = stlink
test_framework = unity
test_port = ${options.host_test_port}
test_filter =
test_target_*
test_generic_*
; #############################################################################
; ### Cloud Application build ###
; #############################################################################
[env:production]
platform = ststm32
board = ${options.board}
framework = stm32cube
build_unflags = -std=gnu++11
build_flags =
${options.cloud_build_flags}
-D HARDWARE_AES