-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
49 lines (45 loc) · 1.54 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
; 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
[env]
platform = [email protected]
board = genericSTM32F072C8
; framework = stm32cube
monitor_speed = 115200
upload_protocol = jlink
debug_tool = jlink
extra_scripts = pio_link_flags.py
board_build.ldscript = src/cubemx/STM32F072C8Ux_FLASH.ld
build_flags =
-I src/cubemx/Inc
-I src/cubemx/Drivers/STM32F0xx_HAL_Driver/Inc
-I src/cubemx/Drivers/CMSIS/Device/ST/STM32F0xx/Include
-I src/cubemx/Drivers/CMSIS/Include
-I src/usb/STM32_USB_Device_Library/Class/CDC/Inc
-I src/usb/STM32_USB_Device_Library/Class/MSC/Inc
-I src/usb/STM32_USB_Device_Library/Core/Inc
-I src/usb
-I src/usb/ringbuf
-I src/flash
-I src/flash/sfud/inc
-I src/cubemx/Middlewares/Third_Party/FatFs/src
-I src/midi
src_filter =
+<*>
-<cubemx/Src/main.c>
-<cubemx/Src/usb*> # ignore generated usb .c files, because we need to make modifications to them for the USB composite device to work
-<cubemx/Middlewares/ST> # ignore cubemx Middleware for the same reason as above
-<cubemx/Src/user_diskio.c>
[env:jlink]
upload_protocol = jlink
[env:dfu]
upload_protocol = dfu
[env:F072CB]
board = genericSTM32F072CB
board_build.ldscript = src/cubemx/STM32F072CBUx_FLASH.ld