My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. extra_scripts = ${STM32F103Rx_creality.extra_scripts}
  130. pre:buildroot/share/scripts/upload.py
  131. upload_protocol = custom
  132. #
  133. # Creality 512K (STM32F103RE)
  134. #
  135. [env:STM32F103RE_creality]
  136. extends = STM32F103Rx_creality
  137. board = genericSTM32F103RE
  138. [env:STM32F103RE_creality_xfer]
  139. extends = STM32F103Rx_creality_xfer
  140. board = genericSTM32F103RE
  141. [env:STM32F103RE_creality_smartPro]
  142. extends = STM32F103Rx_creality
  143. board_build.offset = 0x10000
  144. board_upload.offset_address = 0x08010000
  145. #
  146. # Creality 256K (STM32F103RC)
  147. #
  148. [env:STM32F103RC_creality]
  149. extends = STM32F103Rx_creality
  150. board = genericSTM32F103RC
  151. [env:STM32F103RC_creality_xfer]
  152. extends = STM32F103Rx_creality_xfer
  153. board = genericSTM32F103RC
  154. #
  155. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  156. #
  157. # STM32F103RE_btt ............. RET6
  158. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  159. #
  160. [env:STM32F103RE_btt]
  161. extends = stm32_variant
  162. board = genericSTM32F103RE
  163. board_build.variant = MARLIN_F103Rx
  164. board_build.offset = 0x7000
  165. board_upload.offset_address = 0x08007000
  166. build_flags = ${stm32_variant.build_flags}
  167. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  168. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  169. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  170. monitor_speed = 115200
  171. debug_tool = jlink
  172. upload_protocol = jlink
  173. [env:STM32F103RE_btt_USB]
  174. extends = env:STM32F103RE_btt
  175. platform_packages = ${stm_flash_drive.platform_packages}
  176. build_flags = ${env:STM32F103RE_btt.build_flags}
  177. -DUSE_USB_FS -DUSBD_IRQ_PRIO=5
  178. -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  179. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  180. #
  181. # FLSUN QQS Pro (STM32F103VET6)
  182. # board Hispeedv1
  183. #
  184. [env:flsun_hispeedv1]
  185. extends = stm32_variant
  186. board = genericSTM32F103VE
  187. board_build.variant = MARLIN_F103Vx
  188. board_build.encrypt = Robin_mini.bin
  189. board_build.offset = 0x7000
  190. board_upload.offset_address = 0x08007000
  191. build_flags = ${stm32_variant.build_flags}
  192. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  193. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  194. build_unflags = ${stm32_variant.build_unflags}
  195. -DUSBCON -DUSBD_USE_CDC
  196. #
  197. # MKS Robin Nano V1.2 and V2
  198. #
  199. [env:mks_robin_nano35]
  200. extends = stm32_variant
  201. board = genericSTM32F103VE
  202. board_build.variant = MARLIN_F103Vx
  203. board_build.encrypt = Robin_nano35.bin
  204. board_build.offset = 0x7000
  205. board_upload.offset_address = 0x08007000
  206. build_flags = ${stm32_variant.build_flags}
  207. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  208. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  209. build_unflags = ${stm32_variant.build_unflags}
  210. -DUSBCON -DUSBD_USE_CDC
  211. debug_tool = jlink
  212. upload_protocol = jlink
  213. #
  214. # Mingda MPX_ARM_MINI
  215. #
  216. [env:mingda_mpx_arm_mini]
  217. extends = stm32_variant
  218. board = genericSTM32F103ZE
  219. board_build.variant = MARLIN_F103Zx
  220. board_build.offset = 0x10000
  221. build_flags = ${stm32_variant.build_flags}
  222. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  223. build_unflags = ${stm32_variant.build_unflags}
  224. -DUSBCON -DUSBD_USE_CDC
  225. #
  226. # Malyan M200 (STM32F103CB)
  227. #
  228. [env:STM32F103CB_malyan]
  229. extends = common_stm32
  230. board = malyanm200_f103cb
  231. build_flags = ${common_stm32.build_flags}
  232. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
  233. -DHAL_UART_MODULE_ENABLED
  234. build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  235. #
  236. # FLYmaker FLY Mini (STM32F103RCT6)
  237. #
  238. [env:FLY_MINI]
  239. extends = stm32_variant
  240. board = genericSTM32F103RC
  241. board_build.variant = MARLIN_F103Rx
  242. board_build.offset = 0x5000
  243. board_upload.offset_address = 0x08005000
  244. build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
  245. #
  246. # MKS Robin Mini (STM32F103VET6)
  247. #
  248. [env:mks_robin_mini]
  249. extends = stm32_variant
  250. board = genericSTM32F103VE
  251. board_build.variant = MARLIN_F103Vx
  252. board_build.encrypt = Robin_mini.bin
  253. board_build.offset = 0x7000
  254. board_upload.offset_address = 0x08007000
  255. build_flags = ${stm32_variant.build_flags}
  256. -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  257. #
  258. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  259. #
  260. [env:mks_robin_lite]
  261. extends = stm32_variant
  262. board = genericSTM32F103RC
  263. board_build.variant = MARLIN_F103Rx
  264. board_build.encrypt = mksLite.bin
  265. board_build.offset = 0x5000
  266. board_upload.offset_address = 0x08005000
  267. #
  268. # MKS ROBIN LITE3 (STM32F103RCT6)
  269. #
  270. [env:mks_robin_lite3]
  271. extends = env:mks_robin_lite
  272. board_build.encrypt = mksLite3.bin
  273. #
  274. # MKS Robin Pro (STM32F103ZET6)
  275. #
  276. [env:mks_robin_pro]
  277. extends = env:mks_robin
  278. board_build.encrypt = Robin_pro.bin
  279. #
  280. # MKS Robin E3p (STM32F103VET6)
  281. # - LVGL UI
  282. #
  283. [env:mks_robin_e3p]
  284. extends = stm32_variant
  285. board = genericSTM32F103VE
  286. board_build.variant = MARLIN_F103Vx
  287. board_build.encrypt = Robin_e3p.bin
  288. board_build.offset = 0x7000
  289. board_upload.offset_address = 0x08007000
  290. build_flags = ${stm32_variant.build_flags}
  291. -DMCU_STM32F103VE -DSS_TIMER=4
  292. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  293. debug_tool = jlink
  294. upload_protocol = jlink
  295. #
  296. # JGAurora A5S A1 (STM32F103ZET6)
  297. #
  298. [env:jgaurora_a5s_a1]
  299. extends = stm32_variant
  300. board = genericSTM32F103ZE
  301. board_build.variant = MARLIN_F103Zx
  302. board_build.offset = 0xA000
  303. board_build.rename = firmware_for_sd_upload.bin
  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