-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
148 lines (128 loc) · 4.24 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
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
; 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]
; this sets the base dir for src_filter in the board-specific envs
src_dir = .
;;
;; Shared environments section
;; Board-specific environments are below this section
;;
[base1549]
; common configuration for all LPC1549 targets
platform = nxplpc
platform_packages =
tool-openocd
board = lpc1549
framework = mbed
; Workaround for https://github.com/ARMmbed/mbed-os/issues/14572
board_build.ldscript = target/LPC1549.ld
board_debug.openocd_target = "lpc1549_openocd" ; refers to target/lpc1549_openocd.cfg
board_upload.protocols = ["cmsis-dap"] ; not supported by default
upload_protocol = cmsis-dap
upload_speed = 4000
monitor_speed = 115200
; This doesn't work, it can't find openocd.cfg for some reason
;upload_protocol = custom
;upload_command =
; $PROJECT_PACKAGES_DIR/tool-openocd/bin/openocd
; -f $PROJECT_PACKAGES_DIR/tool-openocd/scripts/interface/cmsis-dap.cfg
; -f target/lpc1549_openocd.cfg
; -c "adapter speed 4000"
; -c "program $SOURCE"
; -c "reset run"
; -c "exit"
debug_tool = custom
debug_server =
$PLATFORMIO_CORE_DIR/packages/tool-openocd/bin/openocd
-f $PLATFORMIO_CORE_DIR/packages/tool-openocd/scripts/interface/cmsis-dap.cfg
-f target/lpc1549_openocd.cfg
-c "adapter speed 4000"
lib_deps =
tachyon-defs
fw-libs
build_flags =
; workaround for https://github.com/ARMmbed/mbed-os/issues/14584
-D DEVICE_USTICKER
src_build_flags =
-Wall
[sd]
; additional libraries and defines for SD card + FAT libraries
extends = base1549
lib_deps = ${base1549.lib_deps}
MbedSdFat
build_flags = ${base1549.build_flags}
-D MBED_CONF_FAT_CHAN_FFS_DBG=0
-D MBED_CONF_FAT_CHAN_FF_CODE_PAGE=437
-D MBED_CONF_FAT_CHAN_FF_FS_EXFAT=0
-D MBED_CONF_FAT_CHAN_FF_FS_HEAPBUF=0
-D MBED_CONF_FAT_CHAN_FF_FS_LOCK=0
-D MBED_CONF_FAT_CHAN_FF_FS_MINIMIZE=0
-D MBED_CONF_FAT_CHAN_FF_FS_NOFSINFO=0
-D MBED_CONF_FAT_CHAN_FF_FS_NORTC=0
-D MBED_CONF_FAT_CHAN_FF_FS_READONLY=0
-D MBED_CONF_FAT_CHAN_FF_FS_REENTRANT=0
-D MBED_CONF_FAT_CHAN_FF_FS_RPATH=1
-D MBED_CONF_FAT_CHAN_FF_FS_TIMEOUT=1000
-D MBED_CONF_FAT_CHAN_FF_FS_TINY=1
-D MBED_CONF_FAT_CHAN_FF_LFN_BUF=255
-D MBED_CONF_FAT_CHAN_FF_LFN_UNICODE=0
-D MBED_CONF_FAT_CHAN_FF_MAX_LFN=255
-D MBED_CONF_FAT_CHAN_FF_MAX_SS=4096
-D MBED_CONF_FAT_CHAN_FF_MIN_SS=512
-D MBED_CONF_FAT_CHAN_FF_MULTI_PARTITION=0
-D MBED_CONF_FAT_CHAN_FF_NORTC_MDAY=1
-D MBED_CONF_FAT_CHAN_FF_NORTC_MON=1
-D MBED_CONF_FAT_CHAN_FF_NORTC_YEAR=2017
-D MBED_CONF_FAT_CHAN_FF_SFN_BUF=12
-D MBED_CONF_FAT_CHAN_FF_STRF_ENCODE=3
-D MBED_CONF_FAT_CHAN_FF_STR_VOLUME_ID=0
-D MBED_CONF_FAT_CHAN_FF_SYNC_T=HANDLE
-D MBED_CONF_FAT_CHAN_FF_USE_CHMOD=0
-D MBED_CONF_FAT_CHAN_FF_USE_EXPAND=0
-D MBED_CONF_FAT_CHAN_FF_USE_FASTSEEK=0
-D MBED_CONF_FAT_CHAN_FF_USE_FIND=0
-D MBED_CONF_FAT_CHAN_FF_USE_FORWARD=0
-D MBED_CONF_FAT_CHAN_FF_USE_LABEL=0
-D MBED_CONF_FAT_CHAN_FF_USE_LFN=3
-D MBED_CONF_FAT_CHAN_FF_USE_MKFS=1
-D MBED_CONF_FAT_CHAN_FF_USE_STRFUNC=0
-D MBED_CONF_FAT_CHAN_FF_USE_TRIM=1
-D MBED_CONF_FAT_CHAN_FF_VOLUMES=4
-D 'MBED_CONF_FAT_CHAN_FF_VOLUME_STRS="RAM","NAND","CF","SD","SD2","USB","USB2","USB3"'
-D MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_CLUSTER=0
-D MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_SECTOR=1
;;
;; Board-specific section
;;
[env:datalogger]
extends = sd
lib_deps = ${sd.lib_deps}
nanopb/NanoPb @ 0.4.5
common-proto
graphics-api
src_filter = +<Datalogger/*>
[env:candapter]
extends = base1549
lib_deps = ${base1549.lib_deps}
graphics-api
src_filter = +<Candapter/*>
build_flags = ${base1549.build_flags} -ICandapter/
; needs additional RAM for the framebuffer
board_build.ldscript = target/LPC1549_CombinedRam.ld
[env:smu]
extends = base1549
lib_deps = ${base1549.lib_deps}
nanopb/NanoPb @ ^0.4.6
graphics-api
src_filter = +<Smu/*>
build_flags = ${base1549.build_flags} -ISmu/
; needs additional RAM for the framebuffer
board_build.ldscript = target/LPC1549_CombinedRam.ld
custom_nanopb_protos = +<Smu/proto/*.proto>