platformio.ini 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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/dm9k
  18. -IUser/bsp/eth
  19. -IUser/bsp/dwt
  20. -IUser/bsp/interface
  21. -IUser/bsp/iwdg
  22. -IUser/bsp/sdio
  23. -IUser/bsp/spi
  24. -IUser/bsp/timer
  25. -IUser/bsp/uart
  26. -IUser/app
  27. -IUser/app/queue
  28. -IUser/app/led
  29. -IUser/app/modbus
  30. -IUser/app/net
  31. -IUser/config/lwip
  32. -IUser/config/lwip/port
  33. -IUser/config/lwip/port/arch
  34. -IUser/config/ucos
  35. -ILibraries/CMSIS/Include
  36. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  37. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  38. -ILibraries/STM32F4x7_ETH_Driver/inc
  39. -IMiddleWare/uCOS_II/uC-CPU
  40. -IMiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/GNU
  41. -IMiddleWare/uCOS_II/uC-LIB
  42. -IMiddleWare/uCOS_II/uCOS-BSP
  43. -IMiddleWare/uCOS_II/uCOS-II/Source
  44. -IMiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/GNU
  45. -IMiddleWare/lwip-2.0.2/src/include
  46. -IMiddleWare/lwip-2.0.2/src/include/lwip
  47. -IMiddleWare/lwip-2.0.2/src/include/netif
  48. -IMiddleWare/lwip-2.0.2/src/include/posix
  49. -IMiddleWare/lwip-2.0.2/src/include/posix/sys
  50. ; -IMiddleWare/FATFS
  51. ; 定义全局宏
  52. -D STM32F40_41xxx
  53. -D USE_STDPERIPH_DRIVER
  54. # 去除编译警告
  55. -Wno-unused-variable
  56. -Wno-pointer-sign
  57. -Wno-unused-but-set-variable
  58. build_unflags =
  59. -DSTM32F407xx
  60. -DSTM32F4
  61. src_filter = +<User/>
  62. +<Project/GCC/>
  63. +<Libraries/STM32F4xx_StdPeriph_Driver/src/>
  64. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  65. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  66. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  67. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  68. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  69. +<Libraries/STM32F4x7_ETH_Driver/src/>
  70. +<MiddleWare/lwip-2.0.2/src/api>
  71. +<MiddleWare/lwip-2.0.2/src/core>
  72. +<MiddleWare/lwip-2.0.2/src/core/ipv4>
  73. +<MiddleWare/lwip-2.0.2/src/core/snmp>
  74. +<MiddleWare/lwip-2.0.2/src/netif>
  75. +<MiddleWare/lwip-2.0.2/src/netif/ppp>
  76. +<MiddleWare/uCOS_II>
  77. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M0>
  78. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M3>
  79. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/RealView>
  80. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/IAR>
  81. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M0>
  82. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M3>
  83. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/IAR>
  84. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  85. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  86. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M0>
  87. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M3>
  88. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/IAR>
  89. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/RealView>
  90. ; +<MiddleWare/FATFS>
  91. ; -<MiddleWare/FATFS/option/cc932.c>
  92. ; -<MiddleWare/FATFS/option/cc949.c>
  93. ; -<MiddleWare/FATFS/option/cc950.c>
  94. ; -<MiddleWare/FATFS/option/ccsbcs.c>
  95. ; -<MiddleWare/FATFS/option/syscall.c>
  96. ; -<MiddleWare/FATFS/option/unicode.c>
  97. debug_tool = stlink
  98. upload_protocol = stlink
  99. ; upload_protocol = custom
  100. ; upload_command = st-flash --reset write $SOURCE 0x8000000
  101. ; NIP8Q~P0pfFvRwwm75~1WqZtTr0G6xSWDNTRhboQ
  102. ; 7e499644-d264-450e-91f0-d3f3d93de4ac
  103. ; apa8Q~3j9UrBCY~d1krYkcNFYhpFG5kHHCtJJajy
  104. ; fef2d30a-a2b7-4cee-97fe-7f883af411a0