2021-01-18 15:42:03 -06:00
|
|
|
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
|
2021-01-18 10:05:08 -06:00
|
|
|
|
|
|
|
[env:genericSTM32F103C8]
|
|
|
|
platform = ststm32
|
|
|
|
board = genericSTM32F103C8
|
|
|
|
board_build.mcu = stm32f103c8t6
|
|
|
|
board_build.core = maple
|
|
|
|
framework = arduino
|
|
|
|
lib_deps =
|
2021-04-10 12:09:38 -05:00
|
|
|
greiman/SdFat @ ^2.0.6
|
2021-01-18 10:05:08 -06:00
|
|
|
upload_protocol = stlink
|
2021-01-18 20:22:40 -06:00
|
|
|
; Different gcc versions produce much different binaries in terms of speed.
|
2022-03-24 08:44:09 -05:00
|
|
|
platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
|
2021-01-18 20:22:40 -06:00
|
|
|
|
2021-01-18 10:05:08 -06:00
|
|
|
build_unflags =
|
2021-01-18 15:42:03 -06:00
|
|
|
-Os
|
|
|
|
-DARDUINO_ARCH_STM32F1
|
2021-01-18 10:05:08 -06:00
|
|
|
build_flags =
|
2021-01-18 15:42:03 -06:00
|
|
|
-w
|
|
|
|
-DARDUINO_GENERIC_STM32F103C
|
|
|
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
|
|
|
-DARDUINO=10813
|
|
|
|
-DARDUINO_ARCH_STM32
|
2021-01-19 20:36:33 -06:00
|
|
|
-DDEBUG_LEVEL=DEBUG_NONE
|
2021-06-15 16:22:19 -05:00
|
|
|
-O2
|
2021-01-18 10:05:08 -06:00
|
|
|
|
2021-02-06 12:07:48 -06:00
|
|
|
; Work around for clones.
|
2021-01-18 10:05:08 -06:00
|
|
|
; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
|
2021-05-11 09:51:36 -05:00
|
|
|
upload_flags = -c set CPUTAPID 0
|
2021-01-18 10:05:08 -06:00
|
|
|
|
|
|
|
; [env:debug]
|
|
|
|
; build_type = debug
|
|
|
|
; debug_tool = stlink
|