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.

stm32f1.ini 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32F1 Architecture with unified STM32 HAL
  8. #
  9. # Naming Example: STM32F103RCT6
  10. #
  11. # F : Foundation (sometimes High Performance F2/F4)
  12. # 1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
  13. # 03 : Line/Features
  14. # R : 64 or 66 pins (T:36, C:48, V:100, Z:144, I:176)
  15. # C : 256KB Flash-memory (B: 128KB, D:384KB, E:512KB, G:1024KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. [common_STM32F103RC_variant]
  21. extends = stm32_variant
  22. board = genericSTM32F103RC
  23. board_build.variant = MARLIN_F103Rx
  24. build_flags = ${stm32_variant.build_flags} -DDEBUG_LEVEL=0
  25. monitor_speed = 115200
  26. #
  27. # STM32F103RE
  28. #
  29. [env:STM32F103RE]
  30. extends = common_stm32
  31. board = genericSTM32F103RE
  32. monitor_speed = 115200
  33. #
  34. # STM32F103VE
  35. #
  36. [env:STM32F103VE]
  37. extends = common_stm32
  38. board = genericSTM32F103VE
  39. monitor_speed = 115200
  40. #
  41. # STM32F103ZE
  42. #
  43. [env:STM32F103ZE]
  44. extends = common_stm32
  45. board = genericSTM32F103ZE
  46. monitor_speed = 115200
  47. #
  48. # BigTreeTech SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
  49. #
  50. # STM32F103RC_btt ............. RCT6 with 256K
  51. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  52. #
  53. [env:STM32F103RC_btt]
  54. extends = common_STM32F103RC_variant
  55. build_flags = ${common_STM32F103RC_variant.build_flags}
  56. -DTIMER_SERVO=TIM5
  57. board_build.offset = 0x7000
  58. board_upload.offset_address = 0x08007000
  59. [env:STM32F103RC_btt_USB]
  60. extends = env:STM32F103RC_btt
  61. platform_packages = ${stm_flash_drive.platform_packages}
  62. build_flags = ${env:STM32F103RC_btt.build_flags}
  63. -DUSE_USB_FS
  64. -DUSBD_IRQ_PRIO=5
  65. -DUSBD_IRQ_SUBPRIO=6
  66. -DUSBD_USE_CDC_MSC
  67. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  68. #
  69. # Panda Pi V2.9 - Standalone (STM32F103RC)
  70. # Headless, without direct Pi control, but potentially hosting OctoPrint, stepdaemon, etc.
  71. #
  72. [env:PANDA_PI_V29]
  73. extends = common_STM32F103RC_variant
  74. build_flags = ${common_STM32F103RC_variant.build_flags}
  75. -DTIMER_SERVO=TIM1
  76. board_build.offset = 0x5000
  77. board_upload.offset_address = 0x08005000
  78. lib_deps =
  79. markyue/Panda_SoftMasterI2C@1.0.3
  80. #
  81. # MKS Robin (STM32F103ZET6)
  82. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  83. #
  84. [env:mks_robin]
  85. extends = stm32_variant
  86. board = genericSTM32F103ZE
  87. board_build.variant = MARLIN_F103Zx
  88. board_build.encrypt_mks = Robin.bin
  89. board_build.offset = 0x7000
  90. build_flags = ${stm32_variant.build_flags}
  91. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  92. build_unflags = ${stm32_variant.build_unflags}
  93. -DUSBCON -DUSBD_USE_CDC
  94. #
  95. # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
  96. #
  97. [env:mks_robin_e3]
  98. extends = common_STM32F103RC_variant
  99. board_build.encrypt_mks = Robin_e3.bin
  100. board_build.offset = 0x5000
  101. board_upload.offset_address = 0x08005000
  102. build_flags = ${common_STM32F103RC_variant.build_flags}
  103. -DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
  104. build_unflags = ${common_STM32F103RC_variant.build_unflags}
  105. -DUSBCON -DUSBD_USE_CDC
  106. debug_tool = stlink
  107. #
  108. # Creality (STM32F103Rx)
  109. #
  110. [STM32F103Rx_creality]
  111. extends = stm32_variant
  112. board_build.variant = MARLIN_F103Rx
  113. board_build.offset = 0x7000
  114. board_upload.offset_address = 0x08007000
  115. build_flags = ${stm32_variant.build_flags}
  116. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  117. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  118. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  119. build_unflags = ${stm32_variant.build_unflags}
  120. -DUSBCON -DUSBD_USE_CDC
  121. extra_scripts = ${stm32_variant.extra_scripts}
  122. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  123. monitor_speed = 115200
  124. debug_tool = jlink
  125. upload_protocol = jlink
  126. #
  127. # Custom upload to SD via Marlin with Binary Protocol
  128. #
  129. [STM32F103Rx_creality_xfer]
  130. extends = STM32F103Rx_creality
  131. build_flags = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
  132. extra_scripts = ${STM32F103Rx_creality.extra_scripts}
  133. pre:buildroot/share/scripts/upload.py
  134. upload_protocol = custom
  135. #
  136. # Creality 512K (STM32F103RE)
  137. #
  138. [env:STM32F103RE_creality]
  139. extends = STM32F103Rx_creality
  140. board = genericSTM32F103RE
  141. [env:STM32F103RE_creality_xfer]
  142. extends = STM32F103Rx_creality_xfer
  143. board = genericSTM32F103RE
  144. [env:STM32F103RE_creality_smartPro]
  145. extends = STM32F103Rx_creality
  146. board_build.offset = 0x10000
  147. board_upload.offset_address = 0x08010000
  148. #
  149. # Creality 256K (STM32F103RC)
  150. #
  151. [env:STM32F103RC_creality]
  152. extends = STM32F103Rx_creality
  153. board = genericSTM32F103RC
  154. [env:STM32F103RC_creality_xfer]
  155. extends = STM32F103Rx_creality_xfer
  156. board = genericSTM32F103RC
  157. #
  158. # BigTreeTech SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  159. #
  160. # STM32F103RE_btt ............. RET6
  161. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  162. #
  163. [env:STM32F103RE_btt]
  164. extends = stm32_variant
  165. board = genericSTM32F103RE
  166. board_build.variant = MARLIN_F103Rx
  167. board_build.offset = 0x7000
  168. board_upload.offset_address = 0x08007000
  169. build_flags = ${stm32_variant.build_flags}
  170. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  171. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  172. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  173. monitor_speed = 115200
  174. debug_tool = jlink
  175. upload_protocol = jlink
  176. [env:STM32F103RE_btt_USB]
  177. extends = env:STM32F103RE_btt
  178. platform_packages = ${stm_flash_drive.platform_packages}
  179. build_flags = ${env:STM32F103RE_btt.build_flags}
  180. -DUSE_USB_FS -DUSBD_IRQ_PRIO=5
  181. -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  182. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  183. #
  184. # FLSUN QQS Pro (STM32F103VET6)
  185. # board Hispeedv1
  186. #
  187. [env:flsun_hispeedv1]
  188. extends = stm32_variant
  189. board = genericSTM32F103VE
  190. board_build.variant = MARLIN_F103Vx
  191. board_build.encrypt_mks = Robin_mini.bin
  192. board_build.offset = 0x7000
  193. board_upload.offset_address = 0x08007000
  194. build_flags = ${stm32_variant.build_flags}
  195. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  196. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  197. build_unflags = ${stm32_variant.build_unflags}
  198. -DUSBCON -DUSBD_USE_CDC
  199. #
  200. # MKS Robin Nano V1.2 and V2
  201. #
  202. [env:mks_robin_nano35]
  203. extends = stm32_variant
  204. board = genericSTM32F103VE
  205. board_build.variant = MARLIN_F103Vx
  206. board_build.encrypt_mks = Robin_nano35.bin
  207. board_build.offset = 0x7000
  208. board_upload.offset_address = 0x08007000
  209. build_flags = ${stm32_variant.build_flags}
  210. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  211. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  212. build_unflags = ${stm32_variant.build_unflags}
  213. -DUSBCON -DUSBD_USE_CDC
  214. debug_tool = jlink
  215. upload_protocol = jlink
  216. #
  217. # Mingda MPX_ARM_MINI
  218. #
  219. [env:mingda_mpx_arm_mini]
  220. extends = stm32_variant
  221. board = genericSTM32F103ZE
  222. board_build.variant = MARLIN_F103Zx
  223. board_build.offset = 0x10000
  224. build_flags = ${stm32_variant.build_flags}
  225. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  226. build_unflags = ${stm32_variant.build_unflags}
  227. -DUSBCON -DUSBD_USE_CDC
  228. #
  229. # Malyan M200 (STM32F103CB)
  230. #
  231. [env:STM32F103CB_malyan]
  232. extends = common_stm32
  233. board = malyanm200_f103cb
  234. build_flags = ${common_stm32.build_flags}
  235. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
  236. -DHAL_UART_MODULE_ENABLED
  237. build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  238. #
  239. # FLYmaker FLY Mini (STM32F103RCT6)
  240. #
  241. [env:FLY_MINI]
  242. extends = stm32_variant
  243. board = genericSTM32F103RC
  244. board_build.variant = MARLIN_F103Rx
  245. board_build.offset = 0x5000
  246. board_upload.offset_address = 0x08005000
  247. build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
  248. #
  249. # MKS Robin Mini (STM32F103VET6)
  250. #
  251. [env:mks_robin_mini]
  252. extends = stm32_variant
  253. board = genericSTM32F103VE
  254. board_build.variant = MARLIN_F103Vx
  255. board_build.encrypt_mks = Robin_mini.bin
  256. board_build.offset = 0x7000
  257. board_upload.offset_address = 0x08007000
  258. build_flags = ${stm32_variant.build_flags}
  259. -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  260. #
  261. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  262. #
  263. [env:mks_robin_lite]
  264. extends = stm32_variant
  265. board = genericSTM32F103RC
  266. board_build.variant = MARLIN_F103Rx
  267. board_build.encrypt_mks = mksLite.bin
  268. board_build.offset = 0x5000
  269. board_upload.offset_address = 0x08005000
  270. #
  271. # MKS ROBIN LITE3 (STM32F103RCT6)
  272. #
  273. [env:mks_robin_lite3]
  274. extends = env:mks_robin_lite
  275. board_build.encrypt_mks = mksLite3.bin
  276. #
  277. # MKS Robin Pro (STM32F103ZET6)
  278. #
  279. [env:mks_robin_pro]
  280. extends = env:mks_robin
  281. board_build.encrypt_mks = Robin_pro.bin
  282. #
  283. # MKS Robin E3p (STM32F103VET6)
  284. # - LVGL UI
  285. #
  286. [env:mks_robin_e3p]
  287. extends = stm32_variant
  288. board = genericSTM32F103VE
  289. board_build.variant = MARLIN_F103Vx
  290. board_build.encrypt_mks = Robin_e3p.bin
  291. board_build.offset = 0x7000
  292. board_upload.offset_address = 0x08007000
  293. build_flags = ${stm32_variant.build_flags}
  294. -DMCU_STM32F103VE -DSS_TIMER=4
  295. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  296. debug_tool = jlink
  297. upload_protocol = jlink
  298. #
  299. # JGAurora A5S A1 (STM32F103ZET6)
  300. #
  301. [env:jgaurora_a5s_a1]
  302. extends = stm32_variant
  303. board = genericSTM32F103ZE
  304. board_build.variant = MARLIN_F103Zx
  305. board_build.offset = 0xA000
  306. board_upload.offset_address = 0x0800A000
  307. build_flags = ${stm32_variant.build_flags}
  308. -DSTM32F1xx -DSTM32_XL_DENSITY
  309. extra_scripts = ${stm32_variant.extra_scripts}
  310. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  311. #
  312. # FYSETC STM32F103RC
  313. #
  314. [env:STM32F103RC_fysetc]
  315. extends = common_STM32F103RC_variant
  316. extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
  317. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  318. lib_ldf_mode = chain
  319. debug_tool = stlink
  320. upload_protocol = serial
  321. #
  322. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  323. #
  324. [env:STM32F103VE_longer]
  325. extends = stm32_variant
  326. lib_deps = ${common.lib_deps}
  327. https://github.com/tpruvot/STM32_Servo_OpenDrain/archive/2.0.zip
  328. board = genericSTM32F103VE
  329. board_build.variant = MARLIN_F103VE_LONGER
  330. board_build.rename = project.bin
  331. board_build.offset = 0x10000
  332. board_upload.offset_address = 0x08010000
  333. build_flags = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
  334. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
  335. extra_scripts = ${stm32_variant.extra_scripts}
  336. monitor_speed = 250000
  337. debug_tool = stlink
  338. #
  339. # TRIGORILLA PRO (STM32F103ZET6)
  340. #
  341. [env:trigorilla_pro]
  342. extends = stm32_variant
  343. board = genericSTM32F103ZE
  344. board_build.variant = MARLIN_F103Zx
  345. build_flags = ${stm32_variant.build_flags}
  346. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  347. build_unflags = ${stm32_variant.build_unflags}
  348. -DUSBCON -DUSBD_USE_CDC
  349. #
  350. # TRIGORILLA PRO DISK BASED (STM32F103ZET6)
  351. # Builds for Trigorilla to update from SD
  352. #
  353. [env:trigorilla_pro_disk]
  354. extends = stm32_variant
  355. board = genericSTM32F103ZE
  356. board_build.crypt_chitu = update.zw
  357. board_build.variant = MARLIN_F103Zx
  358. board_build.offset = 0x8800
  359. build_flags = ${stm32_variant.build_flags}
  360. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  361. build_unflags = ${stm32_variant.build_unflags}
  362. -DUSBCON -DUSBD_USE_CDC
  363. extra_scripts = ${stm32_variant.extra_scripts}
  364. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  365. #
  366. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  367. #
  368. [env:chitu_f103]
  369. extends = stm32_variant
  370. board = genericSTM32F103ZE
  371. board_build.crypt_chitu = update.cbd
  372. board_build.variant = MARLIN_F103Zx
  373. board_build.offset = 0x8800
  374. build_flags = ${stm32_variant.build_flags}
  375. -DSTM32F1xx
  376. build_unflags = ${stm32_variant.build_unflags}
  377. extra_scripts = ${stm32_variant.extra_scripts}
  378. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  379. #
  380. # Some Chitu V5 boards have a problem with GPIO init.
  381. # Use this target if G28 or G29 are always failing.
  382. #
  383. [env:chitu_v5_gpio_init]
  384. extends = env:chitu_f103
  385. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  386. #
  387. # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
  388. #
  389. # STM32F103RC_ZM3E2_USB ........... RCT6 with 256K
  390. # STM32F103VC_ZM3E4_USB ........... VCT6 with 256K
  391. # STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
  392. #
  393. [ZONESTAR_ZM3E]
  394. extends = stm32_variant
  395. platform_packages = ${stm_flash_drive.platform_packages}
  396. board_upload.offset_address = 0x08005000
  397. board_build.offset = 0x5000
  398. board_upload.maximum_size = 237568
  399. extra_scripts = ${stm32_variant.extra_scripts}
  400. build_flags = ${common_stm32.build_flags}
  401. -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DUSE_USB_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  402. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  403. [env:STM32F103RC_ZM3E2_USB]
  404. extends = ZONESTAR_ZM3E
  405. board = genericSTM32F103RC
  406. board_build.variant = MARLIN_F103Rx
  407. [env:STM32F103VC_ZM3E4_USB]
  408. extends = ZONESTAR_ZM3E
  409. board = genericSTM32F103VC
  410. board_build.variant = MARLIN_F103Vx
  411. build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
  412. [env:STM32F103VE_ZM3E4V2_USB]
  413. extends = ZONESTAR_ZM3E
  414. board = genericSTM32F103VE
  415. board_build.variant = MARLIN_F103Vx
  416. build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
  417. board_upload.maximum_size = 499712