My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

stm32f4.ini 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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 = 0x8000
  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. # STM32F407VET6 Index Mobo Rev 03
  95. #
  96. [env:Index_Mobo_Rev03]
  97. platform = ${common_stm32.platform}
  98. extends = stm32_variant
  99. board = marlin_index_mobo_rev03
  100. build_flags = ${stm32_variant.build_flags}
  101. -DARDUINO_BLACK_F407VE
  102. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  103. extra_scripts = ${stm32_variant.extra_scripts}
  104. #
  105. # Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
  106. # For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
  107. # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
  108. #
  109. [env:Anet_ET4_OpenBLT]
  110. platform = ${common_stm32.platform}
  111. extends = stm32_variant
  112. board = marlin_STM32F407VGT6_CCM
  113. board_build.variant = MARLIN_F4x7Vx
  114. board_build.encrypt = firmware.srec
  115. board_build.offset = 0x10000
  116. board_upload.offset_address = 0x08010000
  117. build_flags = ${stm32_variant.build_flags}
  118. -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
  119. build_unflags = ${stm32_variant.build_unflags}
  120. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  121. extra_scripts = ${stm32_variant.extra_scripts}
  122. buildroot/share/PlatformIO/scripts/openblt.py
  123. debug_tool = jlink
  124. upload_protocol = jlink
  125. #
  126. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  127. #
  128. [env:BIGTREE_SKR_PRO]
  129. platform = ${common_stm32.platform}
  130. extends = stm32_variant
  131. board = marlin_BigTree_SKR_Pro
  132. board_build.offset = 0x8000
  133. build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
  134. debug_tool = stlink
  135. upload_protocol = stlink
  136. #
  137. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  138. #
  139. [env:BIGTREE_SKR_PRO_usb_flash_drive]
  140. platform = ${common_stm32.platform}
  141. extends = env:BIGTREE_SKR_PRO
  142. platform_packages = ${stm_flash_drive.platform_packages}
  143. build_flags = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
  144. build_unflags = ${env:BIGTREE_SKR_PRO.build_unflags} -DUSBCON -DUSBD_USE_CDC
  145. #
  146. # BigTreeTech E3 RRF (STM32F407VGT6 ARM Cortex-M4)
  147. #
  148. [env:BIGTREE_E3_RRF]
  149. platform = ${common_stm32.platform}
  150. extends = stm32_variant
  151. board = marlin_STM32F407VGT6_CCM
  152. board_build.variant = MARLIN_BIGTREE_E3_RRF
  153. board_build.offset = 0x8000
  154. build_flags = ${stm32_variant.build_flags}
  155. -DSTM32F407_5VX
  156. -DMF_RX_BUFFER_SIZE=255
  157. -DMF_TX_BUFFER_SIZE=255
  158. #
  159. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  160. #
  161. [env:BIGTREE_GTR_V1_0]
  162. platform = ${common_stm32.platform}
  163. extends = stm32_variant
  164. board = marlin_BigTree_GTR_v1
  165. board_build.offset = 0x8000
  166. build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
  167. #
  168. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
  169. #
  170. [env:BIGTREE_GTR_V1_0_usb_flash_drive]
  171. platform = ${common_stm32.platform}
  172. extends = env:BIGTREE_GTR_V1_0
  173. platform_packages = ${stm_flash_drive.platform_packages}
  174. build_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
  175. build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
  176. #
  177. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  178. #
  179. [env:BIGTREE_BTT002]
  180. platform = ${common_stm32.platform}
  181. extends = stm32_variant
  182. board = marlin_BigTree_BTT002
  183. board_build.offset = 0x8000
  184. build_flags = ${stm32_variant.build_flags}
  185. -DSTM32F407_5VX
  186. -DHAVE_HWSERIAL2
  187. -DHAVE_HWSERIAL3
  188. -DPIN_SERIAL2_RX=PD_6
  189. -DPIN_SERIAL2_TX=PD_5
  190. #
  191. # BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
  192. #
  193. [env:BIGTREE_BTT002_VET6]
  194. platform = ${env:BIGTREE_BTT002.platform}
  195. extends = env:BIGTREE_BTT002
  196. board = marlin_BigTree_BTT002_VET6
  197. #
  198. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
  199. #
  200. [env:BIGTREE_SKR_2]
  201. platform = ${common_stm32.platform}
  202. extends = stm32_variant
  203. platform_packages = ${stm_flash_drive.platform_packages}
  204. board = marlin_STM32F407VGT6_CCM
  205. board_build.variant = MARLIN_F4x7Vx
  206. board_build.offset = 0x8000
  207. board_upload.offset_address = 0x08008000
  208. build_flags = ${stm_flash_drive.build_flags}
  209. -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
  210. -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
  211. -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
  212. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
  213. upload_protocol = stlink
  214. #
  215. # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
  216. #
  217. [env:BIGTREE_SKR_2_USB]
  218. platform = ${common_stm32.platform}
  219. extends = env:BIGTREE_SKR_2
  220. build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
  221. build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
  222. [env:BIGTREE_SKR_2_USB_debug]
  223. platform = ${common_stm32.platform}
  224. extends = env:BIGTREE_SKR_2_USB
  225. build_flags = ${env:BIGTREE_SKR_2_USB.build_flags} -O0
  226. build_unflags = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
  227. #
  228. # Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
  229. #
  230. [env:BIGTREE_SKR_2_F429]
  231. platform = ${common_stm32.platform}
  232. extends = stm32_variant
  233. platform_packages = ${stm_flash_drive.platform_packages}
  234. board = marlin_STM32F429VGT6
  235. board_build.variant = MARLIN_F4x7Vx
  236. board_build.offset = 0x8000
  237. board_upload.offset_address = 0x08008000
  238. build_flags = ${stm_flash_drive.build_flags}
  239. -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
  240. -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
  241. -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
  242. -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
  243. upload_protocol = stlink
  244. #
  245. # BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
  246. #
  247. [env:BIGTREE_SKR_2_F429_USB]
  248. platform = ${common_stm32.platform}
  249. extends = env:BIGTREE_SKR_2_F429
  250. build_flags = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
  251. build_unflags = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
  252. [env:BIGTREE_SKR_2_F429_USB_debug]
  253. platform = ${common_stm32.platform}
  254. extends = env:BIGTREE_SKR_2_F429_USB
  255. build_flags = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
  256. build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
  257. #
  258. # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
  259. #
  260. [env:BIGTREE_OCTOPUS_V1]
  261. platform = ${common_stm32.platform}
  262. extends = stm32_variant
  263. board = marlin_BigTree_Octopus_v1
  264. board_build.offset = 0x8000
  265. build_flags = ${stm32_variant.build_flags}
  266. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  267. #
  268. # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
  269. #
  270. [env:BIGTREE_OCTOPUS_V1_USB]
  271. platform = ${common_stm32.platform}
  272. extends = env:BIGTREE_OCTOPUS_V1
  273. platform_packages = ${stm_flash_drive.platform_packages}
  274. build_unflags = -DUSBD_USE_CDC
  275. build_flags = ${stm_flash_drive.build_flags}
  276. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  277. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  278. -DUSBD_IRQ_SUBPRIO=6
  279. -DUSBD_USE_CDC_MSC
  280. #
  281. # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4)
  282. #
  283. [env:BIGTREE_OCTOPUS_PRO_V1_F429]
  284. platform = ${common_stm32.platform}
  285. extends = stm32_variant
  286. board = marlin_BigTree_Octopus_Pro_v1_F429
  287. board_build.offset = 0x8000
  288. build_flags = ${stm32_variant.build_flags}
  289. -DUSE_USB_HS_IN_FS
  290. #
  291. # BigTreeTech Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  292. #
  293. [env:BIGTREE_OCTOPUS_PRO_V1_F429_USB]
  294. platform = ${common_stm32.platform}
  295. extends = env:BIGTREE_OCTOPUS_PRO_V1_F429
  296. platform_packages = ${stm_flash_drive.platform_packages}
  297. build_unflags = -DUSBD_USE_CDC
  298. build_flags = ${stm_flash_drive.build_flags}
  299. -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  300. -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
  301. -DUSBD_IRQ_SUBPRIO=6
  302. -DUSBD_USE_CDC_MSC
  303. #
  304. # Lerdge base
  305. #
  306. [lerdge_common]
  307. platform = ${common_stm32.platform}
  308. extends = stm32_variant
  309. board = marlin_STM32F407ZGT6
  310. board_build.variant = MARLIN_LERDGE
  311. board_build.offset = 0x10000
  312. build_flags = ${stm32_variant.build_flags}
  313. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  314. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DLERDGE_TFT35
  315. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  316. extra_scripts = ${common_stm32.extra_scripts}
  317. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  318. buildroot/share/PlatformIO/scripts/lerdge.py
  319. #
  320. # Lerdge X (STM32F407VE)
  321. #
  322. [env:LERDGEX]
  323. platform = ${lerdge_common.platform}
  324. extends = lerdge_common
  325. board_build.encrypt = Lerdge_X_firmware_force.bin
  326. #
  327. # Lerdge X with USB Flash Drive Support
  328. #
  329. [env:LERDGEX_usb_flash_drive]
  330. platform = ${env:LERDGEX.platform}
  331. extends = env:LERDGEX
  332. platform_packages = ${stm_flash_drive.platform_packages}
  333. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  334. #
  335. # Lerdge S (STM32F407ZG)
  336. #
  337. [env:LERDGES]
  338. platform = ${lerdge_common.platform}
  339. extends = lerdge_common
  340. board_build.encrypt = Lerdge_firmware_force.bin
  341. #
  342. # Lerdge S with USB Flash Drive Support
  343. #
  344. [env:LERDGES_usb_flash_drive]
  345. platform = ${env:LERDGES.platform}
  346. extends = env:LERDGES
  347. platform_packages = ${stm_flash_drive.platform_packages}
  348. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  349. #
  350. # Lerdge K (STM32F407ZG)
  351. #
  352. [env:LERDGEK]
  353. platform = ${lerdge_common.platform}
  354. extends = lerdge_common
  355. board_build.encrypt = Lerdge_K_firmware_force.bin
  356. build_flags = ${lerdge_common.build_flags} -DLERDGEK
  357. #
  358. # Lerdge K with USB Flash Drive Support
  359. #
  360. [env:LERDGEK_usb_flash_drive]
  361. platform = ${env:LERDGEK.platform}
  362. extends = env:LERDGEK
  363. platform_packages = ${stm_flash_drive.platform_packages}
  364. build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
  365. #
  366. # RUMBA32
  367. #
  368. [env:rumba32]
  369. platform = ${common_stm32.platform}
  370. extends = stm32_variant
  371. board = rumba32_f446ve
  372. board_build.variant = MARLIN_F446VE
  373. board_build.offset = 0x0000
  374. build_flags = ${stm32_variant.build_flags}
  375. -Os -DHAL_PCD_MODULE_ENABLED
  376. -DDISABLE_GENERIC_SERIALUSB
  377. -DHAL_UART_MODULE_ENABLED
  378. -DTIMER_SERIAL=TIM9
  379. monitor_speed = 500000
  380. upload_protocol = dfu
  381. #
  382. # MKS Robin Pro V2
  383. #
  384. [env:mks_robin_pro2]
  385. platform = ${common_stm32.platform}
  386. extends = stm32_variant
  387. platform_packages = ${stm_flash_drive.platform_packages}
  388. board = genericSTM32F407VET6
  389. board_build.variant = MARLIN_F4x7Vx
  390. board_build.offset = 0x0000
  391. board_upload.offset_address = 0x08000000
  392. build_flags = ${stm_flash_drive.build_flags}
  393. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
  394. debug_tool = jlink
  395. upload_protocol = jlink
  396. #
  397. # This I2C1(PB6:I2C1_SCL PB7:I2C1_SDA) is used by Robin Nano V3
  398. #
  399. [stm32f4_I2C1]
  400. build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
  401. #
  402. # MKS Robin Nano V3
  403. #
  404. [env:mks_robin_nano_v3]
  405. platform = ${common_stm32.platform}
  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 = Robin_nano_v3.bin
  412. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  413. -DHAL_PCD_MODULE_ENABLED
  414. debug_tool = jlink
  415. upload_protocol = jlink
  416. #
  417. # MKS Robin Nano V3 with USB Flash Drive Support
  418. # Currently, using a STM32duino fork, until USB Host get merged
  419. #
  420. [env:mks_robin_nano_v3_usb_flash_drive]
  421. platform = ${common_stm32.platform}
  422. extends = env:mks_robin_nano_v3
  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 Robin Nano V3 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_robin_nano_v3_usb_flash_drive_msc]
  434. platform = ${common_stm32.platform}
  435. extends = env:mks_robin_nano_v3_usb_flash_drive
  436. build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
  437. -DUSBD_USE_CDC_MSC
  438. build_unflags = -DUSBD_USE_CDC
  439. #
  440. # MKS Eagle
  441. # 5 TMC2209 uart mode on board
  442. #
  443. [env:mks_eagle]
  444. platform = ${common_stm32.platform}
  445. extends = stm32_variant
  446. board = marlin_STM32F407VGT6_CCM
  447. board_build.variant = MARLIN_F4x7Vx
  448. board_build.offset = 0xC000
  449. board_upload.offset_address = 0x0800C000
  450. board_build.rename = mks_eagle.bin
  451. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
  452. -DHAL_PCD_MODULE_ENABLED
  453. -DSTM32_FLASH_SIZE=512
  454. debug_tool = jlink
  455. upload_protocol = jlink
  456. #
  457. # MKS Eagle with USB Flash Drive Support
  458. # Currently, using a STM32duino fork, until USB Host get merged
  459. #
  460. [env:mks_eagle_usb_flash_drive]
  461. platform = ${common_stm32.platform}
  462. extends = env:mks_eagle
  463. platform_packages = ${stm_flash_drive.platform_packages}
  464. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  465. -DUSE_USBHOST_HS
  466. -DUSBD_IRQ_PRIO=5
  467. -DUSBD_IRQ_SUBPRIO=6
  468. -DUSE_USB_HS_IN_FS
  469. #
  470. # MKS Eagle with USB Flash Drive Support and Shared Media
  471. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  472. #
  473. [env:mks_eagle_usb_flash_drive_msc]
  474. platform = ${common_stm32.platform}
  475. extends = env:mks_eagle_usb_flash_drive
  476. build_flags = ${env:mks_eagle_usb_flash_drive.build_flags}
  477. -DUSBD_USE_CDC_MSC
  478. build_unflags = -DUSBD_USE_CDC
  479. #
  480. # This I2C1(PB8:I2C1_SCL PB9:I2C1_SDA) is used by MKS Monster8
  481. #
  482. [stm32f4_I2C1_CAN]
  483. build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
  484. #
  485. # MKS Monster8
  486. #
  487. [env:mks_monster8]
  488. platform = ${common_stm32.platform}
  489. extends = stm32_variant
  490. board = marlin_STM32F407VGT6_CCM
  491. board_build.variant = MARLIN_F4x7Vx
  492. board_build.offset = 0xC000
  493. board_upload.offset_address = 0x0800C000
  494. board_build.rename = mks_monster8.bin
  495. build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  496. -DHAL_PCD_MODULE_ENABLED -DTIMER_SERIAL=TIM4
  497. -DSTM32_FLASH_SIZE=512
  498. debug_tool = jlink
  499. upload_protocol = jlink
  500. #
  501. # MKS Monster8 with USB Flash Drive Support
  502. # Currently, using a STM32duino fork, until USB Host get merged
  503. #
  504. [env:mks_monster8_usb_flash_drive]
  505. platform = ${common_stm32.platform}
  506. extends = env:mks_monster8
  507. platform_packages = ${stm_flash_drive.platform_packages}
  508. build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
  509. -DUSE_USBHOST_HS
  510. -DUSBD_IRQ_PRIO=5
  511. -DUSBD_IRQ_SUBPRIO=6
  512. -DUSE_USB_HS_IN_FS
  513. #
  514. # MKS Monster8 with USB Flash Drive Support and Shared Media
  515. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  516. #
  517. [env:mks_monster8_usb_flash_drive_msc]
  518. platform = ${common_stm32.platform}
  519. extends = env:mks_monster8_usb_flash_drive
  520. build_flags = ${env:mks_monster8_usb_flash_drive.build_flags}
  521. -DUSBD_USE_CDC_MSC
  522. build_unflags = -DUSBD_USE_CDC
  523. #
  524. # TH3D EZBoard v2.0 (STM32F405RGT6 ARM Cortex-M4)
  525. #
  526. [env:TH3D_EZBoard_V2]
  527. platform = ${common_stm32.platform}
  528. extends = stm32_variant
  529. board = genericSTM32F405RG
  530. board_build.variant = MARLIN_TH3D_EZBOARD_V2
  531. board_build.offset = 0xC000
  532. board_upload.offset_address = 0x0800C000
  533. build_flags = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
  534. debug_tool = stlink
  535. upload_protocol = stlink
  536. #
  537. # BOARD_MKS_ROBIN_NANO_V1_3_F4
  538. # - MKS Robin Nano V1.3 (STM32F407VET6) 5 Pololu Plug
  539. # - MKS Robin Nano-S V1.3 (STM32F407VET6) 4 TMC2225 + 1 Pololu Plug
  540. #
  541. [env:mks_robin_nano_v1_3_f4]
  542. platform = ${common_stm32.platform}
  543. extends = stm32_variant
  544. board = marlin_STM32F407VGT6_CCM
  545. board_build.variant = MARLIN_F4x7Vx
  546. board_build.offset = 0x8000
  547. board_upload.offset_address = 0x08008000
  548. board_build.rename = Robin_nano35.bin
  549. build_flags = ${stm32_variant.build_flags}
  550. -DMCU_STM32F407VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  551. -DSTM32_FLASH_SIZE=512
  552. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  553. -DHAL_SD_MODULE_ENABLED
  554. -DHAL_SRAM_MODULE_ENABLED
  555. build_unflags = ${stm32_variant.build_unflags}
  556. -DUSBCON -DUSBD_USE_CDC
  557. debug_tool = jlink
  558. upload_protocol = jlink
  559. #
  560. # Artillery Ruby
  561. #
  562. [env:Artillery_Ruby]
  563. platform = ${common_stm32.platform}
  564. extends = common_stm32
  565. board = marlin_Artillery_Ruby
  566. build_flags = ${common_stm32.build_flags}
  567. -DSTM32F401xC -DTARGET_STM32F4 -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32
  568. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  569. -DUSB_PRODUCT=\"Artillery_3D_Printer\"
  570. extra_scripts = ${common_stm32.extra_scripts}
  571. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py