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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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_stm32f1.lib_deps}
  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_maple]
  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 & MZ (STM32F103RCT6 ARM Cortex-M3)
  83. #
  84. # STM32F103RC_btt_maple ............. RCT6 with 256K
  85. # STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
  86. #
  87. [env:STM32F103RC_btt_maple]
  88. platform = ${common_stm32f1.platform}
  89. extends = common_STM32F103RC_maple
  90. board_build.address = 0x08007000
  91. board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
  92. extra_scripts = ${common_stm32f1.extra_scripts}
  93. buildroot/share/PlatformIO/scripts/custom_board.py
  94. build_flags = ${common_stm32f1.build_flags}
  95. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  96. monitor_speed = 115200
  97. [env:STM32F103RC_btt_USB_maple]
  98. platform = ${common_stm32f1.platform}
  99. extends = env:STM32F103RC_btt_maple
  100. build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  101. lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
  102. USBComposite for STM32F1@0.91
  103. #
  104. # Generic STM32F103RE environment
  105. #
  106. [env:STM32F103RE_maple]
  107. platform = ${common_stm32f1.platform}
  108. extends = common_stm32f1
  109. board = genericSTM32F103RE
  110. monitor_speed = 115200
  111. #
  112. # Creality (STM32F103RET6)
  113. #
  114. [env:STM32F103RET6_creality_maple]
  115. platform = ${common_stm32f1.platform}
  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. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  127. #
  128. # STM32F103RE_btt_maple ............. RET6
  129. # STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
  130. #
  131. [env:STM32F103RE_btt_maple]
  132. platform = ${common_stm32f1.platform}
  133. extends = env:STM32F103RE_maple
  134. board_build.address = 0x08007000
  135. board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
  136. extra_scripts = ${common_stm32f1.extra_scripts}
  137. buildroot/share/PlatformIO/scripts/custom_board.py
  138. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  139. debug_tool = stlink
  140. upload_protocol = stlink
  141. [env:STM32F103RE_btt_USB_maple]
  142. platform = ${common_stm32f1.platform}
  143. extends = env:STM32F103RE_btt_maple
  144. build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  145. lib_deps = ${common_stm32f1.lib_deps}
  146. USBComposite for STM32F1@0.91
  147. #
  148. # Geeetech GTM32 (STM32F103VET6)
  149. #
  150. [env:STM32F103VE_GTM32]
  151. platform = ${common_stm32f1.platform}
  152. extends = common_stm32f1
  153. board = genericSTM32F103VE
  154. build_flags = ${common_stm32f1.build_flags}
  155. -ffunction-sections -fdata-sections -nostdlib -MMD
  156. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  157. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  158. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  159. upload_protocol = serial
  160. #
  161. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  162. #
  163. [env:STM32F103VE_longer_maple]
  164. platform = ${common_stm32f1.platform}
  165. extends = common_stm32f1
  166. board = genericSTM32F103VE
  167. board_build.address = 0x08010000
  168. board_build.rename = project.bin
  169. board_build.ldscript = STM32F103VE_longer.ld
  170. extra_scripts = ${common_stm32f1.extra_scripts}
  171. buildroot/share/PlatformIO/scripts/custom_board.py
  172. build_flags = ${common_stm32f1.build_flags}
  173. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  174. build_unflags = ${common_stm32f1.build_unflags}
  175. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  176. #
  177. # MKS Robin Mini (STM32F103VET6)
  178. #
  179. [env:mks_robin_mini_maple]
  180. platform = ${common_stm32f1.platform}
  181. extends = common_stm32f1
  182. board = genericSTM32F103VE
  183. extra_scripts = ${common_stm32f1.extra_scripts}
  184. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  185. build_flags = ${common_stm32f1.build_flags}
  186. -DMCU_STM32F103VE
  187. #
  188. # MKS Robin Nano (STM32F103VET6)
  189. #
  190. [env:mks_robin_nano35_maple]
  191. platform = ${common_stm32f1.platform}
  192. extends = common_stm32f1
  193. board = genericSTM32F103VE
  194. extra_scripts = ${common_stm32f1.extra_scripts}
  195. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  196. build_flags = ${common_stm32f1.build_flags}
  197. -DMCU_STM32F103VE -DSS_TIMER=4
  198. debug_tool = jlink
  199. upload_protocol = jlink
  200. #
  201. # MKS Robin (STM32F103ZET6)
  202. #
  203. [env:mks_robin_maple]
  204. platform = ${common_stm32f1.platform}
  205. extends = common_stm32f1
  206. board = genericSTM32F103ZE
  207. extra_scripts = ${common_stm32f1.extra_scripts}
  208. buildroot/share/PlatformIO/scripts/mks_robin.py
  209. build_flags = ${common_stm32f1.build_flags}
  210. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  211. #
  212. # MKS Robin Pro (STM32F103ZET6)
  213. #
  214. [env:mks_robin_pro_maple]
  215. platform = ${common_stm32f1.platform}
  216. extends = env:mks_robin_maple
  217. extra_scripts = ${common_stm32f1.extra_scripts}
  218. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  219. #
  220. # TRIGORILLA PRO (STM32F103ZET6)
  221. #
  222. [env:trigorilla_pro_maple]
  223. platform = ${common_stm32f1.platform}
  224. extends = env:mks_robin_maple
  225. extra_scripts = ${common_stm32f1.extra_scripts}
  226. #
  227. # MKS Robin E3D (STM32F103RCT6) and
  228. # MKS Robin E3 with TMC2209
  229. #
  230. [env:mks_robin_e3_maple]
  231. platform = ${common_stm32f1.platform}
  232. extends = common_stm32f1
  233. board = genericSTM32F103RC
  234. extra_scripts = ${common_stm32f1.extra_scripts}
  235. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  236. build_flags = ${common_stm32f1.build_flags}
  237. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  238. #
  239. # MKS Robin E3p (STM32F103VET6)
  240. # - LVGL UI
  241. #
  242. [env:mks_robin_e3p_maple]
  243. platform = ${common_stm32f1.platform}
  244. extends = common_stm32f1
  245. board = genericSTM32F103VE
  246. extra_scripts = ${common_stm32f1.extra_scripts}
  247. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  248. build_flags = ${common_stm32f1.build_flags}
  249. -DMCU_STM32F103VE -DSS_TIMER=4
  250. debug_tool = jlink
  251. upload_protocol = jlink
  252. #
  253. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  254. #
  255. [env:mks_robin_lite_maple]
  256. platform = ${common_stm32f1.platform}
  257. extends = common_stm32f1
  258. board = genericSTM32F103RC
  259. extra_scripts = ${common_stm32f1.extra_scripts}
  260. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  261. #
  262. # MKS ROBIN LITE3 (STM32F103RCT6)
  263. #
  264. [env:mks_robin_lite3_maple]
  265. platform = ${common_stm32f1.platform}
  266. extends = common_stm32f1
  267. board = genericSTM32F103RC
  268. extra_scripts = ${common_stm32f1.extra_scripts}
  269. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  270. #
  271. # JGAurora A5S A1 (STM32F103ZET6)
  272. #
  273. [env:jgaurora_a5s_a1_maple]
  274. platform = ${common_stm32f1.platform}
  275. extends = common_stm32f1
  276. board = genericSTM32F103ZE
  277. board_build.address = 0x0800A000
  278. board_build.ldscript = jgaurora_a5s_a1.ld
  279. extra_scripts = ${common_stm32f1.extra_scripts}
  280. buildroot/share/PlatformIO/scripts/custom_board.py
  281. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  282. build_flags = ${common_stm32f1.build_flags}
  283. -DSTM32F1xx -DSTM32_XL_DENSITY
  284. #
  285. # Malyan M200 (STM32F103CB)
  286. #
  287. [env:STM32F103CB_malyan_maple]
  288. platform = ${common_stm32f1.platform}
  289. extends = common_stm32f1
  290. board = marlin_malyanM200
  291. build_flags = ${common_stm32f1.build_flags}
  292. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  293. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  294. lib_ignore = ${common_stm32f1.lib_ignore}
  295. SoftwareSerialM
  296. #
  297. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  298. #
  299. [env:chitu_f103_maple]
  300. platform = ${common_stm32f1.platform}
  301. extends = common_stm32f1
  302. board = marlin_CHITU_F103
  303. extra_scripts = ${common_stm32f1.extra_scripts}
  304. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  305. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  306. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  307. build_flags = ${common_stm32f1.build_flags}
  308. -DSTM32F1xx -DSTM32_XL_DENSITY
  309. build_unflags = ${common_stm32f1.build_unflags}
  310. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  311. #
  312. # Some Chitu V5 boards have a problem with GPIO init.
  313. # Use this target if G28 or G29 are always failing.
  314. #
  315. [env:chitu_v5_gpio_init_maple]
  316. platform = ${common_stm32f1.platform}
  317. extends = env:chitu_f103_maple
  318. build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  319. #
  320. # FLYmaker FLY Mini (STM32F103RCT6)
  321. #
  322. [env:FLY_MINI_maple]
  323. platform = ${common_stm32f1.platform}
  324. extends = common_stm32f1
  325. board = genericSTM32F103RC
  326. board_build.address = 0x08005000
  327. board_build.ldscript = fly_mini.ld
  328. extra_scripts = ${common_stm32f1.extra_scripts}
  329. buildroot/share/PlatformIO/scripts/custom_board.py
  330. build_flags = ${common_stm32f1.build_flags}
  331. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  332. #
  333. # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
  334. #
  335. # STM32F103RC_ZM3E2_USB_maple ........... RCT6 with 256K
  336. # STM32F103VC_ZM3E4_USB_maple ........... VCT6 with 256K
  337. # STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
  338. #
  339. [ZONESTAR_ZM3E_maple]
  340. platform = ${common_stm32f1.platform}
  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. 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
  372. #
  373. # ERYONE ERY32 Mini (STM32F103VET6)
  374. #
  375. [env:ERYONE_ERY32_MINI_maple]
  376. platform = ${common_stm32f1.platform}
  377. extends = common_stm32f1
  378. board = genericSTM32F103VE
  379. build_flags = ${common_stm32f1.build_flags}
  380. -ffunction-sections -fdata-sections -nostdlib -MMD
  381. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -O0
  382. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
  383. -DSS_TIMER=4
  384. board_build.variant = MARLIN_F103Vx
  385. board_build.ldscript = eryone_ery32_mini.ld
  386. board_build.address = 0x08004000
  387. build_unflags = ${common_stm32f1.build_unflags}
  388. extra_scripts = ${common_stm32f1.extra_scripts}
  389. buildroot/share/PlatformIO/scripts/custom_board.py