platformio.ini 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. upload_protocol = stlink
  21. debug_tool = stlink
  22. ; Different gcc versions produce much different binaries in terms of speed.
  23. ; 1.40804.0 ; 985kb/sec
  24. ; 1.60301.0 ; 1012kb/sec ***
  25. ; 1.70201.0 ; 926kb/sec
  26. ; 1.80301.0 ; 935kb/sec
  27. ; 1.80201.181220 ; 921kb/sec
  28. ; 1.90201.191206 ; 912kb/sec
  29. ; 1.90301.200702 ; default - 955kb/sec
  30. platform_packages = platformio/toolchain-gccarmnoneeabi@1.60301.0
  31. ;toolchain-gccarmnoneeabi@1.60301.0
  32. ;toolchain-gccarmnoneeabi@1.90301.200702
  33. build_unflags =
  34. -Os
  35. -DARDUINO_ARCH_STM32F4
  36. build_flags =
  37. -w
  38. -DARDUINO_BLACKSASI_F411M
  39. -DARDUINO_LIB_DISCOVERY_PHASE
  40. -DARDUINO=10813
  41. -DARDUINO_ARCH_STM32
  42. -O2
  43. -DSERIAL_USB
  44. -DCRYSTAL_FREQ=25
  45. -DLED_BUILTIN=PA5
  46. -DUSBCON
  47. -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
  48. -DUSBD_VID=0x0483
  49. -DUSBD_PID=0x0100
  50. -DUSB_MANUFACTURER="SweProj"
  51. -DUSB_PRODUCT="\"BLACKSASI_F411\""
  52. -DHAL_PCD_MODULE_ENABLED
  53. -D USBD_USE_CDC
  54. ; [env:debug]
  55. ; build_type = debug
  56. ; debug_tool = stlink