My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

stm32f1.ini 13KB

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