|
@@ -9,8 +9,16 @@ framework = arduino
|
|
|
lib_deps =
|
|
lib_deps =
|
|
|
greiman/SdFat @ ^2.0.4
|
|
greiman/SdFat @ ^2.0.4
|
|
|
upload_protocol = stlink
|
|
upload_protocol = stlink
|
|
|
-; Older gcc version produces much faster binaries than the latest.
|
|
|
|
|
-platform_packages = toolchain-gccarmnoneeabi@1.40804.0
|
|
|
|
|
|
|
+; Different gcc versions produce much different binaries in terms of speed.
|
|
|
|
|
+; 1.40804.0 ; 985kb/sec
|
|
|
|
|
+; 1.60301.0 ; 1004kb/sec ***
|
|
|
|
|
+; 1.70201.0 ; 926kb/sec
|
|
|
|
|
+; 1.80301.0 ; 935kb/sec
|
|
|
|
|
+; 1.80201.181220 ; 921kb/sec
|
|
|
|
|
+; 1.90201.191206 ; 912kb/sec
|
|
|
|
|
+; 1.90301.200702 ; default - 955kb/sec
|
|
|
|
|
+platform_packages = toolchain-gccarmnoneeabi@1.60301.0
|
|
|
|
|
+
|
|
|
build_unflags =
|
|
build_unflags =
|
|
|
-Os
|
|
-Os
|
|
|
-DARDUINO_ARCH_STM32F1
|
|
-DARDUINO_ARCH_STM32F1
|
|
@@ -22,15 +30,11 @@ build_flags =
|
|
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
|
|
-DARDUINO=10813
|
|
-DARDUINO=10813
|
|
|
-DARDUINO_ARCH_STM32
|
|
-DARDUINO_ARCH_STM32
|
|
|
- ; --param max-inline-insns-single=500 ; PlatformIO doesnt like this?
|
|
|
|
|
|
|
|
|
|
; Possible work around for clones, untested.
|
|
; Possible work around for clones, untested.
|
|
|
; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
|
|
; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
|
|
|
; upload_flags = -c set CPUTAPID 0x2ba01477
|
|
; upload_flags = -c set CPUTAPID 0x2ba01477
|
|
|
|
|
|
|
|
-; Unsure if needed to ignore anymore or not.
|
|
|
|
|
-; lib_ignore = USBComposite/, FreeRTOS701, FreeRTOS821, FreeRTOS900, Ethernet_STM, libmaple
|
|
|
|
|
-
|
|
|
|
|
; [env:debug]
|
|
; [env:debug]
|
|
|
; build_type = debug
|
|
; build_type = debug
|
|
|
; debug_tool = stlink
|
|
; debug_tool = stlink
|