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 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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 (0:M0, 1-2:M3, 3-4:M4, 7:M7)
  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
  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. -DMF_RX_BUFFER_SIZE=255
  146. -DMF_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. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
  195. #
  196. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
  197. #
  198. [env:BIGTREE_SKR_2_USB]
  199. platform = ${common_stm32.platform}
  200. extends = env:BIGTREE_SKR_2
  201. build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
  202. build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
  203. #
  204. # BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4)
  205. #
  206. [env:BIGTREE_OCTOPUS_V1]
  207. platform = ${common_stm32.platform}
  208. extends = stm32_variant
  209. board = marlin_BigTree_Octopus_v1
  210. board_build.offset = 0x8000
  211. build_flags = ${stm32_variant.build_flags}
  212. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  213. #
  214. # BigTreeTech Octopus V1.0/1.1 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
  215. #
  216. [env:BIGTREE_OCTOPUS_V1_USB]
  217. platform = ${common_stm32.platform}
  218. extends = env:BIGTREE_OCTOPUS_V1
  219. platform_packages = ${stm_flash_drive.platform_packages}
  220. build_unflags = -DUSBD_USE_CDC
  221. build_flags = ${stm_flash_drive.build_flags}
  222. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  223. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  224. -DUSBD_IRQ_SUBPRIO=6
  225. -DUSBD_USE_CDC_MSC
  226. #
  227. # Lerdge base
  228. #
  229. [lerdge_common]
  230. platform = ${common_stm32.platform}
  231. extends = stm32_variant
  232. board = marlin_STM32F407ZGT6
  233. board_build.variant = MARLIN_LERDGE
  234. board_build.encrypt = firmware.bin
  235. board_build.offset = 0x10000
  236. build_flags = ${stm32_variant.build_flags}
  237. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  238. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  239. -DHAL_SRAM_MODULE_ENABLED
  240. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  241. extra_scripts = ${stm32_variant.extra_scripts}
  242. buildroot/share/PlatformIO/scripts/lerdge.py
  243. #
  244. # Lerdge X
  245. #
  246. [env:LERDGEX]
  247. platform = ${lerdge_common.platform}
  248. extends = lerdge_common
  249. board_build.encrypt = Lerdge_X_firmware_force.bin
  250. #
  251. # Lerdge X with USB Flash Drive Support
  252. #
  253. [env:LERDGEX_usb_flash_drive]
  254. platform = ${env:LERDGEX.platform}
  255. extends = env:LERDGEX
  256. platform_packages = ${stm_flash_drive.platform_packages}
  257. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  258. #
  259. # Lerdge S
  260. #
  261. [env:LERDGES]
  262. platform = ${lerdge_common.platform}
  263. extends = lerdge_common
  264. board_build.encrypt = Lerdge_firmware_force.bin
  265. #
  266. # Lerdge S with USB Flash Drive Support
  267. #
  268. [env:LERDGES_usb_flash_drive]
  269. platform = ${env:LERDGES.platform}
  270. extends = env:LERDGES
  271. platform_packages = ${stm_flash_drive.platform_packages}
  272. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  273. #
  274. # Lerdge K
  275. #
  276. [env:LERDGEK]
  277. platform = ${lerdge_common.platform}
  278. extends = lerdge_common
  279. board_build.encrypt = Lerdge_K_firmware_force.bin
  280. build_flags = ${lerdge_common.build_flags} -DLERDGEK
  281. #
  282. # Lerdge K with USB Flash Drive Support
  283. #
  284. [env:LERDGEK_usb_flash_drive]
  285. platform = ${env:LERDGEK.platform}
  286. extends = env:LERDGEK
  287. platform_packages = ${stm_flash_drive.platform_packages}
  288. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  289. #
  290. # RUMBA32
  291. #
  292. [env:rumba32]
  293. platform = ${common_stm32.platform}
  294. extends = stm32_variant
  295. board = rumba32_f446ve
  296. board_build.variant = MARLIN_F446VE
  297. board_build.offset = 0x0000
  298. build_flags = ${stm32_variant.build_flags}
  299. -Os -DHAL_PCD_MODULE_ENABLED
  300. -DDISABLE_GENERIC_SERIALUSB
  301. -DHAL_UART_MODULE_ENABLED
  302. -DTIMER_SERIAL=TIM9
  303. monitor_speed = 500000
  304. upload_protocol = dfu
  305. #
  306. # MKS Robin Pro V2
  307. #
  308. [env:mks_robin_pro2]
  309. platform = ${common_stm32.platform}
  310. extends = stm32_variant
  311. platform_packages = ${stm_flash_drive.platform_packages}
  312. board = genericSTM32F407VET6
  313. board_build.variant = MARLIN_F4x7Vx
  314. board_build.offset = 0x0000
  315. board_upload.offset_address = 0x08000000
  316. build_flags = ${stm_flash_drive.build_flags}
  317. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
  318. debug_tool = jlink
  319. upload_protocol = jlink
  320. #
  321. # This I2C1(PB6:I2C1_SCL PB7:I2C1_SDA) is used by Robin Nano V3
  322. #
  323. [stm32f4_I2C1]
  324. build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
  325. #
  326. # MKS Robin Nano V3
  327. #
  328. [env:mks_robin_nano_v3]
  329. platform = ${common_stm32.platform}
  330. extends = stm32_variant
  331. board = marlin_STM32F407VGT6_CCM
  332. board_build.variant = MARLIN_F4x7Vx
  333. board_build.offset = 0xC000
  334. board_upload.offset_address = 0x0800C000
  335. board_build.rename = Robin_nano_v3.bin
  336. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  337. -DHAL_PCD_MODULE_ENABLED
  338. debug_tool = jlink
  339. upload_protocol = jlink
  340. #
  341. # MKS Robin Nano V3 with USB Flash Drive Support
  342. # Currently, using a STM32duino fork, until USB Host get merged
  343. #
  344. [env:mks_robin_nano_v3_usb_flash_drive]
  345. platform = ${common_stm32.platform}
  346. extends = env:mks_robin_nano_v3
  347. platform_packages = ${stm_flash_drive.platform_packages}
  348. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  349. -DUSE_USBHOST_HS
  350. -DUSBD_IRQ_PRIO=5
  351. -DUSBD_IRQ_SUBPRIO=6
  352. -DUSE_USB_HS_IN_FS
  353. #
  354. # MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
  355. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  356. #
  357. [env:mks_robin_nano_v3_usb_flash_drive_msc]
  358. platform = ${common_stm32.platform}
  359. extends = env:mks_robin_nano_v3_usb_flash_drive
  360. build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
  361. -DUSBD_USE_CDC_MSC
  362. build_unflags = -DUSBD_USE_CDC
  363. #
  364. # This I2C1(PB8:I2C1_SCL PB9:I2C1_SDA) is used by MKS Monster8
  365. #
  366. [stm32f4_I2C1_CAN]
  367. build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
  368. #
  369. # MKS Monster8
  370. #
  371. [env:mks_monster8]
  372. platform = ${common_stm32.platform}
  373. extends = stm32_variant
  374. board = marlin_STM32F407VGT6_CCM
  375. board_build.variant = MARLIN_F4x7Vx
  376. board_build.offset = 0xC000
  377. board_upload.offset_address = 0x0800C000
  378. board_build.rename = mks_monster8.bin
  379. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  380. -DHAL_PCD_MODULE_ENABLED
  381. debug_tool = jlink
  382. upload_protocol = jlink
  383. #
  384. # MKS Monster8 with USB Flash Drive Support
  385. # Currently, using a STM32duino fork, until USB Host get merged
  386. #
  387. [env:mks_monster8_usb_flash_drive]
  388. platform = ${common_stm32.platform}
  389. extends = env:mks_monster8
  390. platform_packages = ${stm_flash_drive.platform_packages}
  391. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  392. -DUSE_USBHOST_HS
  393. -DUSBD_IRQ_PRIO=5
  394. -DUSBD_IRQ_SUBPRIO=6
  395. -DUSE_USB_HS_IN_FS
  396. #
  397. # MKS Monster8 with USB Flash Drive Support and Shared Media
  398. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  399. #
  400. [env:mks_monster8_usb_flash_drive_msc]
  401. platform = ${common_stm32.platform}
  402. extends = env:mks_monster8_usb_flash_drive
  403. build_flags = ${env:mks_monster8_usb_flash_drive.build_flags}
  404. -DUSBD_USE_CDC_MSC
  405. build_unflags = -DUSBD_USE_CDC
  406. #
  407. # TH3D EZBoard Lite v2.0 (STM32F405RGT6 ARM Cortex-M4)
  408. #
  409. [env:TH3D_EZBoard_Lite_V2]
  410. platform = ${common_stm32.platform}
  411. extends = stm32_variant
  412. board = genericSTM32F405RG
  413. board_build.variant = MARLIN_TH3D_EZBOARD_LITE_V2
  414. board_build.offset = 0xC000
  415. board_upload.offset_address = 0x0800C000
  416. build_flags = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
  417. debug_tool = stlink
  418. upload_protocol = stlink