platformio.ini 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. -ILibraries/CMSIS/Include
  16. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  17. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  18. ; 定义全局宏
  19. -D STM32F40_41xxx
  20. -D USE_STDPERIPH_DRIVER
  21. build_unflags =
  22. -DSTM32F407xx
  23. -DSTM32F4
  24. src_filter = +<User/> +<Project/GCC/> +<Libraries/STM32F4xx_StdPeriph_Driver/src/> +<MiddleWare/>
  25. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  26. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  27. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  28. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  29. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  30. debug_tool = stlink
  31. upload_protocol = stlink