platformio.ini 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [env:blacksasi_f411]
  11. platform = ststm32
  12. board = blacksasi_f411m
  13. ;board.variants_dir = /home/pm/project/stm32/BlackSASI/sw/variant/blacksasi_f411m
  14. board.variants_dir = C:\Users\martenssonp\projects\BlackSASI\sw\variant\blacksasi_f411m
  15. framework = arduino
  16. board_build.core = maple
  17. lib_deps =
  18. greiman/SdFat@^2.2.0
  19. bblanchon/ArduinoJson @ ^6.19.3
  20. ;https://github.com/ZulNs/STM32F1_RTC#master
  21. upload_protocol = stlink
  22. debug_tool = stlink
  23. ; Different gcc versions produce much different binaries in terms of speed.
  24. ; 1.40804.0 ; 985kb/sec
  25. ; 1.60301.0 ; 1012kb/sec ***
  26. ; 1.70201.0 ; 926kb/sec
  27. ; 1.80301.0 ; 935kb/sec
  28. ; 1.80201.181220 ; 921kb/sec
  29. ; 1.90201.191206 ; 912kb/sec
  30. ; 1.90301.200702 ; default - 955kb/sec
  31. platform_packages = platformio/toolchain-gccarmnoneeabi@1.60301.0
  32. ;toolchain-gccarmnoneeabi@1.60301.0
  33. ;platform_packages =platformio/toolchain-gccarmnoneeabi@1.90301.200702
  34. build_unflags =
  35. -Os
  36. -DARDUINO_ARCH_STM32F4
  37. build_flags =
  38. -w
  39. -DARDUINO_BLACKSASI_F411M
  40. -DARDUINO_LIB_DISCOVERY_PHASE
  41. -DARDUINO=10813
  42. -DARDUINO_ARCH_STM32
  43. -DDEBUG_LEVEL=DEBUG_NONE
  44. -D BUILD_TAGS="\"-USB-96MHz\""
  45. -O2
  46. -DSERIAL_USB
  47. -DCRYSTAL_FREQ=25
  48. -DLED_BUILTIN=PA5
  49. -DUSBCON
  50. -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
  51. -DUSBD_VID=0x0483
  52. -DUSBD_PID=0x0100
  53. -DUSB_MANUFACTURER="SweProj"
  54. -DUSB_PRODUCT="\"BLACKSASI_F411\""
  55. -DHAL_PCD_MODULE_ENABLED
  56. -D USBD_USE_CDC
  57. -DBOARD_RCC_PLLMUL=RCC_PLLMUL_12
  58. ; [env:debug]
  59. ; build_type = debug
  60. ; debug_tool = stlink