platformio.ini 3.9 KB

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