platformio.ini 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = toolchain-gccarmnoneeabi@1.60301.0
  31. build_unflags =
  32. -Os
  33. -DARDUINO_ARCH_STM32F4
  34. build_flags =
  35. -w
  36. -DARDUINO_BLACKSASI_F411M
  37. -DARDUINO_LIB_DISCOVERY_PHASE
  38. -DARDUINO=10813
  39. -DARDUINO_ARCH_STM32
  40. -O2
  41. -DSERIAL_USB
  42. -DCRYSTAL_FREQ=25
  43. -DLED_BUILTIN=PA5
  44. -DUSBCON
  45. -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
  46. -DUSBD_VID=0x0483
  47. -DUSBD_PID=0x0100
  48. -DUSB_MANUFACTURER="SweProj"
  49. -DUSB_PRODUCT="\"BLACKSASI_F411\""
  50. -DHAL_PCD_MODULE_ENABLED
  51. -D USBD_USE_CDC
  52. ; [env:debug]
  53. ; build_type = debug
  54. ; debug_tool = stlink