platformio.ini 889 B

123456789101112131415161718192021222324252627282930313233
  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. platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
  13. build_unflags =
  14. -Os
  15. -DARDUINO_ARCH_STM32F1
  16. build_flags =
  17. -w
  18. -DARDUINO_GENERIC_STM32F103C
  19. -DARDUINO_LIB_DISCOVERY_PHASE
  20. -DARDUINO=10813
  21. -DARDUINO_ARCH_STM32
  22. -DDEBUG_LEVEL=DEBUG_NONE
  23. -O2
  24. ; Work around for clones.
  25. ; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
  26. upload_flags = -c set CPUTAPID 0
  27. ; [env:debug]
  28. ; build_type = debug
  29. ; debug_tool = stlink