My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

stm32f4.ini 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32F4 Architecture
  8. #
  9. # Naming Example: STM32F401RGT6
  10. #
  11. # F : Foundation (sometimes High Performance F2/F4)
  12. # 4 : Cortex M4 core
  13. # 01 : Line/Features
  14. # R : 64 or 66 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
  15. # G : 1024KB Flash-memory (B:128KB, C:256KB, D:384KB, E:512KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # ARMED (STM32)
  22. #
  23. [env:ARMED]
  24. platform = ${common_stm32.platform}
  25. extends = common_stm32
  26. board = armed_v1
  27. build_flags = ${common_stm32.build_flags}
  28. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  29. #
  30. # STM32F401VE
  31. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  32. #
  33. [env:STM32F401VE_STEVAL]
  34. platform = ${common_stm32.platform}
  35. extends = stm32_variant
  36. board = marlin_STEVAL_STM32F401VE
  37. build_flags = ${stm32_variant.build_flags}
  38. -DSTM32F401xE -DDISABLE_GENERIC_SERIALUSB
  39. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  40. #
  41. # STM32F401RC
  42. #
  43. [env:FYSETC_CHEETAH_V20]
  44. platform = ${common_stm32.platform}
  45. extends = stm32_variant
  46. board = marlin_FYSETC_CHEETAH_V20
  47. board_build.offset = 0xC000
  48. build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
  49. #
  50. # FLYF407ZG
  51. #
  52. [env:FLYF407ZG]
  53. platform = ${common_stm32.platform}
  54. extends = stm32_variant
  55. board = marlin_STM32F407ZGT6
  56. board_build.variant = MARLIN_FLY_F407ZG
  57. board_build.offset = 0x8000
  58. upload_protocol = dfu
  59. #
  60. # FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
  61. #
  62. [env:FYSETC_S6]
  63. platform = ${common_stm32.platform}
  64. extends = stm32_variant
  65. board = marlin_fysetc_s6
  66. board_build.offset = 0x10000
  67. board_upload.offset_address = 0x08010000
  68. build_flags = ${stm32_variant.build_flags} -DHAL_PCD_MODULE_ENABLED
  69. debug_tool = stlink
  70. upload_protocol = dfu
  71. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  72. #
  73. # FYSETC S6 new bootloader
  74. #
  75. [env:FYSETC_S6_8000]
  76. platform = ${common_stm32.platform}
  77. extends = env:FYSETC_S6
  78. board = marlin_fysetc_s6_8000
  79. board_build.offset = 0x8000
  80. board_upload.offset_address = 0x08008000
  81. upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
  82. #
  83. # STM32F407VET6 with RAMPS-like shield
  84. # 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
  85. # Shield - https://github.com/jmz52/Hardware
  86. #
  87. [env:STM32F407VE_black]
  88. platform = ${common_stm32.platform}
  89. extends = stm32_variant
  90. board = marlin_blackSTM32F407VET6
  91. build_flags = ${stm32_variant.build_flags}
  92. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  93. #
  94. # Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
  95. # For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
  96. # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
  97. #
  98. [env:Anet_ET4_OpenBLT]
  99. platform = ${common_stm32.platform}
  100. extends = stm32_variant
  101. board = marlin_STM32F407VGT6_CCM
  102. board_build.variant = MARLIN_F4x7Vx
  103. board_build.encrypt = firmware.srec
  104. board_build.offset = 0x10000
  105. board_upload.offset_address = 0x08010000
  106. build_flags = ${stm32_variant.build_flags}
  107. -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
  108. build_unflags = ${stm32_variant.build_unflags}
  109. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  110. extra_scripts = ${stm32_variant.extra_scripts}
  111. buildroot/share/PlatformIO/scripts/openblt.py
  112. debug_tool = jlink
  113. upload_protocol = jlink
  114. #
  115. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  116. #
  117. [env:BIGTREE_SKR_PRO]
  118. platform = ${common_stm32.platform}
  119. extends = stm32_variant
  120. board = marlin_BigTree_SKR_Pro
  121. board_build.offset = 0x8000
  122. build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
  123. debug_tool = stlink
  124. upload_protocol = stlink
  125. #
  126. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  127. #
  128. [env:BIGTREE_SKR_PRO_usb_flash_drive]
  129. platform = ${common_stm32.platform}
  130. extends = env:BIGTREE_SKR_PRO
  131. platform_packages = ${stm_flash_drive.platform_packages}
  132. build_flags = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
  133. build_unflags = ${env:BIGTREE_SKR_PRO.build_unflags} -DUSBCON -DUSBD_USE_CDC
  134. #
  135. # BigTreeTech E3 RRF (STM32F407VGT6 ARM Cortex-M4)
  136. #
  137. [env:BIGTREE_E3_RRF]
  138. platform = ${common_stm32.platform}
  139. extends = stm32_variant
  140. board = marlin_STM32F407VGT6_CCM
  141. board_build.variant = MARLIN_BIGTREE_E3_RRF
  142. board_build.offset = 0x8000
  143. build_flags = ${stm32_variant.build_flags}
  144. -DSTM32F407_5VX
  145. -DSERIAL_RX_BUFFER_SIZE=255
  146. -DSERIAL_TX_BUFFER_SIZE=255
  147. #
  148. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  149. #
  150. [env:BIGTREE_GTR_V1_0]
  151. platform = ${common_stm32.platform}
  152. extends = stm32_variant
  153. board = marlin_BigTree_GTR_v1
  154. board_build.offset = 0x8000
  155. build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
  156. #
  157. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
  158. #
  159. [env:BIGTREE_GTR_V1_0_usb_flash_drive]
  160. platform = ${common_stm32.platform}
  161. extends = env:BIGTREE_GTR_V1_0
  162. platform_packages = ${stm_flash_drive.platform_packages}
  163. build_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
  164. build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
  165. #
  166. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  167. #
  168. [env:BIGTREE_BTT002]
  169. platform = ${common_stm32.platform}
  170. extends = stm32_variant
  171. board = marlin_BigTree_BTT002
  172. board_build.offset = 0x8000
  173. build_flags = ${stm32_variant.build_flags}
  174. -DSTM32F407_5VX
  175. -DHAVE_HWSERIAL2
  176. -DHAVE_HWSERIAL3
  177. -DPIN_SERIAL2_RX=PD_6
  178. -DPIN_SERIAL2_TX=PD_5
  179. #
  180. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
  181. #
  182. [env:BIGTREE_SKR_2]
  183. platform = ${common_stm32.platform}
  184. extends = stm32_variant
  185. platform_packages = ${stm_flash_drive.platform_packages}
  186. board = marlin_STM32F407VGT6_CCM
  187. board_build.variant = MARLIN_F4x7Vx
  188. board_build.offset = 0x8000
  189. board_upload.offset_address = 0x08008000
  190. build_flags = ${stm_flash_drive.build_flags}
  191. -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
  192. -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
  193. -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
  194. #
  195. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
  196. #
  197. [env:BIGTREE_SKR_2_USB]
  198. platform = ${common_stm32.platform}
  199. extends = env:BIGTREE_SKR_2
  200. build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
  201. build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
  202. #
  203. # BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4)
  204. #
  205. [env:BIGTREE_OCTOPUS_V1]
  206. platform = ${common_stm32.platform}
  207. extends = stm32_variant
  208. board = marlin_BigTree_Octopus_v1
  209. board_build.offset = 0x8000
  210. build_flags = ${stm32_variant.build_flags}
  211. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  212. #
  213. # BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
  214. #
  215. [env:BIGTREE_OCTOPUS_V1_USB]
  216. platform = ${common_stm32.platform}
  217. extends = env:BIGTREE_OCTOPUS_V1
  218. platform_packages = ${stm_flash_drive.platform_packages}
  219. build_flags = ${stm_flash_drive.build_flags}
  220. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  221. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  222. -DUSBD_IRQ_SUBPRIO=6
  223. -DUSBD_USE_CDC_MSC
  224. #
  225. # Lerdge base
  226. #
  227. [lerdge_common]
  228. platform = ${common_stm32.platform}
  229. extends = stm32_variant
  230. board = marlin_STM32F407ZGT6
  231. board_build.variant = MARLIN_LERDGE
  232. board_build.encrypt = firmware.bin
  233. board_build.offset = 0x10000
  234. build_flags = ${stm32_variant.build_flags}
  235. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  236. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  237. -DHAL_SRAM_MODULE_ENABLED
  238. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  239. extra_scripts = ${stm32_variant.extra_scripts}
  240. buildroot/share/PlatformIO/scripts/lerdge.py
  241. #
  242. # Lerdge X
  243. #
  244. [env:LERDGEX]
  245. platform = ${lerdge_common.platform}
  246. extends = lerdge_common
  247. board_build.encrypt = Lerdge_X_firmware_force.bin
  248. #
  249. # Lerdge X with USB Flash Drive Support
  250. #
  251. [env:LERDGEX_usb_flash_drive]
  252. platform = ${env:LERDGEX.platform}
  253. extends = env:LERDGEX
  254. platform_packages = ${stm_flash_drive.platform_packages}
  255. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  256. #
  257. # Lerdge S
  258. #
  259. [env:LERDGES]
  260. platform = ${lerdge_common.platform}
  261. extends = lerdge_common
  262. board_build.encrypt = Lerdge_firmware_force.bin
  263. #
  264. # Lerdge S with USB Flash Drive Support
  265. #
  266. [env:LERDGES_usb_flash_drive]
  267. platform = ${env:LERDGES.platform}
  268. extends = env:LERDGES
  269. platform_packages = ${stm_flash_drive.platform_packages}
  270. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  271. #
  272. # Lerdge K
  273. #
  274. [env:LERDGEK]
  275. platform = ${lerdge_common.platform}
  276. extends = lerdge_common
  277. board_build.encrypt = Lerdge_K_firmware_force.bin
  278. build_flags = ${lerdge_common.build_flags} -DLERDGEK
  279. #
  280. # Lerdge K with USB Flash Drive Support
  281. #
  282. [env:LERDGEK_usb_flash_drive]
  283. platform = ${env:LERDGEK.platform}
  284. extends = env:LERDGEK
  285. platform_packages = ${stm_flash_drive.platform_packages}
  286. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  287. #
  288. # RUMBA32
  289. #
  290. [env:rumba32]
  291. platform = ${common_stm32.platform}
  292. extends = stm32_variant
  293. board = rumba32_f446ve
  294. board_build.variant = MARLIN_F446VE
  295. board_build.offset = 0x0000
  296. build_flags = ${stm32_variant.build_flags}
  297. -Os -DHAL_PCD_MODULE_ENABLED
  298. -DDISABLE_GENERIC_SERIALUSB
  299. -DHAL_UART_MODULE_ENABLED
  300. -DTIMER_SERIAL=TIM9
  301. monitor_speed = 500000
  302. upload_protocol = dfu
  303. #
  304. # MKS Robin Pro V2
  305. #
  306. [env:mks_robin_pro2]
  307. platform = ${common_stm32.platform}
  308. extends = stm32_variant
  309. platform_packages = ${stm_flash_drive.platform_packages}
  310. board = genericSTM32F407VET6
  311. board_build.variant = MARLIN_F4x7Vx
  312. board_build.offset = 0x0000
  313. board_upload.offset_address = 0x08000000
  314. build_flags = ${stm_flash_drive.build_flags}
  315. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
  316. debug_tool = jlink
  317. upload_protocol = jlink
  318. #
  319. # This SPI is used by Robin Nano V3
  320. #
  321. [stm32f4_I2C1]
  322. build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
  323. #
  324. # MKS Robin Nano V3
  325. #
  326. [env:mks_robin_nano_v3]
  327. platform = ${common_stm32.platform}
  328. extends = stm32_variant
  329. board = marlin_STM32F407VGT6_CCM
  330. board_build.variant = MARLIN_F4x7Vx
  331. board_build.offset = 0xC000
  332. board_build.rename = Robin_nano_v3.bin
  333. board_upload.offset_address = 0x0800C000
  334. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  335. -DHAL_PCD_MODULE_ENABLED
  336. debug_tool = jlink
  337. upload_protocol = jlink
  338. #
  339. # MKS Robin Nano V3 with USB Flash Drive Support
  340. # Currently, using a STM32duino fork, until USB Host get merged
  341. #
  342. [env:mks_robin_nano_v3_usb_flash_drive]
  343. platform = ${common_stm32.platform}
  344. extends = env:mks_robin_nano_v3
  345. platform_packages = ${stm_flash_drive.platform_packages}
  346. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  347. -DUSE_USBHOST_HS
  348. -DUSBD_IRQ_PRIO=5
  349. -DUSBD_IRQ_SUBPRIO=6
  350. -DUSE_USB_HS_IN_FS
  351. #
  352. # MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
  353. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  354. #
  355. [env:mks_robin_nano_v3_usb_flash_drive_msc]
  356. platform = ${common_stm32.platform}
  357. extends = env:mks_robin_nano_v3_usb_flash_drive
  358. build_flags = ${env:mks_robin_nano_v3_usb_flash_drive}
  359. -DUSBD_USE_CDC_MSC