-
Notifications
You must be signed in to change notification settings - Fork 12
/
platformio.rp2040.ini
56 lines (47 loc) · 1.42 KB
/
platformio.rp2040.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
; =============================== CONFIGS ===============================
[RP2040_FLASH]
build_flags =
-D KNX_FLASH_SIZE=0x8000
-D KNX_FLASH_OFFSET=0xF4000
-D OPENKNX_FLASH_SIZE=0x4000
-D OPENKNX_FLASH_OFFSET=0xFC000
; =============================== BASE ===============================
[RP2040] ; Base for Develop & Releases
extends = BASE, RP2040_2MB
; platform = raspberrypi
upload_protocol = picotool
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#2d44502
platform_packages = framework-arduinopico @ https://github.com/earlephilhower/arduino-pico/releases/download/4.1.1/rp2040-4.1.1.zip
board = rpipico ; is overwriteable in e.g. release or develop envs
board_build.core = earlephilhower
extra_scripts =
${env.extra_scripts}
lib/OGM-Common/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]
;upload_protocol = picotool