-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
139 lines (126 loc) · 3.58 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
; 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 = stm32f401
[env]
extra_scripts = pre:compress_dictionary.py
framework = arduino
lib_deps =
lib_ldf_mode = deep+
lib_archive = no
debug_build_flags = -O0 -g -ggdb
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
board_build.core = earlephilhower
; monitor_port = /dev/ttyACM2
monitor_speed = 115200
build_unflags = -Os
debug_tool = blackmagic
debug_port = /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__BlackPill-F401CC__v1.10.0-rc0-12-gf278db4b_329F35753238-if00 ; -if02 is the other port
upload_protocol = blackmagic
upload_port = /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__BlackPill-F401CC__v1.10.0-rc0-12-gf278db4b_329F35753238-if00 ; -if02 is the other port
[env:esp32s2]
platform = espressif32
board = lolin_s2_mini
build_flags =
[env:native]
platform = native
framework =
debug_test = test_fifo
lib_deps = fabiobatsilva/ArduinoFake@^0.4.0
lib_archive = no
build_unflags = -Os
build_flags =
-g
-ggdb
-O0
-DUNITY_EXCLUDE_FLOAT
-DUNITY_INCLUDE_PRINT_FORMATTED
-std=gnu++17
-D_TEST
[env:stm32f401]
platform = ststm32
board = blackpill_f401cc
monitor_speed = 115200
; monitor_port = /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__BlackPill-F401CC__v1.10.0-rc0-12-gf278db4b_329F35753238-if02 ; -if02 is the other port
upload_protocol = stlink
debug_tool = stlink
; debug_tool = blackmagic
; debug_port = /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__BlackPill-F401CC__v1.10.0-rc0-12-gf278db4b_329F35753238-if00 ; -if02 is the other port
; upload_protocol = blackmagic
; upload_port = /dev/serial/by-id/usb-Black_Magic_Debug_Black_Magic_Probe__BlackPill-F401CC__v1.10.0-rc0-12-gf278db4b_329F35753238-if00 ; -if02 is the other port
build_unflags = -Os
debug_build_flags =
-g
-ggdb
-O3
-DUSBD_USE_CDC
-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-DPIO_FRAMEWORK_ARDUINO_USB_FULLSPEED
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
-DSERIAL_TX_BUFFER_SIZE=256
-DSERIAL_RX_BUFFER_SIZE=1024
build_flags =
-O3
-DUSBD_USE_CDC
-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-DPIO_FRAMEWORK_ARDUINO_USB_FULLSPEED
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
-DSERIAL_TX_BUFFER_SIZE=256
-DSERIAL_RX_BUFFER_SIZE=1024
[env:teensy]
platform = teensy
board = teensy41
build_flags =
-Wall
-Wextra
[env:aioli-foc]
platform = ststm32
board = genericSTM32G431CB
board_build.f_cpu = 168000000
framework = arduino
upload_protocol = stlink
debug_tool = stlink
monitor_speed = 115200
lib_ldf_mode = deep+
monitor_eol = LF
build_unflags = -Os
build_flags =
-g
-ggdb
-O3
-flto
-D USBCON
-D SIMPLEFOC_STM32_DEBUG
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
; -D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
-D HAL_CAN_MODULE_ENABLED
; -D HAS_MONITOR
-DSERIAL_TX_BUFFER_SIZE=256
-DSERIAL_RX_BUFFER_SIZE=1024
debug_build_flags =
-Os
-g
-ggdb
-D USBCON
-D SIMPLEFOC_STM32_DEBUG
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
; -D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
-D HAL_CAN_MODULE_ENABLED
; -D HAS_MONITOR
-DSERIAL_TX_BUFFER_SIZE=256
-DSERIAL_RX_BUFFER_SIZE=1024
lib_deps =
askuric/Simple FOC@^2.2.3
simplefoc/SimpleFOCDrivers@^1.0.2
lib_archive = false