-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
44 lines (39 loc) · 1.62 KB
/
platformio.ini
File metadata and controls
44 lines (39 loc) · 1.62 KB
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
; 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 = cmsis_dap
extra_configs =
multisrc.ini
local.ini
[common]
build_flags = -O3 -Wall -Wextra -flto -Werror=override-init -Wno-address-of-packed-member -Wno-incompatible-pointer-types -Wno-main
extra_flags =
[env]
platform = https://github.com/glingy/platform-atmelsam.git#feat-cmsis-build-2
board = playground
framework = cmsis
build_src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/>
board_build.ldscript = scripts/linker/playground.ld
board_build.startup_files = scripts
build_flags = ${common.build_flags} ${common.extra_flags}
platform_packages = toolchain-gccarmnoneeabi@1.90301.200702
lib_archive = no
; Setup Notes:
; Platformio currently has very poor support for cmsis. GitHub user frankleonrose
; created a fork of the atmelsam platform which works with cmsis, and I have updated
; that fork to the current master of atmelsam. Use that. If it claims linker scripts
; are missing, make sure it's using framework-cmsis-atmelsam from frankleonrose's repo
; instead of the platformio "official" version which is missing the linker scripts and
; startup files.
[env:playground]
debug_tool = blackmagic
upload_protocol = blackmagic
debug_port = /dev/cu.usbmodemPLAYGRND1
upload_port = /dev/cu.usbmodemPLAYGRND1