platformio.ini 3.3 KB

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