platformio.ini 852 B

12345678910111213141516171819202122232425262728293031323334
  1. ; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
  2. [env]
  3. framework = arduino
  4. lib_deps =
  5. greiman/SdFat @ ^2.0.6
  6. upload_protocol = stlink
  7. ; Different gcc versions produce much different binaries in terms of speed.
  8. platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
  9. build_flags =
  10. -w
  11. -DARDUINO_GENERIC_STM32F103C
  12. -DARDUINO_LIB_DISCOVERY_PHASE
  13. -DARDUINO=10813
  14. -DARDUINO_ARCH_STM32
  15. -DDEBUG_LEVEL=DEBUG_NONE
  16. -O2
  17. build_unflags =
  18. -Os
  19. -DARDUINO_ARCH_STM32F1
  20. upload_flags = -c set CPUTAPID 0
  21. [env:STM32F103C8]
  22. platform = ststm32
  23. board = genericSTM32F103C8
  24. board_build.mcu = stm32f103c8t6
  25. board_build.core = maple
  26. [env:STM32F103C8-XCVR]
  27. extends = env:STM32F103C8
  28. build_flags = ${env.build_flags} -DXCVR
  29. ; [env:debug]
  30. ; build_type = debug
  31. ; debug_tool = stlink