-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
64 lines (60 loc) · 2.64 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
; 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 = rp2040-rel
[env]
platform = raspberrypi
framework = arduino
; board has 16MB of flash per the specs - limiting here to 4MB as more than sufficient; overwriting the default config that only specifies 2MB
; Defaults are specified at ~\.platformio\platforms\raspberrypi\boards\nanorp2040connect.json
board_upload.maximum_size=4194304
lib_deps =
arduino-libraries/WiFiNINA @ ^1.8.14
arduino-libraries/NTPClient @ ^3.2.1
arduino-libraries/Arduino_LSM6DSOX @ ^1.1.2
fastled/FastLED @ ^3.6
bblanchon/ArduinoJson @ ^6.21.3
paulstoffregen/Time @ ^1.6.1
arduino-libraries/ArduinoECCX08 @ ^1.3.7
;khoih-prog/LittleFS_Mbed_RP2040 @ ^1.1.0
;embeddedartistry/LibPrintf @ ^1.2.13
; this ArduinoLog library has been branched locally in lib folder in order to fix a bug related to disabling logging. Eventually a MR will need to be created and pushed to the repo
;thijse/ArduinoLog @ ^1.1.1
[env:rp2040-rel]
board = nanorp2040connect
monitor_speed = 115200
; override compiler
platform_packages =
toolchain-gccarmnoneeabi @ ^1.120301.0
; ignore all warnings - comment this when adding new libraries, or making major code changes
build_flags =
-w
!python build_info.py
; build_unflags=-std=gnu++14
[env:rp2040-dbg]
board = nanorp2040connect
monitor_speed = 115200
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
; ignore all warnings - comment this when adding new libraries, or making major code changes
build_flags =
-w
-D GIT_COMMIT=\"DBG\"
-D GIT_COMMIT_SHORT=\"DBG\"
-D GIT_BRANCH=\"DEV\"
-D BUILD_TIME=\"NOW\"
; See Readme - custom OpenOCD with Nano RP2040 Connect Atmel 16MB flash chip specifications added - built from source at https://github.com/raspberrypi/openocd.git branch rp2040-v0.12.0
platform_packages =
tool-openocd-raspberrypi=symlink:///home/dan/Code/Tools/openocd-rp2040-earle
;;FOR PIO HOME INSPECTION only: to succeed building debug flavor, in efx_setup.h add #define FASTLED_ALLOW_INTERRUPTS 0 before including the PaletteFactory.h; see https://github.com/FastLED/FastLED/issues/1481
build_type = debug
debug_build_flags = -Og -ggdb -DFASTLED_ALLOW_INTERRUPTS=0
debug_speed = 5000
;;debug_svd_path=/home/dan/.platformio/packages/framework-arduino-mbed/svd/rp2040.svd