-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
25 lines (23 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
; 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:genericSTM32G030C8]
platform = ststm32
board = genericSTM32G030C8
framework = arduino
lib_deps = askuric/Simple FOC@^2.2.1
lib_archive = false
;build_type = debug
; WORKING
;build_flags = -Os ; SIMPLE
build_flags = -Os -DI2C_TIMING -DHAL_RTC_MODULE_DISABLED -DHAL_DAC_MODULE_DISABLED -DHAL_EXTI_MODULE_DISABLED -DHAL_ETH_MODULE_DISABLED -DHAL_SD_MODULE_DISABLED -DHAL_QSPI_MODULE_DISABLED -DHAL_I2S_MODULE_DISABLED -DHAL_SAI_MODULE_DISABLED -faggressive-loop-optimizations
; NOT WORKING
;build_flags = -flto -DI2C_TIMING -DHAL_RTC_MODULE_DISABLED -DHAL_DAC_MODULE_DISABLED -DHAL_EXTI_MODULE_DISABLED -DHAL_ETH_MODULE_DISABLED -DHAL_SD_MODULE_DISABLED -DHAL_QSPI_MODULE_DISABLED -DHAL_I2S_MODULE_DISABLED -DHAL_SAI_MODULE_DISABLED -mcpu=cortex-m0plus -DUSE_FULL_LL_DRIVER -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -faggressive-loop-optimizations ; OK
;build_flags = -c -Os -flto -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 ;-fexceptions -flto -D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
;build_unflags = -fno-exceptions