My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

stm32f1-maple.ini 13KB

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