platformio.ini 3.3 KB

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