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. -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/usbh
  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_Device_Library/Class/audio/inc
  54. -ILibraries/STM32_USB_Device_Library/Class/cdc/inc
  55. -ILibraries/STM32_USB_Device_Library/Class/dfu/inc
  56. -ILibraries/STM32_USB_Device_Library/Class/hid/inc
  57. -ILibraries/STM32_USB_Device_Library/Class/msc/inc
  58. -ILibraries/STM32_USB_HOST_Library/Core/inc
  59. -ILibraries/STM32_USB_HOST_Library/Class/MSC/inc
  60. -ILibraries/STM32_USB_HOST_Library/Class/HID/inc
  61. -ILibraries/STM32_USB_OTG_Driver/inc
  62. -IMiddleWare/uCOS_II/uC-CPU
  63. -IMiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/GNU
  64. -IMiddleWare/uCOS_II/uC-LIB
  65. -IMiddleWare/uCOS_II/uCOS-BSP
  66. -IMiddleWare/uCOS_II/uCOS-II/Source
  67. -IMiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/GNU
  68. -IMiddleWare/lwip-2.0.2/src/include
  69. -IMiddleWare/lwip-2.0.2/src/include/lwip
  70. -IMiddleWare/lwip-2.0.2/src/include/netif
  71. -IMiddleWare/lwip-2.0.2/src/include/posix
  72. -IMiddleWare/lwip-2.0.2/src/include/posix/sys
  73. -IMiddleWare/FATFS/src
  74. -IMiddleWare/cJSON
  75. ; 定义全局宏
  76. -D STM32F40_41xxx
  77. -D USE_STDPERIPH_DRIVER
  78. # 去除编译警告
  79. -Wno-unused-variable
  80. -Wno-pointer-sign
  81. -Wno-unused-but-set-variable
  82. -O0
  83. build_unflags =
  84. -DSTM32F407xx
  85. -DSTM32F4
  86. -Os
  87. build_src_filter = +<User/>
  88. +<Project/GCC/>
  89. +<Libraries/STM32F4xx_StdPeriph_Driver/src/>
  90. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  91. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  92. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  93. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  94. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  95. +<Libraries/STM32F4x7_ETH_Driver/src/>
  96. ; +<ILibraries/STM32_USB_Device_Library/>
  97. ; +<ILibraries/STM32_USB_HOST_Library/>
  98. ; -<ILibraries/STM32_USB_HOST_Library/Class/MSC/src/usbh_msc_fatfs.c>
  99. ; +<Libraries/STM32_USB_OTG_Driver/>
  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