platformio.ini 4.0 KB

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