My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

stm32f1.ini 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  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. # BigTree 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. #
  79. # MKS Robin (STM32F103ZET6)
  80. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  81. #
  82. [env:mks_robin]
  83. extends = stm32_variant
  84. board = genericSTM32F103ZE
  85. board_build.variant = MARLIN_F103Zx
  86. board_build.encrypt = Robin.bin
  87. board_build.offset = 0x7000
  88. build_flags = ${stm32_variant.build_flags}
  89. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  90. build_unflags = ${stm32_variant.build_unflags}
  91. -DUSBCON -DUSBD_USE_CDC
  92. #
  93. # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
  94. #
  95. [env:mks_robin_e3]
  96. extends = common_STM32F103RC_variant
  97. board_build.encrypt = Robin_e3.bin
  98. board_build.offset = 0x5000
  99. board_upload.offset_address = 0x08005000
  100. build_flags = ${common_STM32F103RC_variant.build_flags}
  101. -DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
  102. build_unflags = ${common_STM32F103RC_variant.build_unflags}
  103. -DUSBCON -DUSBD_USE_CDC
  104. debug_tool = stlink
  105. #
  106. # Creality (STM32F103Rx)
  107. #
  108. [STM32F103Rx_creality]
  109. extends = stm32_variant
  110. board_build.variant = MARLIN_F103Rx
  111. board_build.offset = 0x7000
  112. board_upload.offset_address = 0x08007000
  113. build_flags = ${stm32_variant.build_flags}
  114. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  115. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  116. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  117. build_unflags = ${stm32_variant.build_unflags}
  118. -DUSBCON -DUSBD_USE_CDC
  119. extra_scripts = ${stm32_variant.extra_scripts}
  120. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  121. monitor_speed = 115200
  122. debug_tool = jlink
  123. upload_protocol = jlink
  124. #
  125. # Custom upload to SD via Marlin with Binary Protocol
  126. #
  127. [STM32F103Rx_creality_xfer]
  128. extends = STM32F103Rx_creality
  129. build_flags = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
  130. extra_scripts = ${STM32F103Rx_creality.extra_scripts}
  131. pre:buildroot/share/scripts/upload.py
  132. upload_protocol = custom
  133. #
  134. # Creality 512K (STM32F103RE)
  135. #
  136. [env:STM32F103RE_creality]
  137. extends = STM32F103Rx_creality
  138. board = genericSTM32F103RE
  139. [env:STM32F103RE_creality_xfer]
  140. extends = STM32F103Rx_creality_xfer
  141. board = genericSTM32F103RE
  142. [env:STM32F103RE_creality_smartPro]
  143. extends = STM32F103Rx_creality
  144. board_build.offset = 0x10000
  145. board_upload.offset_address = 0x08010000
  146. #
  147. # Creality 256K (STM32F103RC)
  148. #
  149. [env:STM32F103RC_creality]
  150. extends = STM32F103Rx_creality
  151. board = genericSTM32F103RC
  152. [env:STM32F103RC_creality_xfer]
  153. extends = STM32F103Rx_creality_xfer
  154. board = genericSTM32F103RC
  155. #
  156. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  157. #
  158. # STM32F103RE_btt ............. RET6
  159. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  160. #
  161. [env:STM32F103RE_btt]
  162. extends = stm32_variant
  163. board = genericSTM32F103RE
  164. board_build.variant = MARLIN_F103Rx
  165. board_build.offset = 0x7000
  166. board_upload.offset_address = 0x08007000
  167. build_flags = ${stm32_variant.build_flags}
  168. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  169. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  170. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  171. monitor_speed = 115200
  172. debug_tool = jlink
  173. upload_protocol = jlink
  174. [env:STM32F103RE_btt_USB]
  175. extends = env:STM32F103RE_btt
  176. platform_packages = ${stm_flash_drive.platform_packages}
  177. build_flags = ${env:STM32F103RE_btt.build_flags}
  178. -DUSE_USB_FS -DUSBD_IRQ_PRIO=5
  179. -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  180. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  181. #
  182. # FLSUN QQS Pro (STM32F103VET6)
  183. # board Hispeedv1
  184. #
  185. [env:flsun_hispeedv1]
  186. extends = stm32_variant
  187. board = genericSTM32F103VE
  188. board_build.variant = MARLIN_F103Vx
  189. board_build.encrypt = Robin_mini.bin
  190. board_build.offset = 0x7000
  191. board_upload.offset_address = 0x08007000
  192. build_flags = ${stm32_variant.build_flags}
  193. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  194. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  195. build_unflags = ${stm32_variant.build_unflags}
  196. -DUSBCON -DUSBD_USE_CDC
  197. #
  198. # MKS Robin Nano V1.2 and V2
  199. #
  200. [env:mks_robin_nano35]
  201. extends = stm32_variant
  202. board = genericSTM32F103VE
  203. board_build.variant = MARLIN_F103Vx
  204. board_build.encrypt = Robin_nano35.bin
  205. board_build.offset = 0x7000
  206. board_upload.offset_address = 0x08007000
  207. build_flags = ${stm32_variant.build_flags}
  208. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  209. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  210. build_unflags = ${stm32_variant.build_unflags}
  211. -DUSBCON -DUSBD_USE_CDC
  212. debug_tool = jlink
  213. upload_protocol = jlink
  214. #
  215. # Mingda MPX_ARM_MINI
  216. #
  217. [env:mingda_mpx_arm_mini]
  218. extends = stm32_variant
  219. board = genericSTM32F103ZE
  220. board_build.variant = MARLIN_F103Zx
  221. board_build.offset = 0x10000
  222. build_flags = ${stm32_variant.build_flags}
  223. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  224. build_unflags = ${stm32_variant.build_unflags}
  225. -DUSBCON -DUSBD_USE_CDC
  226. #
  227. # Malyan M200 (STM32F103CB)
  228. #
  229. [env:STM32F103CB_malyan]
  230. extends = common_stm32
  231. board = malyanm200_f103cb
  232. build_flags = ${common_stm32.build_flags}
  233. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
  234. -DHAL_UART_MODULE_ENABLED
  235. build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  236. #
  237. # FLYmaker FLY Mini (STM32F103RCT6)
  238. #
  239. [env:FLY_MINI]
  240. extends = stm32_variant
  241. board = genericSTM32F103RC
  242. board_build.variant = MARLIN_F103Rx
  243. board_build.offset = 0x5000
  244. board_upload.offset_address = 0x08005000
  245. build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
  246. #
  247. # MKS Robin Mini (STM32F103VET6)
  248. #
  249. [env:mks_robin_mini]
  250. extends = stm32_variant
  251. board = genericSTM32F103VE
  252. board_build.variant = MARLIN_F103Vx
  253. board_build.encrypt = Robin_mini.bin
  254. board_build.offset = 0x7000
  255. board_upload.offset_address = 0x08007000
  256. build_flags = ${stm32_variant.build_flags}
  257. -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  258. #
  259. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  260. #
  261. [env:mks_robin_lite]
  262. extends = stm32_variant
  263. board = genericSTM32F103RC
  264. board_build.variant = MARLIN_F103Rx
  265. board_build.encrypt = mksLite.bin
  266. board_build.offset = 0x5000
  267. board_upload.offset_address = 0x08005000
  268. #
  269. # MKS ROBIN LITE3 (STM32F103RCT6)
  270. #
  271. [env:mks_robin_lite3]
  272. extends = env:mks_robin_lite
  273. board_build.encrypt = mksLite3.bin
  274. #
  275. # MKS Robin Pro (STM32F103ZET6)
  276. #
  277. [env:mks_robin_pro]
  278. extends = env:mks_robin
  279. board_build.encrypt = Robin_pro.bin
  280. #
  281. # MKS Robin E3p (STM32F103VET6)
  282. # - LVGL UI
  283. #
  284. [env:mks_robin_e3p]
  285. extends = stm32_variant
  286. board = genericSTM32F103VE
  287. board_build.variant = MARLIN_F103Vx
  288. board_build.encrypt = Robin_e3p.bin
  289. board_build.offset = 0x7000
  290. board_upload.offset_address = 0x08007000
  291. build_flags = ${stm32_variant.build_flags}
  292. -DMCU_STM32F103VE -DSS_TIMER=4
  293. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  294. debug_tool = jlink
  295. upload_protocol = jlink
  296. #
  297. # JGAurora A5S A1 (STM32F103ZET6)
  298. #
  299. [env:jgaurora_a5s_a1]
  300. extends = stm32_variant
  301. board = genericSTM32F103ZE
  302. board_build.variant = MARLIN_F103Zx
  303. board_build.offset = 0xA000
  304. board_upload.offset_address = 0x0800A000
  305. build_flags = ${stm32_variant.build_flags}
  306. -DSTM32F1xx -DSTM32_XL_DENSITY
  307. extra_scripts = ${stm32_variant.extra_scripts}
  308. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  309. #
  310. # FYSETC STM32F103RC
  311. #
  312. [env:STM32F103RC_fysetc]
  313. extends = common_STM32F103RC_variant
  314. extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
  315. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  316. lib_ldf_mode = chain
  317. debug_tool = stlink
  318. upload_protocol = serial
  319. #
  320. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  321. #
  322. [env:STM32F103VE_longer]
  323. extends = stm32_variant
  324. lib_deps = ${common.lib_deps}
  325. https://github.com/tpruvot/STM32_Servo_OpenDrain/archive/2.0.zip
  326. board = genericSTM32F103VE
  327. board_build.variant = MARLIN_F103VE_LONGER
  328. board_build.rename = project.bin
  329. board_build.offset = 0x10000
  330. board_upload.offset_address = 0x08010000
  331. build_flags = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
  332. build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
  333. extra_scripts = ${stm32_variant.extra_scripts}
  334. monitor_speed = 250000
  335. debug_tool = stlink
  336. #
  337. # TRIGORILLA PRO (STM32F103ZET6)
  338. #
  339. [env:trigorilla_pro]
  340. extends = stm32_variant
  341. board = genericSTM32F103ZE
  342. board_build.variant = MARLIN_F103Zx
  343. build_flags = ${stm32_variant.build_flags}
  344. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  345. build_unflags = ${stm32_variant.build_unflags}
  346. -DUSBCON -DUSBD_USE_CDC
  347. #
  348. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  349. #
  350. [env:chitu_f103]
  351. extends = stm32_variant
  352. board = genericSTM32F103ZE
  353. board_build.variant = MARLIN_F103Zx
  354. board_build.offset = 0x8800
  355. build_flags = ${stm32_variant.build_flags}
  356. -DSTM32F1xx
  357. build_unflags = ${stm32_variant.build_unflags}
  358. extra_scripts = ${stm32_variant.extra_scripts}
  359. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  360. #
  361. # Some Chitu V5 boards have a problem with GPIO init.
  362. # Use this target if G28 or G29 are always failing.
  363. #
  364. [env:chitu_v5_gpio_init]
  365. extends = env:chitu_f103
  366. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  367. #
  368. # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
  369. #
  370. # STM32F103RC_ZM3E2_USB ........... RCT6 with 256K
  371. # STM32F103VC_ZM3E4_USB ........... VCT6 with 256K
  372. # STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
  373. #
  374. [ZONESTAR_ZM3E]
  375. extends = stm32_variant
  376. platform_packages = ${stm_flash_drive.platform_packages}
  377. board_upload.offset_address = 0x08005000
  378. board_build.offset = 0x5000
  379. board_upload.maximum_size = 237568
  380. extra_scripts = ${stm32_variant.extra_scripts}
  381. build_flags = ${common_stm32.build_flags}
  382. -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DUSE_USB_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  383. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  384. [env:STM32F103RC_ZM3E2_USB]
  385. extends = ZONESTAR_ZM3E
  386. board = genericSTM32F103RC
  387. board_build.variant = MARLIN_F103Rx
  388. [env:STM32F103VC_ZM3E4_USB]
  389. extends = ZONESTAR_ZM3E
  390. board = genericSTM32F103VC
  391. board_build.variant = MARLIN_F103Vx
  392. build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
  393. [env:STM32F103VE_ZM3E4V2_USB]
  394. extends = ZONESTAR_ZM3E
  395. board = genericSTM32F103VE
  396. board_build.variant = MARLIN_F103Vx
  397. build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
  398. board_upload.maximum_size = 499712