-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
60 lines (56 loc) · 1.26 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
; 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 = RT3s
[env:RT3s]
platform = ststm32
board = genericSTM32F405RG
framework = libopencm3
lib_archive = no
board_build.ldscript = ld/stm32f405_linker.ld
extra_scripts = scripts/wrap_fw.py, scripts/upload.py
upload_protocol = custom
upload_flags =
-f
-i
; -d 0 this flag is hard coded is scripts/upload.py because platformIO otherwise throws a syntax error
build_flags =
-Wl,--gc-sections
-Wall
-Wextra
-Werror
-Wshadow
-Wdouble-promotion
-Wundef
-fno-common
-fstack-usage
-g3
-Os
-ffunction-sections
-fdata-sections
[env:nucleo_f334r8]
platform = ststm32
board = nucleo_f334r8
framework = libopencm3
upload_protocol = stlink
build_flags =
-Wl,--gc-sections
-Wall
-Wextra
-Werror
-Wshadow
-Wdouble-promotion
-Wundef
-fno-common
-fstack-usage
-g3
-Os
-ffunction-sections
-fdata-sections