platformio.ini 5.1 KB

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