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 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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
  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. platform = ${common_stm32.platform}
  31. extends = common_stm32
  32. board = genericSTM32F103RE
  33. monitor_speed = 115200
  34. #
  35. # STM32F103VE
  36. #
  37. [env:STM32F103VE]
  38. platform = ${common_stm32.platform}
  39. extends = common_stm32
  40. board = genericSTM32F103VE
  41. monitor_speed = 115200
  42. #
  43. # STM32F103ZE
  44. #
  45. [env:STM32F103ZE]
  46. platform = ${common_stm32.platform}
  47. extends = common_stm32
  48. board = genericSTM32F103ZE
  49. monitor_speed = 115200
  50. #
  51. # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
  52. #
  53. # STM32F103RC_btt ............. RCT6 with 256K
  54. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  55. #
  56. [env:STM32F103RC_btt]
  57. platform = ${common_stm32.platform}
  58. extends = common_STM32F103RC_variant
  59. build_flags = ${common_STM32F103RC_variant.build_flags}
  60. -DTIMER_SERVO=TIM5
  61. board_build.offset = 0x7000
  62. board_upload.offset_address = 0x08007000
  63. [env:STM32F103RC_btt_USB]
  64. platform = ${common_stm32.platform}
  65. extends = env:STM32F103RC_btt
  66. platform_packages = ${stm_flash_drive.platform_packages}
  67. build_flags = ${env:STM32F103RC_btt.build_flags}
  68. -DUSE_USB_FS
  69. -DUSBD_IRQ_PRIO=5
  70. -DUSBD_IRQ_SUBPRIO=6
  71. -DUSBD_USE_CDC_MSC
  72. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  73. #
  74. # MKS Robin (STM32F103ZET6)
  75. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  76. #
  77. [env:mks_robin]
  78. platform = ${common_stm32.platform}
  79. extends = stm32_variant
  80. board = genericSTM32F103ZE
  81. board_build.variant = MARLIN_F103Zx
  82. board_build.encrypt = Robin.bin
  83. board_build.offset = 0x7000
  84. build_flags = ${stm32_variant.build_flags}
  85. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  86. build_unflags = ${stm32_variant.build_unflags}
  87. -DUSBCON -DUSBD_USE_CDC
  88. #
  89. # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
  90. #
  91. [env:mks_robin_e3]
  92. platform = ${common_stm32.platform}
  93. extends = common_STM32F103RC_variant
  94. board_build.encrypt = Robin_e3.bin
  95. board_build.offset = 0x5000
  96. board_upload.offset_address = 0x08005000
  97. build_flags = ${common_STM32F103RC_variant.build_flags}
  98. -DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
  99. build_unflags = ${common_STM32F103RC_variant.build_unflags}
  100. -DUSBCON -DUSBD_USE_CDC
  101. monitor_speed = 115200
  102. debug_tool = stlink
  103. #
  104. # Creality (STM32F103RET6)
  105. #
  106. [env:STM32F103RET6_creality]
  107. platform = ${common_stm32.platform}
  108. extends = stm32_variant
  109. board = genericSTM32F103RE
  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. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  126. #
  127. # STM32F103RE_btt ............. RET6
  128. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  129. #
  130. [env:STM32F103RE_btt]
  131. platform = ${common_stm32.platform}
  132. extends = stm32_variant
  133. board = genericSTM32F103RE
  134. board_build.variant = MARLIN_F103Rx
  135. board_build.offset = 0x7000
  136. board_upload.offset_address = 0x08007000
  137. build_flags = ${stm32_variant.build_flags}
  138. -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
  139. -DSS_TIMER=4 -DTIMER_SERVO=TIM5
  140. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  141. monitor_speed = 115200
  142. debug_tool = jlink
  143. upload_protocol = jlink
  144. [env:STM32F103RE_btt_USB]
  145. platform = ${common_stm32.platform}
  146. extends = env:STM32F103RE_btt
  147. platform_packages = ${stm_flash_drive.platform_packages}
  148. build_flags = ${env:STM32F103RE_btt.build_flags}
  149. -DUSE_USB_FS -DUSBD_IRQ_PRIO=5
  150. -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
  151. build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
  152. #
  153. # FLSUN QQS Pro (STM32F103VET6)
  154. # board Hispeedv1
  155. #
  156. [env:flsun_hispeedv1]
  157. platform = ${common_stm32.platform}
  158. extends = stm32_variant
  159. board = genericSTM32F103VE
  160. board_build.variant = MARLIN_F103Vx
  161. board_build.encrypt = Robin_mini.bin
  162. board_build.offset = 0x7000
  163. board_upload.offset_address = 0x08007000
  164. build_flags = ${stm32_variant.build_flags}
  165. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  166. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  167. build_unflags = ${stm32_variant.build_unflags}
  168. -DUSBCON -DUSBD_USE_CDC
  169. #
  170. # MKS Robin Nano V1.2 and V2
  171. #
  172. [env:mks_robin_nano35]
  173. platform = ${common_stm32.platform}
  174. extends = stm32_variant
  175. board = genericSTM32F103VE
  176. board_build.variant = MARLIN_F103Vx
  177. board_build.encrypt = Robin_nano35.bin
  178. board_build.offset = 0x7000
  179. board_upload.offset_address = 0x08007000
  180. build_flags = ${stm32_variant.build_flags}
  181. -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  182. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  183. build_unflags = ${stm32_variant.build_unflags}
  184. -DUSBCON -DUSBD_USE_CDC
  185. debug_tool = jlink
  186. upload_protocol = jlink
  187. #
  188. # Mingda MPX_ARM_MINI
  189. #
  190. [env:mingda_mpx_arm_mini]
  191. platform = ${common_stm32.platform}
  192. extends = stm32_variant
  193. board = genericSTM32F103ZE
  194. board_build.variant = MARLIN_F103Zx
  195. board_build.offset = 0x10000
  196. build_flags = ${stm32_variant.build_flags}
  197. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  198. build_unflags = ${stm32_variant.build_unflags}
  199. -DUSBCON -DUSBD_USE_CDC
  200. #
  201. # Malyan M200 (STM32F103CB)
  202. #
  203. [env:STM32F103CB_malyan]
  204. platform = ${common_stm32.platform}
  205. extends = common_stm32
  206. board = malyanm200_f103cb
  207. build_flags = ${common_stm32.build_flags}
  208. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
  209. -DHAL_UART_MODULE_ENABLED
  210. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  211. #
  212. # FLYmaker FLY Mini (STM32F103RCT6)
  213. #
  214. [env:FLY_MINI]
  215. platform = ${common_stm32.platform}
  216. extends = stm32_variant
  217. board = genericSTM32F103RC
  218. board_build.variant = MARLIN_F103Rx
  219. board_build.offset = 0x5000
  220. board_upload.offset_address = 0x08005000
  221. build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
  222. #
  223. # MKS Robin Mini (STM32F103VET6)
  224. #
  225. [env:mks_robin_mini]
  226. platform = ${common_stm32.platform}
  227. extends = stm32_variant
  228. board = genericSTM32F103VE
  229. board_build.variant = MARLIN_F103Vx
  230. board_build.encrypt = Robin_mini.bin
  231. board_build.offset = 0x7000
  232. board_upload.offset_address = 0x08007000
  233. build_flags = ${stm32_variant.build_flags}
  234. -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  235. #
  236. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  237. #
  238. [env:mks_robin_lite]
  239. platform = ${common_stm32.platform}
  240. extends = stm32_variant
  241. board = genericSTM32F103RC
  242. board_build.variant = MARLIN_F103Rx
  243. board_build.encrypt = mksLite.bin
  244. board_build.offset = 0x5000
  245. board_upload.offset_address = 0x08005000
  246. #
  247. # MKS ROBIN LITE3 (STM32F103RCT6)
  248. #
  249. [env:mks_robin_lite3]
  250. platform = ${common_stm32.platform}
  251. extends = env:mks_robin_lite
  252. board_build.encrypt = mksLite3.bin
  253. #
  254. # MKS Robin Pro (STM32F103ZET6)
  255. #
  256. [env:mks_robin_pro]
  257. platform = ${common_stm32.platform}
  258. extends = env:mks_robin
  259. board_build.encrypt = Robin_pro.bin
  260. #
  261. # MKS Robin E3p (STM32F103VET6)
  262. # - LVGL UI
  263. #
  264. [env:mks_robin_e3p]
  265. platform = ${common_stm32.platform}
  266. extends = stm32_variant
  267. board = genericSTM32F103VE
  268. board_build.variant = MARLIN_F103Vx
  269. board_build.encrypt = Robin_e3p.bin
  270. board_build.offset = 0x7000
  271. board_upload.offset_address = 0x08007000
  272. build_flags = ${stm32_variant.build_flags}
  273. -DMCU_STM32F103VE -DSS_TIMER=4
  274. -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
  275. debug_tool = jlink
  276. upload_protocol = jlink
  277. #
  278. # JGAurora A5S A1 (STM32F103ZET6)
  279. #
  280. [env:jgaurora_a5s_a1]
  281. platform = ${common_stm32.platform}
  282. extends = stm32_variant
  283. board = genericSTM32F103ZE
  284. board_build.variant = MARLIN_F103Zx
  285. board_build.offset = 0xA000
  286. board_build.rename = firmware_for_sd_upload.bin
  287. board_upload.offset_address = 0x0800A000
  288. build_flags = ${stm32_variant.build_flags}
  289. -DSTM32F1xx -DSTM32_XL_DENSITY
  290. extra_scripts = ${stm32_variant.extra_scripts}
  291. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  292. #
  293. # FYSETC STM32F103RC
  294. #
  295. [env:STM32F103RC_fysetc]
  296. platform = ${common_stm32.platform}
  297. extends = common_STM32F103RC_variant
  298. extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
  299. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  300. lib_ldf_mode = chain
  301. debug_tool = stlink
  302. upload_protocol = serial
  303. #
  304. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  305. #
  306. [env:STM32F103VE_longer]
  307. platform = ${common_stm32.platform}
  308. extends = stm32_variant
  309. board = genericSTM32F103VE
  310. board_build.variant = MARLIN_F103Vx
  311. board_build.offset = 0x10000
  312. board_upload.offset_address = 0x08010000
  313. build_flags = ${stm32_variant.build_flags}
  314. -DMCU_STM32F103VE -DU20 -DTS_V12 -DLED_BUILTIN=PC2 -UPIN_WIRE_SDA
  315. -UPIN_WIRE_SCL -DPIN_WIRE_SDA=PB11 -DPIN_WIRE_SCL=PB10
  316. -DHAL_DAC_MODULE_DISABLED -DHAL_I2S_MODULE_DISABLED
  317. build_unflags = ${stm32_variant.build_unflags}
  318. -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
  319. extra_scripts = ${stm32_variant.extra_scripts}
  320. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  321. #
  322. # TRIGORILLA PRO (STM32F103ZET6)
  323. #
  324. [env:trigorilla_pro]
  325. platform = ${common_stm32.platform}
  326. extends = env:mks_robin
  327. extra_scripts = ${common_stm32.extra_scripts}
  328. #
  329. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  330. #
  331. [env:chitu_f103]
  332. platform = ${common_stm32.platform}
  333. extends = stm32_variant
  334. board = genericSTM32F103ZE
  335. board_build.variant = MARLIN_F103Zx
  336. build_flags = ${stm32_variant.build_flags}
  337. -DSTM32F1xx -DSTM32_XL_DENSITY
  338. build_unflags = ${stm32_variant.build_unflags}
  339. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=
  340. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  341. extra_scripts = ${stm32_variant.extra_scripts}
  342. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  343. #
  344. # Some Chitu V5 boards have a problem with GPIO init.
  345. # Use this target if G28 or G29 are always failing.
  346. #
  347. [env:chitu_v5_gpio_init]
  348. platform = ${common_stm32.platform}
  349. extends = env:chitu_f103
  350. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX