My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32f1-maple.ini 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32F1 Architecture with LibMaple STM32F1 HAL
  8. #
  9. # Naming Example: STM32F103RCT6
  10. #
  11. # F : Foundation (sometimes High Performance F2/F4)
  12. # 1 : Cortex M1 core
  13. # 03 : Line/Features
  14. # R : 64 or 66 pins (V:100, Z:144, I:176)
  15. # C : 256KB Flash-memory (D:384KB, E:512KB, G:1024KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # HAL/STM32F1 Common Environment values
  22. #
  23. [common_stm32f1]
  24. platform = ststm32@~12.1
  25. board_build.core = maple
  26. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  27. ${common.build_flags}
  28. -DARDUINO_ARCH_STM32
  29. build_unflags = -std=gnu11 -std=gnu++11
  30. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  31. lib_ignore = SPI, FreeRTOS701, FreeRTOS821
  32. lib_deps = ${common.lib_deps}
  33. SoftwareSerialM
  34. platform_packages = tool-stm32duino
  35. extra_scripts = ${common.extra_scripts}
  36. pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
  37. #
  38. # STM32F103RC
  39. #
  40. [common_STM32F103RC_maple]
  41. platform = ${common_stm32f1.platform}
  42. extends = common_stm32f1
  43. board = genericSTM32F103RC
  44. monitor_speed = 115200
  45. #
  46. # MEEB_3DP (STM32F103RCT6 with 512K)
  47. #
  48. [env:STM32F103RC_meeb]
  49. platform = ${common_stm32f1.platform}
  50. extends = common_STM32F103RC_maple
  51. board = marlin_MEEB_3DP
  52. build_flags = ${common_stm32f1.build_flags}
  53. -DDEBUG_LEVEL=0
  54. -DSS_TIMER=4
  55. -DSTM32_FLASH_SIZE=512
  56. -DHSE_VALUE=12000000U
  57. -DUSE_USB_COMPOSITE
  58. -DVECT_TAB_OFFSET=0x2000
  59. -DGENERIC_BOOTLOADER
  60. extra_scripts = ${common_stm32f1.extra_scripts}
  61. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  62. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  63. lib_deps = ${common.lib_deps}
  64. SoftwareSerialM
  65. USBComposite for STM32F1@0.91
  66. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  67. debug_tool = stlink
  68. upload_protocol = dfu
  69. #
  70. # FYSETC STM32F103RC
  71. #
  72. [env:STM32F103RC_fysetc]
  73. platform = ${common_stm32f1.platform}
  74. extends = common_STM32F103RC_maple
  75. extra_scripts = ${common_stm32f1.extra_scripts}
  76. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  77. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  78. lib_ldf_mode = chain
  79. debug_tool = stlink
  80. upload_protocol = serial
  81. #
  82. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  83. #
  84. # STM32F103RC_btt_maple ............. RCT6 with 256K
  85. # STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
  86. # STM32F103RC_btt_512K_maple ........ RCT6 with 512K
  87. # STM32F103RC_btt_512K_USB_maple .... RCT6 with 512K (USB mass storage)
  88. #
  89. # WARNING! If you have an SKR Mini v1.1 or an SKR Mini E3 1.0 / 1.2 / 2.0 / DIP
  90. # and experience a printer freeze, re-flash Marlin using the regular (non-512K)
  91. # build option. 256K chips may be re-branded 512K chips, but this means the
  92. # upper 256K is sketchy, and failure is very likely.
  93. #
  94. [env:STM32F103RC_btt_maple]
  95. platform = ${common_stm32f1.platform}
  96. extends = common_STM32F103RC_maple
  97. board_build.address = 0x08007000
  98. board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
  99. extra_scripts = ${common_stm32f1.extra_scripts}
  100. buildroot/share/PlatformIO/scripts/custom_board.py
  101. build_flags = ${common_stm32f1.build_flags}
  102. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  103. monitor_speed = 115200
  104. [env:STM32F103RC_btt_USB_maple]
  105. platform = ${common_stm32f1.platform}
  106. extends = env:STM32F103RC_btt_maple
  107. build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  108. lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
  109. USBComposite for STM32F1@0.91
  110. [env:STM32F103RC_btt_512K_maple]
  111. platform = ${common_stm32f1.platform}
  112. extends = env:STM32F103RC_btt_maple
  113. board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
  114. board_upload.maximum_size = 524288
  115. build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DSTM32_FLASH_SIZE=512
  116. [env:STM32F103RC_btt_512K_USB_maple]
  117. platform = ${common_stm32f1.platform}
  118. extends = env:STM32F103RC_btt_512K_maple
  119. build_flags = ${env:STM32F103RC_btt_512K_maple.build_flags} -DUSE_USB_COMPOSITE
  120. lib_deps = ${env:STM32F103RC_btt_512K_maple.lib_deps}
  121. USBComposite for STM32F1@0.91
  122. #
  123. # Generic STM32F103RE environment
  124. #
  125. [env:STM32F103RE_maple]
  126. platform = ${common_stm32f1.platform}
  127. extends = common_stm32f1
  128. board = genericSTM32F103RE
  129. monitor_speed = 115200
  130. #
  131. # Creality (STM32F103RET6)
  132. #
  133. [env:STM32F103RET6_creality_maple]
  134. platform = ${common_stm32f1.platform}
  135. extends = env:STM32F103RE_maple
  136. build_flags = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
  137. board_build.address = 0x08007000
  138. board_build.ldscript = creality.ld
  139. extra_scripts = ${common_stm32f1.extra_scripts}
  140. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  141. buildroot/share/PlatformIO/scripts/custom_board.py
  142. debug_tool = jlink
  143. upload_protocol = jlink
  144. #
  145. # BigTree SKR Mini E3 DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  146. #
  147. # STM32F103RE_btt_maple ............. RET6
  148. # STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
  149. #
  150. [env:STM32F103RE_btt_maple]
  151. platform = ${common_stm32f1.platform}
  152. extends = env:STM32F103RE_maple
  153. board_build.address = 0x08007000
  154. board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
  155. extra_scripts = ${common_stm32f1.extra_scripts}
  156. buildroot/share/PlatformIO/scripts/custom_board.py
  157. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  158. debug_tool = stlink
  159. upload_protocol = stlink
  160. [env:STM32F103RE_btt_USB_maple]
  161. platform = ${common_stm32f1.platform}
  162. extends = env:STM32F103RE_btt_maple
  163. build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  164. lib_deps = ${common_stm32f1.lib_deps}
  165. USBComposite for STM32F1@0.91
  166. #
  167. # Geeetech GTM32 (STM32F103VET6)
  168. #
  169. [env:STM32F103VE_GTM32]
  170. platform = ${common_stm32f1.platform}
  171. extends = common_stm32f1
  172. board = genericSTM32F103VE
  173. build_flags = ${common_stm32f1.build_flags}
  174. -ffunction-sections -fdata-sections -nostdlib -MMD
  175. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  176. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  177. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  178. upload_protocol = serial
  179. #
  180. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  181. #
  182. [env:STM32F103VE_longer]
  183. platform = ${common_stm32f1.platform}
  184. extends = common_stm32f1
  185. board = genericSTM32F103VE
  186. board_build.address = 0x08010000
  187. board_build.ldscript = STM32F103VE_longer.ld
  188. extra_scripts = ${common_stm32f1.extra_scripts}
  189. buildroot/share/PlatformIO/scripts/custom_board.py
  190. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  191. build_flags = ${common_stm32f1.build_flags}
  192. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  193. build_unflags = ${common_stm32f1.build_unflags}
  194. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  195. #
  196. # MKS Robin Mini (STM32F103VET6)
  197. #
  198. [env:mks_robin_mini]
  199. platform = ${common_stm32f1.platform}
  200. extends = common_stm32f1
  201. board = genericSTM32F103VE
  202. extra_scripts = ${common_stm32f1.extra_scripts}
  203. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  204. build_flags = ${common_stm32f1.build_flags}
  205. -DMCU_STM32F103VE
  206. #
  207. # MKS Robin Nano (STM32F103VET6)
  208. #
  209. [env:mks_robin_nano35_maple]
  210. platform = ${common_stm32f1.platform}
  211. extends = common_stm32f1
  212. board = genericSTM32F103VE
  213. extra_scripts = ${common_stm32f1.extra_scripts}
  214. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  215. build_flags = ${common_stm32f1.build_flags}
  216. -DMCU_STM32F103VE -DSS_TIMER=4
  217. debug_tool = jlink
  218. upload_protocol = jlink
  219. #
  220. # MKS Robin (STM32F103ZET6)
  221. #
  222. [env:mks_robin_maple]
  223. platform = ${common_stm32f1.platform}
  224. extends = common_stm32f1
  225. board = genericSTM32F103ZE
  226. extra_scripts = ${common_stm32f1.extra_scripts}
  227. buildroot/share/PlatformIO/scripts/mks_robin.py
  228. build_flags = ${common_stm32f1.build_flags}
  229. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  230. #
  231. # MKS Robin Pro (STM32F103ZET6)
  232. #
  233. [env:mks_robin_pro]
  234. platform = ${common_stm32f1.platform}
  235. extends = env:mks_robin_maple
  236. extra_scripts = ${common_stm32f1.extra_scripts}
  237. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  238. #
  239. # TRIGORILLA PRO (STM32F103ZET6)
  240. #
  241. [env:trigorilla_pro]
  242. platform = ${common_stm32f1.platform}
  243. extends = env:mks_robin_maple
  244. extra_scripts = ${common_stm32f1.extra_scripts}
  245. #
  246. # MKS Robin E3D (STM32F103RCT6) and
  247. # MKS Robin E3 with TMC2209
  248. #
  249. [env:mks_robin_e3_maple]
  250. platform = ${common_stm32f1.platform}
  251. extends = common_stm32f1
  252. board = genericSTM32F103RC
  253. extra_scripts = ${common_stm32f1.extra_scripts}
  254. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  255. build_flags = ${common_stm32f1.build_flags}
  256. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  257. #
  258. # MKS Robin E3p (STM32F103VET6)
  259. # - LVGL UI
  260. #
  261. [env:mks_robin_e3p]
  262. platform = ${common_stm32f1.platform}
  263. extends = common_stm32f1
  264. board = genericSTM32F103VE
  265. extra_scripts = ${common_stm32f1.extra_scripts}
  266. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  267. build_flags = ${common_stm32f1.build_flags}
  268. -DMCU_STM32F103VE -DSS_TIMER=4
  269. debug_tool = jlink
  270. upload_protocol = jlink
  271. #
  272. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  273. #
  274. [env:mks_robin_lite]
  275. platform = ${common_stm32f1.platform}
  276. extends = common_stm32f1
  277. board = genericSTM32F103RC
  278. extra_scripts = ${common_stm32f1.extra_scripts}
  279. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  280. #
  281. # MKS ROBIN LITE3 (STM32F103RCT6)
  282. #
  283. [env:mks_robin_lite3]
  284. platform = ${common_stm32f1.platform}
  285. extends = common_stm32f1
  286. board = genericSTM32F103RC
  287. extra_scripts = ${common_stm32f1.extra_scripts}
  288. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  289. #
  290. # JGAurora A5S A1 (STM32F103ZET6)
  291. #
  292. [env:jgaurora_a5s_a1]
  293. platform = ${common_stm32f1.platform}
  294. extends = common_stm32f1
  295. board = genericSTM32F103ZE
  296. board_build.address = 0x0800A000
  297. board_build.ldscript = jgaurora_a5s_a1.ld
  298. extra_scripts = ${common_stm32f1.extra_scripts}
  299. buildroot/share/PlatformIO/scripts/custom_board.py
  300. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  301. build_flags = ${common_stm32f1.build_flags}
  302. -DSTM32F1xx -DSTM32_XL_DENSITY
  303. #
  304. # Malyan M200 (STM32F103CB)
  305. #
  306. [env:STM32F103CB_malyan_maple]
  307. platform = ${common_stm32f1.platform}
  308. extends = common_stm32f1
  309. board = marlin_malyanM200
  310. build_flags = ${common_stm32f1.build_flags}
  311. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  312. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  313. lib_ignore = ${common_stm32f1.lib_ignore}
  314. SoftwareSerialM
  315. #
  316. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  317. #
  318. [env:chitu_f103]
  319. platform = ${common_stm32f1.platform}
  320. extends = common_stm32f1
  321. board = marlin_CHITU_F103
  322. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  323. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  324. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  325. build_flags = ${common_stm32f1.build_flags}
  326. -DSTM32F1xx -DSTM32_XL_DENSITY
  327. build_unflags = ${common_stm32f1.build_unflags}
  328. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  329. #
  330. # Some Chitu V5 boards have a problem with GPIO init.
  331. # Use this target if G28 or G29 are always failing.
  332. #
  333. [env:chitu_v5_gpio_init]
  334. platform = ${common_stm32f1.platform}
  335. extends = env:chitu_f103
  336. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX