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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32F1 Architecture
  8. #
  9. # Naming Example: STM32F103RCT6
  10. #
  11. # F : Foundation (sometimes High Performance F2/F4)
  12. # 1 : Cortex M1 core
  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/STM32 Base Environment values
  22. #
  23. [common_stm32]
  24. platform = ststm32@~12.1
  25. build_flags = ${common.build_flags}
  26. -std=gnu++14
  27. -DUSBCON -DUSBD_USE_CDC
  28. -DTIM_IRQ_PRIO=13
  29. -DADC_RESOLUTION=12
  30. build_unflags = -std=gnu++11
  31. src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
  32. #
  33. # HAL/STM32F1 Common Environment values
  34. #
  35. [common_stm32f1]
  36. platform = ststm32@~12.1
  37. board_build.core = maple
  38. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  39. ${common.build_flags}
  40. -DARDUINO_ARCH_STM32
  41. build_unflags = -std=gnu11 -std=gnu++11
  42. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  43. lib_ignore = SPI, FreeRTOS701, FreeRTOS821
  44. lib_deps = ${common.lib_deps}
  45. SoftwareSerialM
  46. platform_packages = tool-stm32duino
  47. extra_scripts = ${common.extra_scripts}
  48. pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
  49. #
  50. # STM32F103RC
  51. #
  52. [env:STM32F103RC]
  53. platform = ${common_stm32f1.platform}
  54. extends = common_stm32f1
  55. board = genericSTM32F103RC
  56. monitor_speed = 115200
  57. #
  58. # MEEB_3DP (STM32F103RCT6 with 512K)
  59. #
  60. [env:STM32F103RC_meeb]
  61. platform = ${common_stm32f1.platform}
  62. extends = common_stm32f1
  63. board = marlin_MEEB_3DP
  64. build_flags = ${common_stm32f1.build_flags}
  65. -DDEBUG_LEVEL=0
  66. -DSS_TIMER=4
  67. -DSTM32_FLASH_SIZE=512
  68. -DHSE_VALUE=12000000U
  69. -DUSE_USB_COMPOSITE
  70. -DVECT_TAB_OFFSET=0x2000
  71. -DGENERIC_BOOTLOADER
  72. extra_scripts = ${common_stm32f1.extra_scripts}
  73. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  74. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  75. lib_deps = ${common.lib_deps}
  76. SoftwareSerialM
  77. USBComposite for STM32F1@0.91
  78. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  79. debug_tool = stlink
  80. upload_protocol = dfu
  81. #
  82. # STM32F103RC_fysetc
  83. #
  84. [env:STM32F103RC_fysetc]
  85. platform = ${common_stm32f1.platform}
  86. extends = env:STM32F103RC
  87. extra_scripts = ${common_stm32f1.extra_scripts}
  88. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  89. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  90. lib_ldf_mode = chain
  91. debug_tool = stlink
  92. upload_protocol = serial
  93. #
  94. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  95. #
  96. # STM32F103RC_btt ............. RCT6 with 256K
  97. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  98. # STM32F103RC_btt_512K ........ RCT6 with 512K
  99. # STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
  100. #
  101. # WARNING! If you have an SKR Mini v1.1 or an SKR Mini E3 1.0 / 1.2 / 2.0 / DIP
  102. # and experience a printer freeze, re-flash Marlin using the regular (non-512K)
  103. # build option. 256K chips may be re-branded 512K chips, but this means the
  104. # upper 256K is sketchy, and failure is very likely.
  105. #
  106. [env:STM32F103RC_btt]
  107. platform = ${common_stm32f1.platform}
  108. extends = env:STM32F103RC
  109. board_build.address = 0x08007000
  110. board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
  111. extra_scripts = ${common_stm32f1.extra_scripts}
  112. buildroot/share/PlatformIO/scripts/custom_board.py
  113. build_flags = ${common_stm32f1.build_flags}
  114. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  115. monitor_speed = 115200
  116. [env:STM32F103RC_btt_USB]
  117. platform = ${common_stm32f1.platform}
  118. extends = env:STM32F103RC_btt
  119. build_flags = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
  120. lib_deps = ${env:STM32F103RC_btt.lib_deps}
  121. USBComposite for STM32F1@0.91
  122. [env:STM32F103RC_btt_512K]
  123. platform = ${common_stm32f1.platform}
  124. extends = env:STM32F103RC_btt
  125. board_build.ldscript = STM32F103RC_SKR_MINI_512K.ld
  126. board_upload.maximum_size=524288
  127. build_flags = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
  128. [env:STM32F103RC_btt_512K_USB]
  129. platform = ${common_stm32f1.platform}
  130. extends = env:STM32F103RC_btt_512K
  131. build_flags = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
  132. lib_deps = ${env:STM32F103RC_btt_512K.lib_deps}
  133. USBComposite for STM32F1@0.91
  134. #
  135. # STM32 HAL version of STM32F103RC_btt envs
  136. #
  137. [env:STM32F103RC_stm32]
  138. platform = ${common_stm32.platform}
  139. extends = common_stm32
  140. board = genericSTM32F103RC
  141. monitor_speed = 115200
  142. board_build.core = stm32
  143. board_build.variant = MARLIN_F103Rx
  144. board_build.ldscript = ldscript.ld
  145. extra_scripts = ${common.extra_scripts}
  146. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  147. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  148. [env:STM32F103RC_btt_stm32]
  149. platform = ${common_stm32.platform}
  150. extends = env:STM32F103RC_stm32
  151. build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
  152. board_build.offset = 0x7000
  153. board_build.encrypt = No
  154. board_build.firmware = firmware.bin
  155. board_upload.offset_address = 0x08007000
  156. [env:STM32F103RC_btt_USB_stm32]
  157. extends = env:STM32F103RC_btt_stm32
  158. platform = ${common_stm32.platform}
  159. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
  160. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  161. build_flags = ${env:STM32F103RC_btt_stm32.build_flags} ${env:stm32_flash_drive.build_flags}
  162. -DUSBCON
  163. -DUSE_USBHOST_HS
  164. -DUSBD_IRQ_PRIO=5
  165. -DUSBD_IRQ_SUBPRIO=6
  166. -DUSE_USB_HS_IN_FS
  167. -DUSBD_USE_CDC_MSC
  168. [env:STM32F103RC_btt_512K_stm32]
  169. platform = ${common_stm32.platform}
  170. extends = env:STM32F103RC_btt_stm32
  171. board_upload.maximum_size = 524288
  172. build_flags = ${env:STM32F103RC_btt_stm32.build_flags} -DLD_MAX_DATA_SIZE=524288 -DSTM32_FLASH_SIZE=512
  173. [env:STM32F103RC_btt_512K_USB_stm32]
  174. platform = ${common_stm32.platform}
  175. extends = env:STM32F103RC_btt_USB_stm32
  176. board_upload.maximum_size = 524288
  177. build_flags = ${env:STM32F103RC_btt_USB_stm32.build_flags} -DLD_MAX_DATA_SIZE=524288 -DSTM32_FLASH_SIZE=512
  178. #
  179. # STM32F103RE
  180. #
  181. [env:STM32F103RE]
  182. platform = ${common_stm32f1.platform}
  183. extends = common_stm32f1
  184. board = genericSTM32F103RE
  185. monitor_speed = 115200
  186. #
  187. # STM32F103RE_btt ............. RET6
  188. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  189. #
  190. [env:STM32F103RE_btt]
  191. platform = ${common_stm32f1.platform}
  192. extends = env:STM32F103RE
  193. board_build.address = 0x08007000
  194. board_build.ldscript = STM32F103RE_SKR_E3_DIP.ld
  195. extra_scripts = ${common_stm32f1.extra_scripts}
  196. buildroot/share/PlatformIO/scripts/custom_board.py
  197. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  198. debug_tool = stlink
  199. upload_protocol = stlink
  200. [env:STM32F103RE_btt_USB]
  201. platform = ${common_stm32f1.platform}
  202. extends = env:STM32F103RE_btt
  203. build_flags = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
  204. lib_deps = ${common_stm32f1.lib_deps}
  205. USBComposite for STM32F1@0.91
  206. #
  207. # Geeetech GTM32 (STM32F103VET6)
  208. #
  209. [env:STM32F103VE_GTM32]
  210. platform = ${common_stm32f1.platform}
  211. extends = common_stm32f1
  212. board = genericSTM32F103VE
  213. build_flags = ${common_stm32f1.build_flags}
  214. -ffunction-sections -fdata-sections -nostdlib -MMD
  215. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  216. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  217. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  218. upload_protocol = serial
  219. #
  220. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  221. #
  222. [env:STM32F103VE_longer]
  223. platform = ${common_stm32f1.platform}
  224. extends = common_stm32f1
  225. board = genericSTM32F103VE
  226. board_build.address = 0x08010000
  227. board_build.ldscript = STM32F103VE_longer.ld
  228. extra_scripts = ${common_stm32f1.extra_scripts}
  229. buildroot/share/PlatformIO/scripts/custom_board.py
  230. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  231. build_flags = ${common_stm32f1.build_flags}
  232. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  233. build_unflags = ${common_stm32f1.build_unflags}
  234. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  235. #
  236. # MKS Robin Mini (STM32F103VET6)
  237. #
  238. [env:mks_robin_mini]
  239. platform = ${common_stm32f1.platform}
  240. extends = common_stm32f1
  241. board = genericSTM32F103VE
  242. extra_scripts = ${common_stm32f1.extra_scripts}
  243. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  244. build_flags = ${common_stm32f1.build_flags}
  245. -DMCU_STM32F103VE
  246. #
  247. # MKS Robin Nano (STM32F103VET6)
  248. #
  249. [env:mks_robin_nano35]
  250. platform = ${common_stm32f1.platform}
  251. extends = common_stm32f1
  252. board = genericSTM32F103VE
  253. extra_scripts = ${common_stm32f1.extra_scripts}
  254. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  255. build_flags = ${common_stm32f1.build_flags}
  256. -DMCU_STM32F103VE -DSS_TIMER=4
  257. debug_tool = jlink
  258. upload_protocol = jlink
  259. #
  260. # MKS Robin (STM32F103ZET6)
  261. #
  262. [env:mks_robin]
  263. platform = ${common_stm32f1.platform}
  264. extends = common_stm32f1
  265. board = genericSTM32F103ZE
  266. extra_scripts = ${common_stm32f1.extra_scripts}
  267. buildroot/share/PlatformIO/scripts/mks_robin.py
  268. build_flags = ${common_stm32f1.build_flags}
  269. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  270. # MKS Robin (STM32F103ZET6)
  271. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  272. #
  273. [env:mks_robin_stm32]
  274. platform = ${common_stm32.platform}
  275. extends = common_stm32
  276. board = genericSTM32F103ZE
  277. board_build.core = stm32
  278. board_build.variant = MARLIN_F103Zx
  279. board_build.ldscript = ldscript.ld
  280. board_build.offset = 0x7000
  281. board_build.encrypt = Yes
  282. board_build.firmware = Robin.bin
  283. build_flags = ${common_stm32.build_flags}
  284. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  285. build_unflags = ${common_stm32.build_unflags}
  286. -DUSBCON -DUSBD_USE_CDC
  287. extra_scripts = ${common.extra_scripts}
  288. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  289. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  290. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  291. lib_deps =
  292. #
  293. # MKS Robin Pro (STM32F103ZET6)
  294. #
  295. [env:mks_robin_pro]
  296. platform = ${common_stm32f1.platform}
  297. extends = env:mks_robin
  298. extra_scripts = ${common_stm32f1.extra_scripts}
  299. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  300. #
  301. # TRIGORILLA PRO (STM32F103ZET6)
  302. #
  303. [env:trigorilla_pro]
  304. platform = ${common_stm32f1.platform}
  305. extends = env:mks_robin
  306. extra_scripts = ${common_stm32f1.extra_scripts}
  307. #
  308. # MKS Robin E3D (STM32F103RCT6) and
  309. # MKS Robin E3 with TMC2209
  310. #
  311. [env:mks_robin_e3]
  312. platform = ${common_stm32f1.platform}
  313. extends = common_stm32f1
  314. board = genericSTM32F103RC
  315. extra_scripts = ${common_stm32f1.extra_scripts}
  316. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  317. build_flags = ${common_stm32f1.build_flags}
  318. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  319. #
  320. # MKS Robin E3p (STM32F103VET6)
  321. # - LVGL UI
  322. #
  323. [env:mks_robin_e3p]
  324. platform = ${common_stm32f1.platform}
  325. extends = common_stm32f1
  326. board = genericSTM32F103VE
  327. extra_scripts = ${common_stm32f1.extra_scripts}
  328. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  329. build_flags = ${common_stm32f1.build_flags}
  330. -DMCU_STM32F103VE -DSS_TIMER=4
  331. debug_tool = jlink
  332. upload_protocol = jlink
  333. #
  334. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  335. #
  336. [env:mks_robin_lite]
  337. platform = ${common_stm32f1.platform}
  338. extends = common_stm32f1
  339. board = genericSTM32F103RC
  340. extra_scripts = ${common_stm32f1.extra_scripts}
  341. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  342. #
  343. # MKS ROBIN LITE3 (STM32F103RCT6)
  344. #
  345. [env:mks_robin_lite3]
  346. platform = ${common_stm32f1.platform}
  347. extends = common_stm32f1
  348. board = genericSTM32F103RC
  349. extra_scripts = ${common_stm32f1.extra_scripts}
  350. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  351. #
  352. # JGAurora A5S A1 (STM32F103ZET6)
  353. #
  354. [env:jgaurora_a5s_a1]
  355. platform = ${common_stm32f1.platform}
  356. extends = common_stm32f1
  357. board = genericSTM32F103ZE
  358. board_build.address = 0x0800A000
  359. board_build.ldscript = jgaurora_a5s_a1.ld
  360. extra_scripts = ${common_stm32f1.extra_scripts}
  361. buildroot/share/PlatformIO/scripts/custom_board.py
  362. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  363. build_flags = ${common_stm32f1.build_flags}
  364. -DSTM32F1xx -DSTM32_XL_DENSITY
  365. #
  366. # Malyan M200 (STM32F103CB)
  367. #
  368. [env:STM32F103CB_malyan]
  369. platform = ${common_stm32f1.platform}
  370. extends = common_stm32f1
  371. board = marlin_malyanM200
  372. build_flags = ${common_stm32f1.build_flags}
  373. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  374. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  375. lib_ignore = ${common_stm32f1.lib_ignore}
  376. SoftwareSerialM
  377. #
  378. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  379. #
  380. [env:chitu_f103]
  381. platform = ${common_stm32f1.platform}
  382. extends = common_stm32f1
  383. board = marlin_CHITU_F103
  384. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  385. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  386. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  387. build_flags = ${common_stm32f1.build_flags}
  388. -DSTM32F1xx -DSTM32_XL_DENSITY
  389. build_unflags = ${common_stm32f1.build_unflags}
  390. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  391. #
  392. # Some Chitu V5 boards have a problem with GPIO init.
  393. # Use this target if G28 or G29 are always failing.
  394. #
  395. [env:chitu_v5_gpio_init]
  396. platform = ${common_stm32f1.platform}
  397. extends = env:chitu_f103
  398. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  399. #
  400. # Creality (STM32F103RET6)
  401. #
  402. [env:STM32F103RET6_creality]
  403. platform = ${env:STM32F103RE.platform}
  404. extends = env:STM32F103RE
  405. build_flags = ${env:STM32F103RE.build_flags} -DTEMP_TIMER_CHAN=4
  406. board_build.address = 0x08007000
  407. board_build.ldscript = creality.ld
  408. extra_scripts = ${env:STM32F103RE.extra_scripts}
  409. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  410. buildroot/share/PlatformIO/scripts/custom_board.py
  411. debug_tool = jlink
  412. upload_protocol = jlink
  413. #
  414. # FLSUN QQS Pro (STM32F103VET6) using hal STM32
  415. # board Hispeedv1
  416. #
  417. [env:flsun_hispeedv1]
  418. platform = ${common_stm32.platform}
  419. extends = common_stm32
  420. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  421. board = genericSTM32F103VE
  422. board_build.core = stm32
  423. board_build.variant = MARLIN_F103Vx
  424. board_build.ldscript = ldscript.ld
  425. board_build.offset = 0x7000
  426. board_build.firmware = Robin_mini.bin
  427. board_build.encrypt = Yes
  428. board_upload.offset_address = 0x08007000
  429. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  430. extra_scripts = ${common.extra_scripts}
  431. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  432. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  433. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  434. #
  435. # MKS Robin Nano V1.2 and V2 using hal STM32
  436. #
  437. [env:mks_robin_nano35_stm32]
  438. platform = ${common_stm32.platform}
  439. extends = common_stm32
  440. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  441. board = genericSTM32F103VE
  442. board_build.core = stm32
  443. board_build.variant = MARLIN_F103Vx
  444. board_build.ldscript = ldscript.ld
  445. board_build.offset = 0x7000
  446. board_build.encrypt = Yes
  447. board_build.firmware = Robin_nano35.bin
  448. board_upload.offset_address = 0x08007000
  449. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  450. debug_tool = jlink
  451. upload_protocol = jlink
  452. extra_scripts = ${common.extra_scripts}
  453. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  454. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  455. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  456. #
  457. # Mingda MPX_ARM_MINI
  458. #
  459. [env:mingda_mpx_arm_mini]
  460. platform = ${common_stm32.platform}
  461. extends = common_stm32
  462. board = genericSTM32F103ZE
  463. board_build.core = stm32
  464. board_build.variant = MARLIN_F103Zx
  465. board_build.ldscript = ldscript.ld
  466. board_build.offset = 0x10000
  467. build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  468. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  469. extra_scripts = ${common.extra_scripts}
  470. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  471. buildroot/share/PlatformIO/scripts/stm32_bootloader.py