platformio.ini 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 = 9600
  13. build_flags =
  14. -IUser
  15. ; -IUser/bsp
  16. -IUser/bsp/can
  17. -IUser/bsp/interface
  18. -IUser/bsp/iwdg
  19. -IUser/bsp/timer
  20. -IUser/bsp/uart
  21. -IUser/app
  22. -IUser/app/queue
  23. -IUser/app/led
  24. -IUser/app/dm9161
  25. -IUser/app/fly_uart
  26. -IUser/UCOS-CONFIG
  27. -ILibraries/CMSIS/Include
  28. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  29. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  30. -ILibraries/STM32F4x7_ETH_Driver/inc
  31. -IMiddleWare/uCOS_II/uC-CPU
  32. -IMiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/GNU
  33. -IMiddleWare/uCOS_II/uC-LIB
  34. -IMiddleWare/uCOS_II/uCOS-BSP
  35. -IMiddleWare/uCOS_II/uCOS-II/Source
  36. -IMiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/GNU
  37. -IMiddleWare/lwip-2.0.2/src/include
  38. -IMiddleWare/lwip-2.0.2/src/include/lwip
  39. -IMiddleWare/lwip-2.0.2/src/include/netif
  40. -IMiddleWare/lwip-2.0.2/src/include/posix
  41. -IMiddleWare/lwip-2.0.2/src/include/posix/sys
  42. -IMiddleWare/lwip-2.0.2/port/STM32F4xx
  43. -IMiddleWare/lwip-2.0.2/port/STM32F4xx/arch
  44. -IMiddleWare/lwip-2.0.2/port/STM32F4xx/UCOS_II
  45. ; 定义全局宏
  46. -D STM32F40_41xxx
  47. -D USE_STDPERIPH_DRIVER
  48. build_unflags =
  49. -DSTM32F407xx
  50. -DSTM32F4
  51. src_filter = +<User/>
  52. +<Project/GCC/>
  53. -<User/app/dm9000>
  54. +<Libraries/STM32F4xx_StdPeriph_Driver/src/>
  55. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  56. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  57. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  58. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  59. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  60. +<Libraries/STM32F4x7_ETH_Driver/src/>
  61. +<MiddleWare/lwip-2.0.2/src/api>
  62. +<MiddleWare/lwip-2.0.2/src/core>
  63. +<MiddleWare/lwip-2.0.2/src/core/ipv4>
  64. +<MiddleWare/lwip-2.0.2/src/core/snmp>
  65. +<MiddleWare/lwip-2.0.2/src/netif>
  66. +<MiddleWare/lwip-2.0.2/src/netif/ppp>
  67. +<MiddleWare/lwip-2.0.2/port/STM32F4xx/arch>
  68. +<MiddleWare/lwip-2.0.2/port/STM32F4xx/uCOS_II>
  69. +<MiddleWare/uCOS_II>
  70. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M0>
  71. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M3>
  72. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/RealView>
  73. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/IAR>
  74. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M0>
  75. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M3>
  76. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/IAR>
  77. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  78. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  79. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M0>
  80. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M3>
  81. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/IAR>
  82. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/RealView>
  83. debug_tool = stlink
  84. upload_protocol = stlink
  85. ; upload_protocol = custom
  86. ; upload_command = st-flash --reset write $SOURCE 0x8000000