-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
72 lines (64 loc) · 1.52 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
[platformio]
default_envs = release
globallib_dir = lib ;
workspace_dir = piobuild ;
[env]
platform = ststm32
board = genericSTM32F103C8
framework = cmsis
upload_protocol = stlink
debug_tool = stlink
; **************************************************************
; ** Default toolchain for STM doesn't support C++2a/concepts **
; **************************************************************
platform_packages =
[env:release]
; *******************************************************************
; ** Most of these are PIO defaults, but repeat here for reference **
; *******************************************************************
build_flags =
-std=c++2a
-fconcepts
-fno-rtti
-fno-exceptions
-fno-use-cxa-atexit
-ffunction-sections
-fdata-sections
-mthumb
-mcpu=cortex-m3
-mfloat-abi=soft
-march=armv7-m
-Wall
-Os
-Wl,--gc-sections
; '-D' 'STM32F103xE'
; '-D' 'STM32F1'
; '-D' 'GENERIC_F103VX'
[env:debug]
build_type = debug
; *******************************************************************
; ** Most of these are PIO defaults, but repeat here for reference **
; *******************************************************************
build_flags =
-std=c++2a
-fconcepts
-fno-rtti
-fno-exceptions
-fno-use-cxa-atexit
-ffunction-sections
-fdata-sections
-mthumb
-mcpu=cortex-m3
-mfloat-abi=soft
-march=armv7-m
-Wall
-Og
-g2
-ggdb2
-v
-Wl,--verbose
; '-D' 'STM32F103xE'
; '-D' 'STM32F1'
; '-D' 'GENERIC_F103VX'