platformio.ini 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
  2. [env:genericSTM32F103C8]
  3. platform = ststm32
  4. board = genericSTM32F103C8
  5. board_build.mcu = stm32f103c8t6
  6. board_build.core = maple
  7. framework = arduino
  8. lib_deps =
  9. greiman/SdFat @ ^2.0.6
  10. upload_protocol = stlink
  11. ; Different gcc versions produce much different binaries in terms of speed.
  12. ; 1.40804.0 ; 985kb/sec
  13. ; 1.60301.0 ; 1012kb/sec ***
  14. ; 1.70201.0 ; 926kb/sec
  15. ; 1.80301.0 ; 935kb/sec
  16. ; 1.80201.181220 ; 921kb/sec
  17. ; 1.90201.191206 ; 912kb/sec
  18. ; 1.90301.200702 ; default - 955kb/sec
  19. platform_packages = toolchain-gccarmnoneeabi@1.60301.0
  20. build_unflags =
  21. -Os
  22. -DARDUINO_ARCH_STM32F1
  23. build_flags =
  24. -w
  25. -DARDUINO_GENERIC_STM32F103C
  26. -DARDUINO_LIB_DISCOVERY_PHASE
  27. -DARDUINO=10813
  28. -DARDUINO_ARCH_STM32
  29. -DDEBUG_LEVEL=DEBUG_NONE
  30. -O2
  31. ; Work around for clones.
  32. ; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
  33. upload_flags = -c set CPUTAPID 0
  34. ; [env:debug]
  35. ; build_type = debug
  36. ; debug_tool = stlink