greenscsi/platformio.ini

41 lines
1.1 KiB
INI
Raw Normal View History

; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
2021-01-18 16:05:08 +00:00
[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
board_build.mcu = stm32f103c8t6
board_build.core = maple
framework = arduino
lib_deps =
greiman/SdFat @ ^2.0.4
upload_protocol = stlink
; Different gcc versions produce much different binaries in terms of speed.
; 1.40804.0 ; 985kb/sec
2021-01-20 02:36:45 +00:00
; 1.60301.0 ; 1012kb/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
2021-01-18 16:05:08 +00:00
build_unflags =
-Os
-DARDUINO_ARCH_STM32F1
2021-01-18 16:05:08 +00:00
build_flags =
-w
-DARDUINO_GENERIC_STM32F103C
-DARDUINO_LIB_DISCOVERY_PHASE
-DARDUINO=10813
-DARDUINO_ARCH_STM32
-DDEBUG_LEVEL=DEBUG_NONE
-O3
2021-01-18 16:05:08 +00:00
2021-02-06 18:07:48 +00:00
; Work around for clones.
2021-01-18 16:05:08 +00:00
; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
; upload_flags = -c set CPUTAPID 0x2ba01477
; [env:debug]
; build_type = debug
; debug_tool = stlink