platformio.ini 1.5 KB

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