platformio.ini 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [platformio]
  2. src_dir = ./
  3. include_dir = User
  4. build_dir = Build
  5. [env:genericSTM32F407IGT6]
  6. platform = ststm32
  7. board = genericSTM32F407IGT6
  8. board_build.cmsis.custom_config_header = yes
  9. ; 表示使用项目目录下的链接文件
  10. board_build.ldscript = Project/GCC/STM32F417IG_FLASH.ld
  11. extra_scripts = Project/GCC/scripts.py
  12. monitor_speed = 115200
  13. build_flags =
  14. -IUser
  15. -IUser/BSP/LED
  16. -ILibraries/CMSIS/Include
  17. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  18. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  19. ; 定义全局宏
  20. -D STM32F40_41xxx
  21. -D USE_STDPERIPH_DRIVER
  22. build_unflags =
  23. -DSTM32F407xx
  24. -DSTM32F4
  25. src_filter = +<User/> +<Project/GCC/> +<Libraries/STM32F4xx_StdPeriph_Driver/src/> +<MiddleWare/>
  26. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  27. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  28. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  29. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  30. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  31. debug_tool = stlink
  32. upload_protocol = stlink