My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

stm32f1-maple.ini 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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. 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. # Creality (STM32F103RET6)
  107. #
  108. [env:STM32F103RE_creality_maple]
  109. extends = env:STM32F103RE_maple
  110. build_flags = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
  111. board_build.address = 0x08007000
  112. board_build.ldscript = creality.ld
  113. extra_scripts = ${common_stm32f1.extra_scripts}
  114. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  115. buildroot/share/PlatformIO/scripts/custom_board.py
  116. debug_tool = jlink
  117. upload_protocol = jlink
  118. #
  119. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  120. #
  121. # STM32F103RE_btt_maple ............. RET6
  122. # STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
  123. #
  124. [env:STM32F103RE_btt_maple]
  125. extends = env:STM32F103RE_maple
  126. board_build.address = 0x08007000
  127. board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
  128. extra_scripts = ${common_stm32f1.extra_scripts}
  129. buildroot/share/PlatformIO/scripts/custom_board.py
  130. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  131. debug_tool = stlink
  132. upload_protocol = stlink
  133. [env:STM32F103RE_btt_USB_maple]
  134. extends = env:STM32F103RE_btt_maple
  135. build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
  136. lib_deps = ${common_stm32f1.lib_deps}
  137. USBComposite for STM32F1@0.91
  138. #
  139. # Geeetech GTM32 (STM32F103VET6)
  140. #
  141. [env:STM32F103VE_GTM32]
  142. extends = common_stm32f1
  143. board = genericSTM32F103VE
  144. build_flags = ${common_stm32f1.build_flags}
  145. -ffunction-sections -fdata-sections -nostdlib -MMD
  146. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  147. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  148. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  149. upload_protocol = serial
  150. #
  151. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  152. #
  153. [env:STM32F103VE_longer_maple]
  154. extends = common_stm32f1
  155. board = genericSTM32F103VE
  156. board_build.address = 0x08010000
  157. board_build.rename = project.bin
  158. board_build.ldscript = STM32F103VE_longer.ld
  159. extra_scripts = ${common_stm32f1.extra_scripts}
  160. buildroot/share/PlatformIO/scripts/custom_board.py
  161. build_flags = ${common_stm32f1.build_flags}
  162. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  163. build_unflags = ${common_stm32f1.build_unflags}
  164. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  165. #
  166. # MKS Robin Mini (STM32F103VET6)
  167. #
  168. [env:mks_robin_mini_maple]
  169. extends = common_stm32f1
  170. board = genericSTM32F103VE
  171. extra_scripts = ${common_stm32f1.extra_scripts}
  172. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  173. build_flags = ${common_stm32f1.build_flags}
  174. -DMCU_STM32F103VE
  175. #
  176. # MKS Robin Nano (STM32F103VET6)
  177. #
  178. [env:mks_robin_nano35_maple]
  179. extends = common_stm32f1
  180. board = genericSTM32F103VE
  181. extra_scripts = ${common_stm32f1.extra_scripts}
  182. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  183. build_flags = ${common_stm32f1.build_flags}
  184. -DMCU_STM32F103VE -DSS_TIMER=4
  185. debug_tool = jlink
  186. upload_protocol = jlink
  187. #
  188. # MKS Robin (STM32F103ZET6)
  189. #
  190. [env:mks_robin_maple]
  191. extends = common_stm32f1
  192. board = genericSTM32F103ZE
  193. extra_scripts = ${common_stm32f1.extra_scripts}
  194. buildroot/share/PlatformIO/scripts/mks_robin.py
  195. build_flags = ${common_stm32f1.build_flags}
  196. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  197. #
  198. # MKS Robin Pro (STM32F103ZET6)
  199. #
  200. [env:mks_robin_pro_maple]
  201. extends = env:mks_robin_maple
  202. extra_scripts = ${common_stm32f1.extra_scripts}
  203. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  204. #
  205. # TRIGORILLA PRO (STM32F103ZET6)
  206. #
  207. [env:trigorilla_pro_maple]
  208. extends = env:mks_robin_maple
  209. extra_scripts = ${common_stm32f1.extra_scripts}
  210. #
  211. # MKS Robin E3D (STM32F103RCT6) and
  212. # MKS Robin E3 with TMC2209
  213. #
  214. [env:mks_robin_e3_maple]
  215. extends = common_stm32f1
  216. board = genericSTM32F103RC
  217. extra_scripts = ${common_stm32f1.extra_scripts}
  218. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  219. build_flags = ${common_stm32f1.build_flags}
  220. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  221. #
  222. # MKS Robin E3p (STM32F103VET6)
  223. # - LVGL UI
  224. #
  225. [env:mks_robin_e3p_maple]
  226. extends = common_stm32f1
  227. board = genericSTM32F103VE
  228. extra_scripts = ${common_stm32f1.extra_scripts}
  229. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  230. build_flags = ${common_stm32f1.build_flags}
  231. -DMCU_STM32F103VE -DSS_TIMER=4
  232. debug_tool = jlink
  233. upload_protocol = jlink
  234. #
  235. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  236. #
  237. [env:mks_robin_lite_maple]
  238. extends = common_stm32f1
  239. board = genericSTM32F103RC
  240. extra_scripts = ${common_stm32f1.extra_scripts}
  241. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  242. #
  243. # MKS ROBIN LITE3 (STM32F103RCT6)
  244. #
  245. [env:mks_robin_lite3_maple]
  246. extends = common_stm32f1
  247. board = genericSTM32F103RC
  248. extra_scripts = ${common_stm32f1.extra_scripts}
  249. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  250. #
  251. # JGAurora A5S A1 (STM32F103ZET6)
  252. #
  253. [env:jgaurora_a5s_a1_maple]
  254. extends = common_stm32f1
  255. board = genericSTM32F103ZE
  256. board_build.address = 0x0800A000
  257. board_build.ldscript = jgaurora_a5s_a1.ld
  258. extra_scripts = ${common_stm32f1.extra_scripts}
  259. buildroot/share/PlatformIO/scripts/custom_board.py
  260. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  261. build_flags = ${common_stm32f1.build_flags}
  262. -DSTM32F1xx -DSTM32_XL_DENSITY
  263. #
  264. # Malyan M200 (STM32F103CB)
  265. #
  266. [env:STM32F103CB_malyan_maple]
  267. extends = common_stm32f1
  268. board = marlin_malyanM200
  269. build_flags = ${common_stm32f1.build_flags}
  270. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  271. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  272. lib_ignore = ${common_stm32f1.lib_ignore}
  273. SoftwareSerialM
  274. #
  275. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  276. #
  277. [env:chitu_f103_maple]
  278. extends = common_stm32f1
  279. board = marlin_CHITU_F103
  280. extra_scripts = ${common_stm32f1.extra_scripts}
  281. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  282. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  283. build_flags = ${common_stm32f1.build_flags}
  284. -DSTM32F1xx -DSTM32_XL_DENSITY
  285. build_unflags = ${common_stm32f1.build_unflags}
  286. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  287. #
  288. # Some Chitu V5 boards have a problem with GPIO init.
  289. # Use this target if G28 or G29 are always failing.
  290. #
  291. [env:chitu_v5_gpio_init_maple]
  292. extends = env:chitu_f103_maple
  293. build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  294. #
  295. # FLYmaker FLY Mini (STM32F103RCT6)
  296. #
  297. [env:FLY_MINI_maple]
  298. extends = common_stm32f1
  299. board = genericSTM32F103RC
  300. board_build.address = 0x08005000
  301. board_build.ldscript = fly_mini.ld
  302. extra_scripts = ${common_stm32f1.extra_scripts}
  303. buildroot/share/PlatformIO/scripts/custom_board.py
  304. build_flags = ${common_stm32f1.build_flags}
  305. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  306. #
  307. # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
  308. #
  309. # STM32F103RC_ZM3E2_USB_maple ........... RCT6 with 256K
  310. # STM32F103VC_ZM3E4_USB_maple ........... VCT6 with 256K
  311. # STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
  312. #
  313. [ZONESTAR_ZM3E_maple]
  314. extends = common_stm32f1
  315. platform_packages = tool-stm32duino
  316. board_build.address = 0x08005000
  317. board_build.offset = 0x5000
  318. board_upload.maximum_size = 237568
  319. extra_scripts = ${common.extra_scripts}
  320. buildroot/share/PlatformIO/scripts/custom_board.py
  321. buildroot/share/PlatformIO/scripts/offset_and_rename.py
  322. build_flags = ${common_stm32f1.build_flags}
  323. -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
  324. lib_deps = ${common_stm32f1.lib_deps}
  325. USBComposite for STM32F1@0.91
  326. lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
  327. [env:STM32F103RC_ZM3E2_USB_maple]
  328. extends = ZONESTAR_ZM3E_maple
  329. board = genericSTM32F103RC
  330. board_build.ldscript = ZONESTAR_ZM3E_256K.ld
  331. [env:STM32F103VC_ZM3E4_USB_maple]
  332. extends = ZONESTAR_ZM3E_maple
  333. board = genericSTM32F103VC
  334. board_build.ldscript = ZONESTAR_ZM3E_256K.ld
  335. build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
  336. [env:STM32F103VE_ZM3E4V2_USB_maple]
  337. extends = ZONESTAR_ZM3E_maple
  338. board = genericSTM32F103VE
  339. board_build.ldscript = ZONESTAR_ZM3E_512K.ld
  340. build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
  341. board_upload.maximum_size = 499712
  342. #
  343. # ERYONE ERY32 Mini (STM32F103VET6)
  344. #
  345. [env:ERYONE_ERY32_MINI_maple]
  346. extends = common_stm32f1
  347. board = genericSTM32F103VE
  348. build_flags = ${common_stm32f1.build_flags}
  349. -ffunction-sections -fdata-sections -nostdlib -MMD
  350. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
  351. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
  352. -DSS_TIMER=4
  353. board_build.variant = MARLIN_F103Vx
  354. board_build.ldscript = eryone_ery32_mini.ld
  355. board_build.address = 0x08004000
  356. build_unflags = ${common_stm32f1.build_unflags}
  357. extra_scripts = ${common_stm32f1.extra_scripts}
  358. buildroot/share/PlatformIO/scripts/custom_board.py