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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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. extends = common_stm32
  25. board = armed_v1
  26. build_flags = ${common_stm32.build_flags}
  27. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  28. #
  29. # STM32F401VE
  30. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  31. #
  32. [env:STM32F401VE_STEVAL]
  33. extends = stm32_variant
  34. board = marlin_STEVAL_STM32F401VE
  35. build_flags = ${stm32_variant.build_flags}
  36. -DSTM32F401xE -DDISABLE_GENERIC_SERIALUSB
  37. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  38. #
  39. # STM32F401RC
  40. #
  41. [env:FYSETC_CHEETAH_V20]
  42. extends = stm32_variant
  43. board = marlin_FYSETC_CHEETAH_V20
  44. board_build.offset = 0x8000
  45. build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
  46. #
  47. # FLYF407ZG
  48. #
  49. [env:FLYF407ZG]
  50. extends = stm32_variant
  51. board = marlin_STM32F407ZGT6
  52. board_build.variant = MARLIN_FLY_F407ZG
  53. board_build.offset = 0x8000
  54. upload_protocol = dfu
  55. #
  56. # FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
  57. #
  58. [env:FYSETC_S6]
  59. extends = stm32_variant
  60. board = marlin_fysetc_s6
  61. board_build.offset = 0x10000
  62. board_upload.offset_address = 0x08010000
  63. build_flags = ${stm32_variant.build_flags} -DHAL_PCD_MODULE_ENABLED
  64. debug_tool = stlink
  65. upload_protocol = dfu
  66. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  67. #
  68. # FYSETC S6 new bootloader
  69. #
  70. [env:FYSETC_S6_8000]
  71. extends = env:FYSETC_S6
  72. board = marlin_fysetc_s6
  73. board_build.offset = 0x8000
  74. board_upload.offset_address = 0x08008000
  75. upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
  76. #
  77. # STM32F407VET6 with RAMPS-like shield
  78. # 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
  79. # Shield - https://github.com/jmz52/Hardware
  80. #
  81. [env:STM32F407VE_black]
  82. extends = stm32_variant
  83. board = marlin_blackSTM32F407VET6
  84. build_flags = ${stm32_variant.build_flags}
  85. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  86. #
  87. # STM32F407VET6 Index Mobo Rev 03
  88. #
  89. [env:Index_Mobo_Rev03]
  90. extends = stm32_variant
  91. board = marlin_index_mobo_rev03
  92. build_flags = ${stm32_variant.build_flags}
  93. -DARDUINO_BLACK_F407VE
  94. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  95. extra_scripts = ${stm32_variant.extra_scripts}
  96. #
  97. # Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
  98. # For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
  99. # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
  100. #
  101. [env:Anet_ET4_OpenBLT]
  102. extends = stm32_variant
  103. board = marlin_STM32F407VGT6_CCM
  104. board_build.variant = MARLIN_F4x7Vx
  105. board_build.encrypt = firmware.srec
  106. board_build.offset = 0x10000
  107. board_upload.offset_address = 0x08010000
  108. build_flags = ${stm32_variant.build_flags}
  109. -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
  110. build_unflags = ${stm32_variant.build_unflags}
  111. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  112. extra_scripts = ${stm32_variant.extra_scripts}
  113. buildroot/share/PlatformIO/scripts/openblt.py
  114. debug_tool = jlink
  115. upload_protocol = jlink
  116. #
  117. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  118. #
  119. [env:BIGTREE_SKR_PRO]
  120. extends = stm32_variant
  121. board = marlin_BigTree_SKR_Pro
  122. board_build.offset = 0x8000
  123. build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
  124. debug_tool = stlink
  125. upload_protocol = stlink
  126. #
  127. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  128. #
  129. [env:BIGTREE_SKR_PRO_usb_flash_drive]
  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. extends = stm32_variant
  139. board = marlin_STM32F407VGT6_CCM
  140. board_build.variant = MARLIN_BIGTREE_E3_RRF
  141. board_build.offset = 0x8000
  142. build_flags = ${stm32_variant.build_flags}
  143. -DSTM32F407_5VX
  144. -DMF_RX_BUFFER_SIZE=255
  145. -DMF_TX_BUFFER_SIZE=255
  146. #
  147. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  148. #
  149. [env:BIGTREE_GTR_V1_0]
  150. extends = stm32_variant
  151. board = marlin_BigTree_GTR_v1
  152. board_build.offset = 0x8000
  153. build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
  154. #
  155. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
  156. #
  157. [env:BIGTREE_GTR_V1_0_usb_flash_drive]
  158. extends = env:BIGTREE_GTR_V1_0
  159. platform_packages = ${stm_flash_drive.platform_packages}
  160. build_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
  161. build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
  162. #
  163. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  164. #
  165. [env:BIGTREE_BTT002]
  166. extends = stm32_variant
  167. board = marlin_BigTree_BTT002
  168. board_build.offset = 0x8000
  169. build_flags = ${stm32_variant.build_flags}
  170. -DSTM32F407_5VX
  171. -DHAVE_HWSERIAL2
  172. -DHAVE_HWSERIAL3
  173. -DPIN_SERIAL2_RX=PD_6
  174. -DPIN_SERIAL2_TX=PD_5
  175. #
  176. # BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
  177. #
  178. [env:BIGTREE_BTT002_VET6]
  179. extends = env:BIGTREE_BTT002
  180. board = marlin_BigTree_BTT002_VET6
  181. #
  182. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
  183. #
  184. [env:BIGTREE_SKR_2]
  185. extends = stm32_variant
  186. platform_packages = ${stm_flash_drive.platform_packages}
  187. board = marlin_STM32F407VGT6_CCM
  188. board_build.variant = MARLIN_F4x7Vx
  189. board_build.offset = 0x8000
  190. board_upload.offset_address = 0x08008000
  191. build_flags = ${stm_flash_drive.build_flags}
  192. -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
  193. -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
  194. -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
  195. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
  196. upload_protocol = stlink
  197. #
  198. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
  199. #
  200. [env:BIGTREE_SKR_2_USB]
  201. extends = env:BIGTREE_SKR_2
  202. build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
  203. build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
  204. [env:BIGTREE_SKR_2_USB_debug]
  205. extends = env:BIGTREE_SKR_2_USB
  206. build_flags = ${env:BIGTREE_SKR_2_USB.build_flags} -O0
  207. build_unflags = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
  208. #
  209. # Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
  210. #
  211. [env:BIGTREE_SKR_2_F429]
  212. extends = stm32_variant
  213. platform_packages = ${stm_flash_drive.platform_packages}
  214. board = marlin_STM32F429VGT6
  215. board_build.variant = MARLIN_F4x7Vx
  216. board_build.offset = 0x8000
  217. board_upload.offset_address = 0x08008000
  218. build_flags = ${stm_flash_drive.build_flags}
  219. -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
  220. -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
  221. -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
  222. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
  223. upload_protocol = stlink
  224. #
  225. # BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
  226. #
  227. [env:BIGTREE_SKR_2_F429_USB]
  228. extends = env:BIGTREE_SKR_2_F429
  229. build_flags = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
  230. build_unflags = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
  231. [env:BIGTREE_SKR_2_F429_USB_debug]
  232. extends = env:BIGTREE_SKR_2_F429_USB
  233. build_flags = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
  234. build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
  235. #
  236. # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
  237. #
  238. [env:BIGTREE_OCTOPUS_V1]
  239. extends = stm32_variant
  240. board = marlin_BigTree_Octopus_v1
  241. board_build.offset = 0x8000
  242. build_flags = ${stm32_variant.build_flags}
  243. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  244. #
  245. # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
  246. #
  247. [env:BIGTREE_OCTOPUS_V1_USB]
  248. extends = env:BIGTREE_OCTOPUS_V1
  249. platform_packages = ${stm_flash_drive.platform_packages}
  250. build_unflags = -DUSBD_USE_CDC
  251. build_flags = ${stm_flash_drive.build_flags}
  252. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  253. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  254. -DUSBD_IRQ_SUBPRIO=6
  255. -DUSBD_USE_CDC_MSC
  256. #
  257. # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4)
  258. #
  259. [env:BIGTREE_OCTOPUS_PRO_V1_F429]
  260. extends = stm32_variant
  261. board = marlin_BigTree_Octopus_Pro_v1_F429
  262. board_build.offset = 0x8000
  263. build_flags = ${stm32_variant.build_flags}
  264. -DUSE_USB_HS_IN_FS
  265. #
  266. # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  267. #
  268. [env:BIGTREE_OCTOPUS_PRO_V1_F429_USB]
  269. extends = env:BIGTREE_OCTOPUS_PRO_V1_F429
  270. platform_packages = ${stm_flash_drive.platform_packages}
  271. build_unflags = -DUSBD_USE_CDC
  272. build_flags = ${stm_flash_drive.build_flags}
  273. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  274. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  275. -DUSBD_IRQ_SUBPRIO=6
  276. -DUSBD_USE_CDC_MSC
  277. #
  278. # Lerdge base
  279. #
  280. [lerdge_common]
  281. extends = stm32_variant
  282. board = marlin_STM32F407ZGT6
  283. board_build.variant = MARLIN_LERDGE
  284. board_build.offset = 0x10000
  285. build_flags = ${stm32_variant.build_flags}
  286. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  287. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DLERDGE_TFT35
  288. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  289. extra_scripts = ${common_stm32.extra_scripts}
  290. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  291. buildroot/share/PlatformIO/scripts/lerdge.py
  292. #
  293. # Lerdge X (STM32F407VE)
  294. #
  295. [env:LERDGEX]
  296. extends = lerdge_common
  297. board_build.encrypt = Lerdge_X_firmware_force.bin
  298. #
  299. # Lerdge X with USB Flash Drive Support
  300. #
  301. [env:LERDGEX_usb_flash_drive]
  302. extends = env:LERDGEX
  303. platform_packages = ${stm_flash_drive.platform_packages}
  304. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  305. #
  306. # Lerdge S (STM32F407ZG)
  307. #
  308. [env:LERDGES]
  309. extends = lerdge_common
  310. board_build.encrypt = Lerdge_firmware_force.bin
  311. #
  312. # Lerdge S with USB Flash Drive Support
  313. #
  314. [env:LERDGES_usb_flash_drive]
  315. extends = env:LERDGES
  316. platform_packages = ${stm_flash_drive.platform_packages}
  317. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  318. #
  319. # Lerdge K (STM32F407ZG)
  320. #
  321. [env:LERDGEK]
  322. extends = lerdge_common
  323. board_build.encrypt = Lerdge_K_firmware_force.bin
  324. build_flags = ${lerdge_common.build_flags} -DLERDGEK
  325. #
  326. # Lerdge K with USB Flash Drive Support
  327. #
  328. [env:LERDGEK_usb_flash_drive]
  329. extends = env:LERDGEK
  330. platform_packages = ${stm_flash_drive.platform_packages}
  331. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  332. #
  333. # RUMBA32
  334. #
  335. [env:rumba32]
  336. extends = stm32_variant
  337. board = rumba32_f446ve
  338. board_build.variant = MARLIN_F446VE
  339. board_build.offset = 0x0000
  340. build_flags = ${stm32_variant.build_flags}
  341. -Os -DHAL_PCD_MODULE_ENABLED
  342. -DDISABLE_GENERIC_SERIALUSB
  343. -DHAL_UART_MODULE_ENABLED
  344. -DTIMER_SERIAL=TIM9
  345. monitor_speed = 500000
  346. upload_protocol = dfu
  347. #
  348. # MKS Robin Pro V2
  349. #
  350. [env:mks_robin_pro2]
  351. extends = stm32_variant
  352. platform_packages = ${stm_flash_drive.platform_packages}
  353. board = genericSTM32F407VET6
  354. board_build.variant = MARLIN_F4x7Vx
  355. board_build.offset = 0x0000
  356. board_upload.offset_address = 0x08000000
  357. build_flags = ${stm_flash_drive.build_flags}
  358. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
  359. debug_tool = jlink
  360. upload_protocol = jlink
  361. #
  362. # This I2C1(PB6:I2C1_SCL PB7:I2C1_SDA) is used by Robin Nano V3
  363. #
  364. [stm32f4_I2C1]
  365. build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
  366. #
  367. # MKS Robin Nano V3
  368. #
  369. [env:mks_robin_nano_v3]
  370. extends = stm32_variant
  371. board = marlin_STM32F407VGT6_CCM
  372. board_build.variant = MARLIN_F4x7Vx
  373. board_build.offset = 0xC000
  374. board_upload.offset_address = 0x0800C000
  375. board_build.rename = Robin_nano_v3.bin
  376. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  377. -DHAL_PCD_MODULE_ENABLED
  378. debug_tool = jlink
  379. upload_protocol = jlink
  380. #
  381. # MKS Robin Nano V3 with USB Flash Drive Support
  382. # Currently, using a STM32duino fork, until USB Host get merged
  383. #
  384. [env:mks_robin_nano_v3_usb_flash_drive]
  385. extends = env:mks_robin_nano_v3
  386. platform_packages = ${stm_flash_drive.platform_packages}
  387. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  388. -DUSE_USBHOST_HS
  389. -DUSBD_IRQ_PRIO=5
  390. -DUSBD_IRQ_SUBPRIO=6
  391. -DUSE_USB_HS_IN_FS
  392. #
  393. # MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
  394. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  395. #
  396. [env:mks_robin_nano_v3_usb_flash_drive_msc]
  397. extends = env:mks_robin_nano_v3_usb_flash_drive
  398. build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
  399. -DUSBD_USE_CDC_MSC
  400. build_unflags = -DUSBD_USE_CDC
  401. #
  402. # MKS Eagle
  403. # 5 TMC2209 uart mode on board
  404. #
  405. [env:mks_eagle]
  406. extends = stm32_variant
  407. board = marlin_STM32F407VGT6_CCM
  408. board_build.variant = MARLIN_F4x7Vx
  409. board_build.offset = 0xC000
  410. board_upload.offset_address = 0x0800C000
  411. board_build.rename = mks_eagle.bin
  412. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  413. -DHAL_PCD_MODULE_ENABLED
  414. -DSTM32_FLASH_SIZE=512
  415. debug_tool = jlink
  416. upload_protocol = jlink
  417. #
  418. # MKS Eagle with USB Flash Drive Support
  419. # Currently, using a STM32duino fork, until USB Host get merged
  420. #
  421. [env:mks_eagle_usb_flash_drive]
  422. extends = env:mks_eagle
  423. platform_packages = ${stm_flash_drive.platform_packages}
  424. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  425. -DUSE_USBHOST_HS
  426. -DUSBD_IRQ_PRIO=5
  427. -DUSBD_IRQ_SUBPRIO=6
  428. -DUSE_USB_HS_IN_FS
  429. #
  430. # MKS Eagle with USB Flash Drive Support and Shared Media
  431. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  432. #
  433. [env:mks_eagle_usb_flash_drive_msc]
  434. extends = env:mks_eagle_usb_flash_drive
  435. build_flags = ${env:mks_eagle_usb_flash_drive.build_flags}
  436. -DUSBD_USE_CDC_MSC
  437. build_unflags = -DUSBD_USE_CDC
  438. #
  439. # This I2C1(PB8:I2C1_SCL PB9:I2C1_SDA) is used by MKS Monster8
  440. #
  441. [stm32f4_I2C1_CAN]
  442. build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
  443. #
  444. # MKS Monster8
  445. #
  446. [env:mks_monster8]
  447. extends = stm32_variant
  448. board = marlin_STM32F407VGT6_CCM
  449. board_build.variant = MARLIN_F4x7Vx
  450. board_build.offset = 0xC000
  451. board_upload.offset_address = 0x0800C000
  452. board_build.rename = mks_monster8.bin
  453. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  454. -DHAL_PCD_MODULE_ENABLED -DTIMER_SERIAL=TIM4
  455. -DSTM32_FLASH_SIZE=512
  456. debug_tool = jlink
  457. upload_protocol = jlink
  458. #
  459. # MKS Monster8 with USB Flash Drive Support
  460. # Currently, using a STM32duino fork, until USB Host get merged
  461. #
  462. [env:mks_monster8_usb_flash_drive]
  463. extends = env:mks_monster8
  464. platform_packages = ${stm_flash_drive.platform_packages}
  465. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  466. -DUSE_USBHOST_HS
  467. -DUSBD_IRQ_PRIO=5
  468. -DUSBD_IRQ_SUBPRIO=6
  469. -DUSE_USB_HS_IN_FS
  470. #
  471. # MKS Monster8 with USB Flash Drive Support and Shared Media
  472. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  473. #
  474. [env:mks_monster8_usb_flash_drive_msc]
  475. extends = env:mks_monster8_usb_flash_drive
  476. build_flags = ${env:mks_monster8_usb_flash_drive.build_flags}
  477. -DUSBD_USE_CDC_MSC
  478. build_unflags = -DUSBD_USE_CDC
  479. #
  480. # TH3D EZBoard v2.0 (STM32F405RGT6 ARM Cortex-M4)
  481. #
  482. [env:TH3D_EZBoard_V2]
  483. extends = stm32_variant
  484. board = genericSTM32F405RG
  485. board_build.variant = MARLIN_TH3D_EZBOARD_V2
  486. board_build.offset = 0xC000
  487. board_upload.offset_address = 0x0800C000
  488. build_flags = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
  489. debug_tool = stlink
  490. upload_protocol = stlink
  491. #
  492. # BOARD_MKS_ROBIN_NANO_V1_3_F4
  493. # - MKS Robin Nano V1.3 (STM32F407VET6) 5 Pololu Plug
  494. # - MKS Robin Nano-S V1.3 (STM32F407VET6) 4 TMC2225 + 1 Pololu Plug
  495. #
  496. [env:mks_robin_nano_v1_3_f4]
  497. extends = stm32_variant
  498. board = marlin_STM32F407VGT6_CCM
  499. board_build.variant = MARLIN_F4x7Vx
  500. board_build.offset = 0x8000
  501. board_upload.offset_address = 0x08008000
  502. board_build.rename = Robin_nano35.bin
  503. build_flags = ${stm32_variant.build_flags}
  504. -DMCU_STM32F407VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  505. -DSTM32_FLASH_SIZE=512
  506. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  507. -DHAL_SD_MODULE_ENABLED
  508. -DHAL_SRAM_MODULE_ENABLED
  509. build_unflags = ${stm32_variant.build_unflags}
  510. -DUSBCON -DUSBD_USE_CDC
  511. debug_tool = jlink
  512. upload_protocol = jlink
  513. #
  514. # Artillery Ruby
  515. #
  516. [env:Artillery_Ruby]
  517. extends = common_stm32
  518. board = marlin_Artillery_Ruby
  519. build_flags = ${common_stm32.build_flags}
  520. -DSTM32F401xC -DTARGET_STM32F4 -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32
  521. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  522. -DUSB_PRODUCT=\"Artillery_3D_Printer\"
  523. extra_scripts = ${common_stm32.extra_scripts}
  524. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py