-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
114 lines (96 loc) · 2.6 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
; 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
; common.ini
[common_flags]
build_flags =
-I src
-I include
-I lib
; -I stm32_HAL
-Os
-flto
-ffunction-sections
-fdata-sections
-Wl,--gc-sections
-Wl,--no-wchar-size-warning
-Wl,--no-check-sections
-Wl,--wrap=after_build
-Wl,--discard-all
-Wl,--strip-all
-D BETA
-D RN3_BOARD
; -D SKIPR_BOARD
-D SPIFLASH
; -D SHUI
-D BOOTDISPLAY=MKS_TS35
; -fno-inline-small-functions
; -D USBSERDBG
; -D USBD_USE_CDC
; -D USBCON
-D USBD_USE_CDC
-D HAL_PCD_MODULE_ENABLED
-D HAL_HCD_MODULE_ENABLED
-D USE_USB_FS
; -D DEBUG
; -mfloat-abi=hard
; -mfpu=fpv4-sp-d16
; -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
; -D USBCON
; -D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
; -D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
; -D USBD_USE_CDC
; -D HAL_PCD_MODULE_ENABLED
; -D USE_USB_HS
; -D USB_MANUFACTURER_STRING="\"Datalogger_8\""
; -D USB_PRODUCT_STRING="\"Datalogger_8_v0.6\""
; -D USE_USB_FS
; -D HAL_PCD_MODULE_ENABLED
; -D HAL_HCD_MODULE_ENABLED
; -D USBD_USE_CDC
; -D USBCON
; -include include/ifaces.h
[env:bootloader]
platform = ststm32
board = genericSTM32F407VET6
framework = arduino
lib_deps =
SPI
SdFat
LowPowerLab/SPIFlash
TFT_eSPI
upload_protocol = stlink
build_flags =
${common_flags.build_flags}
-D PIO_SRC_NAMING=bootloader
-D BOOTLOADER
; -D WIFI
; extra_scripts = pre:post_build_check.py
; board_build.ldscript = stm32f407v.ld ; linker with offset
; board_upload.offset_address = 0x0800C000
extra_scripts =
post_build.py
[env:preloader]
platform = ststm32
board = genericSTM32F407VET6
framework = arduino
lib_deps =
SPI
SdFat
LowPowerLab/SPIFlash
TFT_eSPI
upload_protocol = stlink
build_flags =
${common_flags.build_flags}
-D PIO_SRC_NAMING=preloader
; -D BOOTLOADER
; extra_scripts = pre:post_build_check.py
board_build.ldscript = stm32f407v.ld ; linker with offset
board_upload.offset_address = 0x0800C000
extra_scripts = post_build.py