-
Notifications
You must be signed in to change notification settings - Fork 7
/
platformio.custom.ini
266 lines (230 loc) · 7.35 KB
/
platformio.custom.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
[custom]
build_flags =
-D LOGICMODULE
-D OPENKNX_LOOPTIME_WARNING=100
; -D KNX_AUTO_ADAPT
; -D KNX_WAIT_FOR_ADDR # ensures rx of an address (GA or PA) with higher ACK probability, but takes 7ms in knx.loop()!
; -D OPENKNX_LOOPTIME_WARNING=13 # should be set with KNX_WAIT_FOR_ADDR to OPENKNX_LOOPTIME_WARNING + 7
; debug parameters
[custom_develop]
extends = custom
build_flags =
${custom.build_flags}
-D OPENKNX_HEARTBEAT
; -D OPENKNX_HEARTBEAT_PRIO
; -D OPENKNX_RTT
; -D BUFFER_SIZE_UP=10240
; -D DEBUG_LOOP_TIME=10 ; will print a info when a loop took more than x ms.
; -D LOGIC_TRACE
; ; to see trace logs, they must match one of the 5 filters (TRACE_LOG1 .. TRACE_LOG2)
; "-D OPENKNX_TRACE1=Common.*"
; "-D OPENKNX_TRACE2=Flash.*"
debug_build_flags =
-D OPENKNX_DEBUGGER
-ggdb3
; this config block is for specifing options that are valid for all RP2040-based builds
[RP2040_custom]
extends = RP2040, custom
; platform = https://github.com/maxgerhardt/platform-raspberrypi.git#0b2e90a
; platform_packages = framework-arduinopico @ https://github.com/earlephilhower/arduino-pico/releases/download/2.7.3/rp2040-2.7.3.zip
; board = pico
build_flags =
-D SERIAL_DEBUG=Serial
-D USE_KNX_DMA_UART=0
-D USE_KNX_DMA_IRQ=0
; -D SERIAL_HF=Serial2
-Wunused-variable
; this config block is for specifing options that are valid for all RP2040-based develop/debug builds
[RP2040_custom_develop]
extends = RP2040_develop, RP2040_custom, custom_develop, RP2040_EXCHANGE_2MB
build_flags =
${RP2040_develop.build_flags}
${RP2040_custom.build_flags}
${custom_develop.build_flags}
${RP2040_EXCHANGE_2MB.build_flags}
${KNX_TP.build_flags}
debug_build_flags =
${custom_develop.debug_build_flags}
-O0
; this config block is for specifing options that are valid for all RP2040-based release builds
[RP2040_custom_releases]
extends = RP2040_releases, RP2040_custom, custom
build_flags =
${RP2040_releases.build_flags}
${RP2040_custom.build_flags}
${custom.build_flags}
-D OPENKNX_DEBUG
-O0
[RP2040_custom_releases_TP]
extends = RP2040_custom_releases, KNX_TP
build_flags =
${RP2040_custom_releases.build_flags}
${KNX_TP.build_flags}
[RP2040_custom_releases_TP_2MB]
extends = RP2040_custom_releases_TP, RP2040_EXCHANGE_2MB
build_flags =
${RP2040_EXCHANGE_2MB.build_flags}
${RP2040_custom_releases_TP.build_flags}
[RP2040_custom_releases_TP_16MB]
extends = RP2040_custom_releases_TP, RP2040_EXCHANGE_16MB
build_flags =
${RP2040_EXCHANGE_16MB.build_flags}
${RP2040_custom_releases_TP.build_flags}
[RP2040_custom_releases_IP]
extends = RP2040_custom_releases, KNX_IP
build_flags =
${RP2040_custom_releases.build_flags}
${KNX_IP.build_flags}
; this config block is for specifing options that are valid for all SAMD-based builds
[SAMD_custom]
extends = SAMD, custom
build_flags =
-D SERIAL_DEBUG=SerialUSB
-D KNX_DEBUG_SERIAL=SerialUSB
-D KNX_SERIAL=Serial1
; this config block is for specifing options that are valid for all SAMD-based develop/debug builds
[SAMD_custom_develop]
extends = SAMD_custom, SAMD_develop, custom_develop, KNX_TP
build_flags =
${SAMD_develop.build_flags}
${SAMD_custom.build_flags}
${custom_develop.build_flags}
${KNX_TP.build_flags}
debug_build_flags =
${custom_develop.debug_build_flags}
-Os
; this config block is for specifing options that are valid for all SAMD-based release builds
[SAMD_custom_releases]
extends = SAMD_releases, SAMD_custom, custom
build_flags =
${SAMD_releases.build_flags}
${SAMD_custom.build_flags}
${custom.build_flags}
${KNX_TP.build_flags}
-Os
[env:develop_SAMD]
extends = SAMD_custom_develop
build_flags =
${SAMD_custom_develop.build_flags}
-D BOARD_MASIFI_V3
; -D OPENKNX_NO_BOOT_PULSATING
; -D BOARD_MASIFI_V31
[env:develop_RP2040]
extends = RP2040_custom_develop, RP2040_EXCHANGE_2MB
build_flags =
${RP2040_custom_develop.build_flags}
; -D BOARD_SMARTMF_1TE_RP2040
-D BOARD_MASIFI_V40
; -D OKNXHW_REG1_BASE_V1
; -D OKNXHW_REG1_CONTROLLER2040_V1
; -D OKNXHW_REG1_CONTROLLER2040
; -D BOARD_SIRSYDOM_PIPICO_BCU_CONNECTOR
; -D BOARD_MASIFI_PICO
; -D BOARD_MASIFI_HFPM_DEVEL2
; -D BOARD_ABTOOLS_FINGERPRINT_V13
; -D BOARD_ABTOOLS_HFPM_HLKLD2420
; debug_server =
; C:\Program Files\SEGGER\JLink\JLinkGDBServer
; -singlerun
; -nohalt
; -if
; SWD
; -select
; USB
; -port
; 2331
; -device
; RP2040_M0_0
; debug_extra_cmds =
; monitor reset # After sart reset the target
; shell sleep 1 # wait a second,
; cont # then Continue (This will auto skip the init break)
; ;load ; # Load is not needed here
[env:develop_REG1_BASE_IP]
extends = RP2040_UPLOAD_USB, RP2040_custom_develop, RP2040_EXCHANGE_16MB, KNX_IP
build_flags =
${RP2040_EXCHANGE_16MB.build_flags}
${RP2040_custom_develop.build_flags}
${KNX_IP.build_flags}
-D DEVICE_REG1_BASE_IP
; -D KNX_IP_GENERIC
-D KNX_IP_LAN
-D KNX_LOG_IP
[env:upload_USB_SAMD]
extends = SAMD_UPLOAD_USB, env:develop_SAMD
[env:upload_JLINK_SAMD]
extends = UPLOAD_JLINK, env:develop_SAMD
[env:upload_USB_RP2040]
extends = RP2040_UPLOAD_USB, env:develop_RP2040
[env:upload_JLINK_RP2040]
extends = UPLOAD_JLINK, env:develop_RP2040
; Releases
[env:release_Sensormodul_Breakout_RP2040]
extends = RP2040_custom_releases_TP_2MB
build_flags =
${RP2040_custom_releases_TP_2MB.build_flags}
-D BOARD_MASIFI_SENSOR_BREAKOUT
[env:release_Sensormodul_v31_SAMD]
extends = SAMD_custom_releases
build_flags =
${SAMD_custom_releases.build_flags}
-D BOARD_MASIFI_V31
[env:release_Sensormodul_v30_SAMD]
extends = SAMD_custom_releases
build_flags =
${SAMD_custom_releases.build_flags}
-D BOARD_MASIFI_V3
[env:release_Sensormodul_v40_RP2040]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D BOARD_MASIFI_V40
[env:release_PiPico_BCU_Connector]
extends = RP2040_custom_releases_TP_2MB
build_flags =
${RP2040_custom_releases_TP_2MB.build_flags}
-D DEVICE_PIPICO_BCU_CONNECTOR
[env:release_1TE_RP2040_SmartMF]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D BOARD_SMARTMF_1TE_RP2040
[env:release_OpenKNX_REG1_BASE_V0]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D DEVICE_REG1_BASE_V0
[env:release_OpenKNX_REG1_BASE_V1]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D DEVICE_REG1_BASE_V1
[env:release_RP2040_devel]
extends = RP2040_custom_releases_TP_2MB
build_flags =
${RP2040_custom_releases_TP_2MB.build_flags}
-D BOARD_MASIFI_HFPM_DEVEL
[env:release_RealPresence]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D BOARD_MASIFI_HFPM_DEVEL2
[env:release_RealPresence_v20]
extends = RP2040_custom_releases_TP_16MB
build_flags =
${RP2040_custom_releases_TP_16MB.build_flags}
-D BOARD_MASIFI_HFPM_V20
[env:release_Fingerprint_v13_RP2040]
extends = RP2040_custom_develop, RP2040_16MB
build_flags =
${RP2040_custom_releases.build_flags}
-D BOARD_ABTOOLS_FINGERPRINT_V13
[env:release_REG1_BASE_IP]
extends = RP2040_UPLOAD_USB, RP2040_custom_releases_IP, RP2040_EXCHANGE_16MB
build_flags =
${RP2040_EXCHANGE_16MB.build_flags}
${RP2040_custom_releases_IP.build_flags}
-D DEVICE_REG1_BASE_IP
; -D KNX_IP_WIFI
-D KNX_IP_LAN
-D CONFIG_ETH_ENABLED