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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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 M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
  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} -DARDUINO_ARCH_STM32 -DMAPLE_STM32F1
  28. build_unflags = -std=gnu11 -std=gnu++11
  29. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  30. lib_ignore = SPI, FreeRTOS701, FreeRTOS821
  31. lib_deps = ${common.lib_deps}
  32. SoftwareSerialM
  33. platform_packages = tool-stm32duino
  34. extra_scripts = ${common.extra_scripts}
  35. pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
  36. pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
  37. buildroot/share/PlatformIO/scripts/offset_and_rename.py
  38. #
  39. # STM32F103RC
  40. #
  41. [common_STM32F103RC_maple]
  42. platform = ${common_stm32f1.platform}
  43. extends = common_stm32f1
  44. board = genericSTM32F103RC
  45. monitor_speed = 115200
  46. #
  47. # MEEB_3DP (STM32F103RCT6 with 512K)
  48. #
  49. [env:STM32F103RC_meeb]
  50. platform = ${common_stm32f1.platform}
  51. extends = common_STM32F103RC_maple
  52. board = marlin_MEEB_3DP
  53. build_flags = ${common_stm32f1.build_flags}
  54. -DDEBUG_LEVEL=0
  55. -DSS_TIMER=4
  56. -DSTM32_FLASH_SIZE=512
  57. -DHSE_VALUE=12000000U
  58. -DUSE_USB_COMPOSITE
  59. -DVECT_TAB_OFFSET=0x2000
  60. -DGENERIC_BOOTLOADER
  61. extra_scripts = ${common_stm32f1.extra_scripts}
  62. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  63. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  64. lib_deps = ${common.lib_deps}
  65. SoftwareSerialM
  66. USBComposite for STM32F1@0.91
  67. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  68. debug_tool = stlink
  69. upload_protocol = dfu
  70. #
  71. # FYSETC STM32F103RC
  72. #
  73. [env:STM32F103RC_fysetc_maple]
  74. platform = ${common_stm32f1.platform}
  75. extends = common_STM32F103RC_maple
  76. extra_scripts = ${common_stm32f1.extra_scripts}
  77. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  78. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  79. lib_ldf_mode = chain
  80. debug_tool = stlink
  81. upload_protocol = serial
  82. #
  83. # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
  84. #
  85. # STM32F103RC_btt_maple ............. RCT6 with 256K
  86. # STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
  87. #
  88. [env:STM32F103RC_btt_maple]
  89. platform = ${common_stm32f1.platform}
  90. extends = common_STM32F103RC_maple
  91. board_build.address = 0x08007000
  92. board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
  93. extra_scripts = ${common_stm32f1.extra_scripts}
  94. buildroot/share/PlatformIO/scripts/custom_board.py
  95. build_flags = ${common_stm32f1.build_flags}
  96. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  97. monitor_speed = 115200
  98. [env:STM32F103RC_btt_USB_maple]
  99. platform = ${common_stm32f1.platform}
  100. extends = env:STM32F103RC_btt_maple
  101. build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  102. lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
  103. USBComposite for STM32F1@0.91
  104. #
  105. # Generic STM32F103RE environment
  106. #
  107. [env:STM32F103RE_maple]
  108. platform = ${common_stm32f1.platform}
  109. extends = common_stm32f1
  110. board = genericSTM32F103RE
  111. monitor_speed = 115200
  112. #
  113. # Creality (STM32F103RET6)
  114. #
  115. [env:STM32F103RET6_creality_maple]
  116. platform = ${common_stm32f1.platform}
  117. extends = env:STM32F103RE_maple
  118. build_flags = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
  119. board_build.address = 0x08007000
  120. board_build.ldscript = creality.ld
  121. extra_scripts = ${common_stm32f1.extra_scripts}
  122. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  123. buildroot/share/PlatformIO/scripts/custom_board.py
  124. debug_tool = jlink
  125. upload_protocol = jlink
  126. #
  127. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  128. #
  129. # STM32F103RE_btt_maple ............. RET6
  130. # STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
  131. #
  132. [env:STM32F103RE_btt_maple]
  133. platform = ${common_stm32f1.platform}
  134. extends = env:STM32F103RE_maple
  135. board_build.address = 0x08007000
  136. board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
  137. extra_scripts = ${common_stm32f1.extra_scripts}
  138. buildroot/share/PlatformIO/scripts/custom_board.py
  139. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  140. debug_tool = stlink
  141. upload_protocol = stlink
  142. [env:STM32F103RE_btt_USB_maple]
  143. platform = ${common_stm32f1.platform}
  144. extends = env:STM32F103RE_btt_maple
  145. build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  146. lib_deps = ${common_stm32f1.lib_deps}
  147. USBComposite for STM32F1@0.91
  148. #
  149. # Geeetech GTM32 (STM32F103VET6)
  150. #
  151. [env:STM32F103VE_GTM32]
  152. platform = ${common_stm32f1.platform}
  153. extends = common_stm32f1
  154. board = genericSTM32F103VE
  155. build_flags = ${common_stm32f1.build_flags}
  156. -ffunction-sections -fdata-sections -nostdlib -MMD
  157. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  158. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  159. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  160. upload_protocol = serial
  161. #
  162. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  163. #
  164. [env:STM32F103VE_longer_maple]
  165. platform = ${common_stm32f1.platform}
  166. extends = common_stm32f1
  167. board = genericSTM32F103VE
  168. board_build.address = 0x08010000
  169. board_build.rename = project.bin
  170. board_build.ldscript = STM32F103VE_longer.ld
  171. extra_scripts = ${common_stm32f1.extra_scripts}
  172. buildroot/share/PlatformIO/scripts/custom_board.py
  173. build_flags = ${common_stm32f1.build_flags}
  174. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  175. build_unflags = ${common_stm32f1.build_unflags}
  176. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  177. #
  178. # MKS Robin Mini (STM32F103VET6)
  179. #
  180. [env:mks_robin_mini_maple]
  181. platform = ${common_stm32f1.platform}
  182. extends = common_stm32f1
  183. board = genericSTM32F103VE
  184. extra_scripts = ${common_stm32f1.extra_scripts}
  185. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  186. build_flags = ${common_stm32f1.build_flags}
  187. -DMCU_STM32F103VE
  188. #
  189. # MKS Robin Nano (STM32F103VET6)
  190. #
  191. [env:mks_robin_nano35_maple]
  192. platform = ${common_stm32f1.platform}
  193. extends = common_stm32f1
  194. board = genericSTM32F103VE
  195. extra_scripts = ${common_stm32f1.extra_scripts}
  196. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  197. build_flags = ${common_stm32f1.build_flags}
  198. -DMCU_STM32F103VE -DSS_TIMER=4
  199. debug_tool = jlink
  200. upload_protocol = jlink
  201. #
  202. # MKS Robin (STM32F103ZET6)
  203. #
  204. [env:mks_robin_maple]
  205. platform = ${common_stm32f1.platform}
  206. extends = common_stm32f1
  207. board = genericSTM32F103ZE
  208. extra_scripts = ${common_stm32f1.extra_scripts}
  209. buildroot/share/PlatformIO/scripts/mks_robin.py
  210. build_flags = ${common_stm32f1.build_flags}
  211. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  212. #
  213. # MKS Robin Pro (STM32F103ZET6)
  214. #
  215. [env:mks_robin_pro_maple]
  216. platform = ${common_stm32f1.platform}
  217. extends = env:mks_robin_maple
  218. extra_scripts = ${common_stm32f1.extra_scripts}
  219. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  220. #
  221. # TRIGORILLA PRO (STM32F103ZET6)
  222. #
  223. [env:trigorilla_pro_maple]
  224. platform = ${common_stm32f1.platform}
  225. extends = env:mks_robin_maple
  226. extra_scripts = ${common_stm32f1.extra_scripts}
  227. #
  228. # MKS Robin E3D (STM32F103RCT6) and
  229. # MKS Robin E3 with TMC2209
  230. #
  231. [env:mks_robin_e3_maple]
  232. platform = ${common_stm32f1.platform}
  233. extends = common_stm32f1
  234. board = genericSTM32F103RC
  235. extra_scripts = ${common_stm32f1.extra_scripts}
  236. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  237. build_flags = ${common_stm32f1.build_flags}
  238. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  239. #
  240. # MKS Robin E3p (STM32F103VET6)
  241. # - LVGL UI
  242. #
  243. [env:mks_robin_e3p_maple]
  244. platform = ${common_stm32f1.platform}
  245. extends = common_stm32f1
  246. board = genericSTM32F103VE
  247. extra_scripts = ${common_stm32f1.extra_scripts}
  248. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  249. build_flags = ${common_stm32f1.build_flags}
  250. -DMCU_STM32F103VE -DSS_TIMER=4
  251. debug_tool = jlink
  252. upload_protocol = jlink
  253. #
  254. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  255. #
  256. [env:mks_robin_lite_maple]
  257. platform = ${common_stm32f1.platform}
  258. extends = common_stm32f1
  259. board = genericSTM32F103RC
  260. extra_scripts = ${common_stm32f1.extra_scripts}
  261. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  262. #
  263. # MKS ROBIN LITE3 (STM32F103RCT6)
  264. #
  265. [env:mks_robin_lite3_maple]
  266. platform = ${common_stm32f1.platform}
  267. extends = common_stm32f1
  268. board = genericSTM32F103RC
  269. extra_scripts = ${common_stm32f1.extra_scripts}
  270. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  271. #
  272. # JGAurora A5S A1 (STM32F103ZET6)
  273. #
  274. [env:jgaurora_a5s_a1_maple]
  275. platform = ${common_stm32f1.platform}
  276. extends = common_stm32f1
  277. board = genericSTM32F103ZE
  278. board_build.address = 0x0800A000
  279. board_build.ldscript = jgaurora_a5s_a1.ld
  280. extra_scripts = ${common_stm32f1.extra_scripts}
  281. buildroot/share/PlatformIO/scripts/custom_board.py
  282. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  283. build_flags = ${common_stm32f1.build_flags}
  284. -DSTM32F1xx -DSTM32_XL_DENSITY
  285. #
  286. # Malyan M200 (STM32F103CB)
  287. #
  288. [env:STM32F103CB_malyan_maple]
  289. platform = ${common_stm32f1.platform}
  290. extends = common_stm32f1
  291. board = marlin_malyanM200
  292. build_flags = ${common_stm32f1.build_flags}
  293. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  294. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  295. lib_ignore = ${common_stm32f1.lib_ignore}
  296. SoftwareSerialM
  297. #
  298. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  299. #
  300. [env:chitu_f103_maple]
  301. platform = ${common_stm32f1.platform}
  302. extends = common_stm32f1
  303. board = marlin_CHITU_F103
  304. extra_scripts = ${common_stm32f1.extra_scripts}
  305. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  306. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  307. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  308. build_flags = ${common_stm32f1.build_flags}
  309. -DSTM32F1xx -DSTM32_XL_DENSITY
  310. build_unflags = ${common_stm32f1.build_unflags}
  311. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  312. #
  313. # Some Chitu V5 boards have a problem with GPIO init.
  314. # Use this target if G28 or G29 are always failing.
  315. #
  316. [env:chitu_v5_gpio_init_maple]
  317. platform = ${common_stm32f1.platform}
  318. extends = env:chitu_f103_maple
  319. build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  320. #
  321. # FLYmaker FLY Mini (STM32F103RCT6)
  322. #
  323. [env:FLY_MINI_maple]
  324. platform = ${common_stm32f1.platform}
  325. extends = common_stm32f1
  326. board = genericSTM32F103RC
  327. board_build.address = 0x08005000
  328. board_build.ldscript = fly_mini.ld
  329. extra_scripts = ${common_stm32f1.extra_scripts}
  330. buildroot/share/PlatformIO/scripts/custom_board.py
  331. build_flags = ${common_stm32f1.build_flags}
  332. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  333. #
  334. # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
  335. #
  336. # STM32F103RC_ZM3E2_USB_maple ........... RCT6 with 256K
  337. # STM32F103VC_ZM3E4_USB_maple ........... VCT6 with 256K
  338. # STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
  339. #
  340. [ZONESTAR_ZM3E_maple]
  341. platform = ${common_stm32f1.platform}
  342. extends = common_stm32f1
  343. platform_packages = tool-stm32duino
  344. board_build.address = 0x08005000
  345. board_build.offset = 0x5000
  346. board_upload.maximum_size = 237568
  347. extra_scripts = ${common.extra_scripts}
  348. buildroot/share/PlatformIO/scripts/custom_board.py
  349. buildroot/share/PlatformIO/scripts/offset_and_rename.py
  350. build_flags = ${common_stm32f1.build_flags}
  351. -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
  352. lib_deps = USBComposite for STM32F1@0.91
  353. lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
  354. [env:STM32F103RC_ZM3E2_USB_maple]
  355. platform = ${ZONESTAR_ZM3E_maple.platform}
  356. extends = ZONESTAR_ZM3E_maple
  357. board = genericSTM32F103RC
  358. board_build.ldscript = ZONESTAR_ZM3E_256K.ld
  359. [env:STM32F103VC_ZM3E4_USB_maple]
  360. platform = ${ZONESTAR_ZM3E_maple.platform}
  361. extends = ZONESTAR_ZM3E_maple
  362. board = genericSTM32F103VC
  363. board_build.ldscript = ZONESTAR_ZM3E_256K.ld
  364. build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
  365. [env:STM32F103VE_ZM3E4V2_USB_maple]
  366. platform = ${ZONESTAR_ZM3E_maple.platform}
  367. extends = ZONESTAR_ZM3E_maple
  368. board = genericSTM32F103VE
  369. board_build.ldscript = ZONESTAR_ZM3E_512K.ld
  370. build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
  371. board_upload.maximum_size = 499712