-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatformio.ini
64 lines (53 loc) · 1.58 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
[RP2040_FLASH]
build_flags =
-D KNX_FLASH_OFFSET=0x100000
-D KNX_FLASH_SIZE=0x10000
; muss >= KNX_FLASH_OFFSET + KNX_FLASH_SIZE
-D OPENKNX_FLASH_OFFSET=0x110000
-D OPENKNX_FLASH_SIZE=0x4000
; =============================== BASE ===============================
[RP2040] ; Base for Develop & Releases
extends = BASE, RP2040_2MB
; platform = raspberrypi
upload_protocol = picotool
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#39b9039
platform_packages = framework-arduinopico @ https://github.com/earlephilhower/arduino-pico/releases/download/4.4.0/rp2040-4.4.0.zip
board = rpipico ; is overwriteable in e.g. release or develop envs
board_build.core = earlephilhower
extra_scripts =
${env.extra_scripts}
lib/OGM-Common/scripts/pio/patch_uf2.py
build_flags =
${BASE.build_flags}
${RP2040_FLASH.build_flags}
-D USE_TP_RX_QUEUE
-D PIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
[RP2040_develop] ; Develop Only
extends = RP2040
build_type = debug
build_flags =
-D OPENKNX_WAIT_FOR_SERIAL=5000
-D OPENKNX_DEBUG
${RP2040.build_flags}
[RP2040_releases] ; Release Only
extends = RP2040
build_flags =
-D OPENKNX_WATCHDOG
${RP2040.build_flags}
; 16MB Flash
[RP2040_16MB]
board_upload.maximum_size = 16777216
board_build.filesystem_size = 15724544
; 2MB Flash
[RP2040_2MB]
board_upload.maximum_size = 2097152
board_build.filesystem_size = 1044480
; obsolete
[RP2040_UPLOAD_USB]
[platformio]
libdeps_dir = /tmp/libdeps
extra_configs =
lib/OGM-Common/platformio.base.ini
; lib/OGM-Common/platformio.rp2040.ini
lib/OFM-UsbExchange/platformio.exchange.ini
platformio.custom.ini