platformio.ini 4.1 KB

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