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

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