platformio.ini 3.4 KB

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