platformio.ini 4.6 KB

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