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

stm32f4.ini 22KB

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