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

stm32f1.ini 14KB

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