platformio.ini 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. -IUser/UCOS-CONFIG
  17. -ILibraries/CMSIS/Include
  18. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  19. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  20. -IMiddleWare/uCOS_II/uC-CPU
  21. -IMiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/GNU
  22. -IMiddleWare/uCOS_II/uC-LIB
  23. -IMiddleWare/uCOS_II/uCOS-BSP
  24. -IMiddleWare/uCOS_II/uCOS-II/Source
  25. -IMiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/GNU
  26. ; 定义全局宏
  27. -D STM32F40_41xxx
  28. -D USE_STDPERIPH_DRIVER
  29. build_unflags =
  30. -DSTM32F407xx
  31. -DSTM32F4
  32. src_filter = +<User/> +<Project/GCC/> +<Libraries/STM32F4xx_StdPeriph_Driver/src/>
  33. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  34. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  35. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  36. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  37. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  38. +<MiddleWare/uCOS_II>
  39. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M0>
  40. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M3>
  41. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/RealView>
  42. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/IAR>
  43. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M0>
  44. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M3>
  45. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/IAR>
  46. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  47. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  48. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M0>
  49. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M3>
  50. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/IAR>
  51. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/RealView>
  52. debug_tool = stlink
  53. upload_protocol = stlink