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.

platformio.ini 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # http://docs.platformio.org/en/latest/projectconf.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. #targets = upload
  11. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. boards_dir = buildroot/share/PlatformIO/boards
  18. default_envs = mega2560
  19. include_dir = Marlin
  20. #
  21. # The 'common' values are used for most Marlin builds
  22. #
  23. [common]
  24. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared> -<src/lcd/extui/lib/mks_ui>
  25. extra_scripts =
  26. pre:buildroot/share/PlatformIO/scripts/common-features-dependencies.py
  27. pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  28. build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
  29. lib_deps =
  30. #
  31. # Feature Dependencies
  32. #
  33. [features]
  34. TFT_LVGL_UI = MKS-LittlevGL=https://github.com/makerbase-mks/MKS-LittlevGL/archive/master.zip
  35. src_filter=+<src/lcd/extui/lib/mks_ui>
  36. HAS_TRINAMIC_CONFIG = TMCStepper@~0.7.1
  37. SR_LCD_2W_NL = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  38. SR_LCD_3W_NL = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  39. DIGIPOT_MCP4018 = SlowSoftI2CMaster
  40. DIGIPOT_MCP4451 = SlowSoftI2CMaster
  41. HAS_TMC26X = TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  42. HAS_L64XX = Arduino-L6470@0.8.0
  43. NEOPIXEL_LED = Adafruit NeoPixel@1.5.0
  44. MAX6675_IS_MAX31865 = Adafruit MAX31865 library@~1.1.0
  45. HAS_GRAPHICAL_LCD = U8glib-HAL@0.4.1
  46. HAS_CHARACTER_LCD = LiquidCrystal@1.5.0, LiquidTWI2@1.2.7
  47. #
  48. # Default values apply to all 'env:' prefixed environments
  49. #
  50. [env]
  51. framework = arduino
  52. extra_scripts = ${common.extra_scripts}
  53. build_flags = ${common.build_flags}
  54. lib_deps = ${common.lib_deps}
  55. monitor_speed = 250000
  56. #################################
  57. # #
  58. # Unique Core Architectures #
  59. # #
  60. # Add a new "env" below if no #
  61. # entry has values suitable to #
  62. # build for a given board. #
  63. # #
  64. #################################
  65. #################################
  66. # #
  67. # AVR Architecture #
  68. # #
  69. #################################
  70. #
  71. # AVR (8-bit) Common Environment values
  72. #
  73. [common_avr8]
  74. board_build.f_cpu = 16000000L
  75. src_filter = ${common.default_src_filter} +<src/HAL/AVR>
  76. #
  77. # ATmega2560
  78. #
  79. [env:mega2560]
  80. platform = atmelavr
  81. extends = common_avr8
  82. board = megaatmega2560
  83. #
  84. # ATmega1280
  85. #
  86. [env:mega1280]
  87. platform = atmelavr
  88. extends = common_avr8
  89. board = megaatmega1280
  90. #
  91. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  92. #
  93. [env:MightyBoard1280]
  94. platform = atmelavr
  95. extends = common_avr8
  96. board = ATmega1280
  97. upload_speed = 57600
  98. #
  99. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  100. #
  101. [env:MightyBoard2560]
  102. platform = atmelavr
  103. extends = common_avr8
  104. board = ATmega2560
  105. upload_protocol = wiring
  106. upload_speed = 57600
  107. board_upload.maximum_size = 253952
  108. #
  109. # RAMBo
  110. #
  111. [env:rambo]
  112. platform = atmelavr
  113. extends = common_avr8
  114. board = reprap_rambo
  115. #
  116. # FYSETC F6 V1.3
  117. #
  118. [env:FYSETC_F6_13]
  119. platform = atmelavr
  120. extends = common_avr8
  121. board = fysetc_f6_13
  122. #
  123. # FYSETC F6 V1.4
  124. #
  125. [env:FYSETC_F6_14]
  126. platform = atmelavr
  127. extends = common_avr8
  128. board = fysetc_f6_14
  129. #
  130. # Sanguinololu (ATmega644p)
  131. #
  132. [env:sanguino644p]
  133. platform = atmelavr
  134. extends = common_avr8
  135. board = sanguino_atmega644p
  136. #
  137. # Sanguinololu (ATmega1284p)
  138. #
  139. [env:sanguino1284p]
  140. platform = atmelavr
  141. extends = common_avr8
  142. board = sanguino_atmega1284p
  143. board_upload.maximum_size = 126976
  144. #
  145. # Melzi and clones (ATmega1284p)
  146. #
  147. [env:melzi]
  148. platform = atmelavr
  149. extends = common_avr8
  150. board = sanguino_atmega1284p
  151. upload_speed = 57600
  152. board_upload.maximum_size = 126976
  153. #
  154. # Melzi and clones (Optiboot bootloader)
  155. #
  156. [env:melzi_optiboot]
  157. platform = atmelavr
  158. extends = common_avr8
  159. board = sanguino_atmega1284p
  160. upload_speed = 115200
  161. #
  162. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  163. #
  164. [env:melzi_optimized]
  165. platform = atmelavr
  166. extends = env:melzi_optiboot
  167. build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
  168. build_unflags = -g -ggdb
  169. #
  170. # AT90USB1286 boards using CDC bootloader
  171. # - BRAINWAVE
  172. # - BRAINWAVE_PRO
  173. # - SAV_MKI
  174. # - TEENSYLU
  175. #
  176. [env:at90usb1286_cdc]
  177. platform = teensy
  178. extends = common_avr8
  179. board = at90usb1286
  180. #
  181. # AT90USB1286 boards using DFU bootloader
  182. # - PrintrBoard
  183. # - PrintrBoard Rev.F
  184. # - ? 5DPRINT ?
  185. #
  186. [env:at90usb1286_dfu]
  187. platform = teensy
  188. extends = env:at90usb1286_cdc
  189. #################################
  190. # #
  191. # DUE Architecture #
  192. # #
  193. #################################
  194. #
  195. # Due (Atmel SAM3X8E ARM Cortex-M3)
  196. #
  197. # - RAMPS4DUE
  198. # - RADDS
  199. #
  200. [env:DUE]
  201. platform = atmelsam
  202. board = due
  203. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  204. [env:DUE_USB]
  205. platform = atmelsam
  206. board = dueUSB
  207. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  208. [env:DUE_debug]
  209. # Used when WATCHDOG_RESET_MANUAL is enabled
  210. platform = atmelsam
  211. board = due
  212. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  213. build_flags = ${common.build_flags}
  214. -funwind-tables
  215. -mpoke-function-name
  216. #
  217. # Archim SAM
  218. #
  219. [common_DUE_archim]
  220. platform = atmelsam
  221. board = due
  222. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  223. build_flags = ${common.build_flags}
  224. -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
  225. extra_scripts = ${common.extra_scripts}
  226. Marlin/src/HAL/DUE/upload_extra_script.py
  227. [env:DUE_archim]
  228. platform = ${common_DUE_archim.platform}
  229. extends = common_DUE_archim
  230. # Used when WATCHDOG_RESET_MANUAL is enabled
  231. [env:DUE_archim_debug]
  232. platform = ${common_DUE_archim.platform}
  233. extends = common_DUE_archim
  234. build_flags = ${common_DUE_archim.build_flags} -funwind-tables -mpoke-function-name
  235. #################################
  236. # #
  237. # SAMD51 Architecture #
  238. # #
  239. #################################
  240. #
  241. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  242. #
  243. [env:SAMD51_grandcentral_m4]
  244. platform = atmelsam
  245. board = adafruit_grandcentral_m4
  246. build_flags = ${common.build_flags} -std=gnu++17
  247. build_unflags = -std=gnu++11
  248. src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
  249. lib_deps = ${common.lib_deps}
  250. SoftwareSerialM
  251. Adafruit_SPIFlash=https://github.com/adafruit/Adafruit_SPIFlash/archive/master.zip
  252. debug_tool = jlink
  253. #################################
  254. # #
  255. # LPC176x Architecture #
  256. # #
  257. #################################
  258. #
  259. # NXP LPC176x ARM Cortex-M3
  260. #
  261. [common_LPC]
  262. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
  263. board = nxp_lpc1768
  264. lib_ldf_mode = off
  265. lib_compat_mode = strict
  266. extra_scripts = ${common.extra_scripts}
  267. Marlin/src/HAL/LPC1768/upload_extra_script.py
  268. src_filter = ${common.default_src_filter} +<src/HAL/LPC1768>
  269. lib_deps = Servo
  270. LiquidCrystal@1.0.0
  271. U8glib-HAL@0.4.1
  272. TMCStepper@~0.7.1
  273. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
  274. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  275. build_flags = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
  276. lib_ignore = LiquidTWI2
  277. # debug options for backtrace
  278. #-funwind-tables
  279. #-mpoke-function-name
  280. #
  281. # NXP LPC176x ARM Cortex-M3
  282. #
  283. [env:LPC1768]
  284. platform = ${common_LPC.platform}
  285. extends = common_LPC
  286. board = nxp_lpc1768
  287. [env:LPC1769]
  288. platform = ${common_LPC.platform}
  289. extends = common_LPC
  290. board = nxp_lpc1769
  291. #################################
  292. # #
  293. # STM32 Architecture #
  294. # #
  295. #################################
  296. #
  297. # HAL/STM32 Base Environment values
  298. #
  299. [common_stm32]
  300. platform = ststm32@~6.1.0
  301. platform_packages = framework-arduinoststm32@>=4.10700,<4.10800
  302. lib_ignore = SoftwareSerial
  303. build_flags = ${common.build_flags}
  304. -IMarlin/src/HAL/STM32 -std=gnu++14
  305. -DUSBCON -DUSBD_USE_CDC
  306. -DUSBD_VID=0x0483
  307. -DTIM_IRQ_PRIO=13
  308. build_unflags = -std=gnu++11
  309. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  310. #
  311. # HAL/STM32F1 Common Environment values
  312. #
  313. [common_stm32f1]
  314. platform = ${common_stm32.platform}
  315. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  316. ${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
  317. build_unflags = -std=gnu++11
  318. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  319. lib_ignore =
  320. SPI
  321. lib_deps = ${common.lib_deps}
  322. SoftwareSerialM
  323. #
  324. # STM32F103RC
  325. #
  326. [env:STM32F103RC]
  327. platform = ${common_stm32f1.platform}
  328. extends = common_stm32f1
  329. board = genericSTM32F103RC
  330. platform_packages = tool-stm32duino
  331. monitor_speed = 115200
  332. #
  333. # MEEB_3DP (STM32F103RCT6 with 512K)
  334. #
  335. [env:STM32F103RC_meeb]
  336. platform = ${common_stm32f1.platform}
  337. extends = common_stm32f1
  338. board = MEEB_3DP
  339. platform_packages = tool-stm32duino
  340. build_flags = ${common_stm32f1.build_flags}
  341. -DDEBUG_LEVEL=0
  342. -DSS_TIMER=4
  343. -DSTM32_FLASH_SIZE=512
  344. -DHSE_VALUE=12000000U
  345. -DUSE_USB_COMPOSITE
  346. -DVECT_TAB_OFFSET=0x2000
  347. -DGENERIC_BOOTLOADER
  348. extra_scripts = ${common.extra_scripts}
  349. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  350. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  351. lib_deps =
  352. TMCStepper@~0.7.1
  353. Adafruit MAX31865 library@~1.1.0
  354. U8glib-HAL@0.4.1
  355. Arduino-L6470@0.8.0
  356. SlowSoftI2CMaster
  357. LiquidTWI2@1.2.7
  358. Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  359. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  360. SoftwareSerialM
  361. USBComposite for STM32F1@0.91
  362. lib_ignore = SPI
  363. debug_tool = stlink
  364. upload_protocol = dfu
  365. #
  366. # STM32F103RC_fysetc
  367. #
  368. [env:STM32F103RC_fysetc]
  369. platform = ${common_stm32f1.platform}
  370. extends = env:STM32F103RC
  371. extra_scripts = ${common.extra_scripts}
  372. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  373. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  374. lib_ldf_mode = chain
  375. debug_tool = stlink
  376. upload_protocol = serial
  377. #
  378. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  379. #
  380. # STM32F103RC_btt ............. RCT6 with 256K
  381. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  382. # STM32F103RC_btt_512K ........ RCT6 with 512K
  383. # STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
  384. #
  385. [env:STM32F103RC_btt]
  386. platform = ${common_stm32f1.platform}
  387. extends = env:STM32F103RC
  388. extra_scripts = ${common.extra_scripts}
  389. buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  390. build_flags = ${common_stm32f1.build_flags}
  391. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  392. monitor_speed = 115200
  393. [env:STM32F103RC_btt_USB]
  394. platform = ${common_stm32f1.platform}
  395. extends = env:STM32F103RC_btt
  396. build_flags = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
  397. lib_deps = ${env:STM32F103RC_btt.lib_deps}
  398. USBComposite for STM32F1@0.91
  399. [env:STM32F103RC_btt_512K]
  400. platform = ${common_stm32f1.platform}
  401. extends = env:STM32F103RC_btt
  402. board_upload.maximum_size=524288
  403. build_flags = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
  404. [env:STM32F103RC_btt_512K_USB]
  405. platform = ${common_stm32f1.platform}
  406. extends = env:STM32F103RC_btt_512K
  407. build_flags = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
  408. lib_deps = ${env:STM32F103RC_btt_512K.lib_deps}
  409. USBComposite for STM32F1@0.91
  410. #
  411. # STM32F103RE
  412. #
  413. [env:STM32F103RE]
  414. platform = ${common_stm32f1.platform}
  415. extends = common_stm32f1
  416. board = genericSTM32F103RE
  417. platform_packages = tool-stm32duino
  418. monitor_speed = 115200
  419. #
  420. # STM32F103RE_btt ............. RET6
  421. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  422. #
  423. [env:STM32F103RE_btt]
  424. platform = ${common_stm32f1.platform}
  425. extends = env:STM32F103RE
  426. extra_scripts = ${common.extra_scripts}
  427. buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  428. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  429. debug_tool = stlink
  430. upload_protocol = stlink
  431. [env:STM32F103RE_btt_USB]
  432. platform = ${common_stm32f1.platform}
  433. extends = env:STM32F103RE_btt
  434. build_flags = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
  435. lib_deps = ${common_stm32f1.lib_deps}
  436. USBComposite for STM32F1@0.91
  437. #
  438. # STM32F4 with STM32GENERIC
  439. #
  440. [env:STM32F4]
  441. platform = ${common_stm32.platform}
  442. board = disco_f407vg
  443. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  444. lib_ignore = Adafruit NeoPixel, TMCStepper
  445. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F7>
  446. #
  447. # STM32F7 with STM32GENERIC
  448. #
  449. [env:STM32F7]
  450. platform = ${common_stm32.platform}
  451. board = remram_v1
  452. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  453. lib_ignore = Adafruit NeoPixel, TMCStepper
  454. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F4>
  455. #
  456. # ARMED (STM32)
  457. #
  458. [env:ARMED]
  459. platform = ${common_stm32.platform}
  460. extends = common_stm32
  461. board = armed_v1
  462. build_flags = ${common_stm32.build_flags}
  463. '-DUSB_PRODUCT="ARMED_V1"'
  464. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  465. #
  466. # Geeetech GTM32 (STM32F103VET6)
  467. #
  468. [env:STM32F103VE_GTM32]
  469. platform = ${common_stm32f1.platform}
  470. extends = common_stm32f1
  471. board = genericSTM32F103VE
  472. build_flags = ${common_stm32f1.build_flags}
  473. -ffunction-sections -fdata-sections -nostdlib -MMD
  474. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  475. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  476. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  477. upload_protocol = serial
  478. #
  479. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  480. #
  481. [env:STM32F103VE_longer]
  482. platform = ${common_stm32f1.platform}
  483. extends = common_stm32f1
  484. board = genericSTM32F103VE
  485. extra_scripts = ${common.extra_scripts}
  486. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  487. build_flags = ${common_stm32f1.build_flags}
  488. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  489. build_unflags = ${common_stm32f1.build_unflags}
  490. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  491. lib_ignore = ${common_stm32f1.lib_ignore}
  492. LiquidTWI2
  493. #
  494. # MKS Robin Mini (STM32F103VET6)
  495. #
  496. [env:mks_robin_mini]
  497. platform = ${common_stm32f1.platform}
  498. extends = common_stm32f1
  499. board = genericSTM32F103VE
  500. extra_scripts = ${common.extra_scripts}
  501. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  502. build_flags = ${common_stm32f1.build_flags}
  503. -DMCU_STM32F103VE
  504. #
  505. # MKS Robin Nano (STM32F103VET6) - Emulated Graphical 128x64 (DOGM) UI
  506. #
  507. [env:mks_robin_nano]
  508. platform = ${common_stm32f1.platform}
  509. extends = common_stm32f1
  510. board = genericSTM32F103VE
  511. platform_packages = tool-stm32duino
  512. extra_scripts = ${common.extra_scripts}
  513. buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  514. build_flags = ${common_stm32f1.build_flags}
  515. -DMCU_STM32F103VE -DSS_TIMER=4
  516. #
  517. # MKS Robin (STM32F103ZET6)
  518. #
  519. [env:mks_robin]
  520. platform = ${common_stm32f1.platform}
  521. extends = common_stm32f1
  522. board = genericSTM32F103ZE
  523. extra_scripts = ${common.extra_scripts}
  524. buildroot/share/PlatformIO/scripts/mks_robin.py
  525. build_flags = ${common_stm32f1.build_flags}
  526. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  527. #
  528. # MKS Robin Pro (STM32F103ZET6)
  529. #
  530. [env:mks_robin_pro]
  531. platform = ${common_stm32f1.platform}
  532. extends = env:mks_robin
  533. extra_scripts = ${common.extra_scripts}
  534. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  535. #
  536. # TRIGORILLA PRO (STM32F103ZET6)
  537. #
  538. [env:trigorilla_pro]
  539. platform = ${common_stm32f1.platform}
  540. extends = env:mks_robin
  541. #
  542. # MKS Robin E3D (STM32F103RCT6) and
  543. # MKS Robin E3 with TMC2209
  544. #
  545. [env:mks_robin_e3]
  546. platform = ${common_stm32f1.platform}
  547. extends = common_stm32f1
  548. board = genericSTM32F103RC
  549. platform_packages = tool-stm32duino
  550. extra_scripts = ${common.extra_scripts}
  551. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  552. build_flags = ${common_stm32f1.build_flags}
  553. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  554. #
  555. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  556. #
  557. [env:mks_robin_lite]
  558. platform = ${common_stm32f1.platform}
  559. extends = common_stm32f1
  560. board = genericSTM32F103RC
  561. extra_scripts = ${common.extra_scripts}
  562. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  563. #
  564. # MKS ROBIN LITE3 (STM32F103RCT6)
  565. #
  566. [env:mks_robin_lite3]
  567. platform = ${common_stm32f1.platform}
  568. extends = common_stm32f1
  569. board = genericSTM32F103RC
  570. extra_scripts = ${common.extra_scripts}
  571. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  572. #
  573. # JGAurora A5S A1 (STM32F103ZET6)
  574. #
  575. [env:jgaurora_a5s_a1]
  576. platform = ${common_stm32f1.platform}
  577. extends = common_stm32f1
  578. board = genericSTM32F103ZE
  579. extra_scripts = ${common.extra_scripts}
  580. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  581. build_flags = ${common_stm32f1.build_flags}
  582. -DSTM32F1xx -DSTM32_XL_DENSITY
  583. #
  584. # Malyan M200 (STM32F103CB)
  585. #
  586. [env:STM32F103CB_malyan]
  587. platform = ${common_stm32f1.platform}
  588. extends = common_stm32f1
  589. board = malyanM200
  590. build_flags = ${common_stm32f1.build_flags}
  591. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  592. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  593. lib_ignore = ${common_stm32f1.lib_ignore}
  594. SoftwareSerialM
  595. #
  596. # Malyan M200 v2 (STM32F070RB)
  597. #
  598. [env:STM32F070RB_malyan]
  599. platform = ${common_stm32.platform}
  600. extends = common_stm32
  601. board = malyanM200v2
  602. build_flags = ${common_stm32.build_flags} -DSTM32F0xx -DUSB_PRODUCT=\"STM32F070RB\" -DHAL_PCD_MODULE_ENABLED
  603. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  604. -DCUSTOM_STARTUP_FILE
  605. lib_ignore = SoftwareSerial
  606. #
  607. # Malyan M300 (STM32F070CB)
  608. #
  609. [env:malyan_M300]
  610. platform = ststm32@>=6.1.0,<6.2.0
  611. board = malyanm300_f070cb
  612. build_flags = ${common.build_flags}
  613. -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
  614. -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  615. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  616. #
  617. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  618. #
  619. [env:chitu_f103]
  620. platform = ${common_stm32f1.platform}
  621. extends = common_stm32f1
  622. board = CHITU_F103
  623. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-features-dependencies.py
  624. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  625. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  626. build_flags = ${common_stm32f1.build_flags}
  627. -DSTM32F1xx -DSTM32_XL_DENSITY
  628. build_unflags = ${common_stm32f1.build_unflags}
  629. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  630. #
  631. # Some Chitu V5 boards have a problem with GPIO init.
  632. # Use this target if G28 or G29 are always failing.
  633. #
  634. [env:chitu_v5_gpio_init]
  635. platform = ${common_stm32f1.platform}
  636. extends = env:chitu_f103
  637. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  638. #
  639. # Creality (STM32F103RET6)
  640. #
  641. [env:STM32F103RET6_creality]
  642. platform = ${common_stm32f1.platform}
  643. extends = common_stm32f1
  644. board = genericSTM32F103RC
  645. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  646. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY -DTEMP_TIMER_CHAN=4
  647. extra_scripts = ${common.extra_scripts}
  648. buildroot/share/PlatformIO/scripts/creality.py
  649. lib_ignore = ${common_stm32f1.lib_ignore}
  650. debug_tool = jlink
  651. upload_protocol = jlink
  652. monitor_speed = 115200
  653. #
  654. # STM32F401VE
  655. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  656. #
  657. [env:STM32F401VE_STEVAL]
  658. platform = ${common_stm32.platform}
  659. extends = common_stm32
  660. board = STEVAL_STM32F401VE
  661. build_flags = ${common_stm32.build_flags}
  662. -DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
  663. -DUSB_PRODUCT=\"STEVAL_F401VE\"
  664. -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  665. extra_scripts = ${common.extra_scripts}
  666. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  667. buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
  668. lib_ignore = SoftwareSerial
  669. #
  670. # FLYF407ZG
  671. #
  672. [env:FLYF407ZG]
  673. platform = ${common_stm32.platform}
  674. extends = common_stm32
  675. board = FLYF407ZG
  676. build_flags = ${common_stm32.build_flags}
  677. -DSTM32F4 -DUSB_PRODUCT=\"STM32F407ZG\"
  678. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
  679. extra_scripts = ${common.extra_scripts}
  680. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  681. #
  682. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  683. #
  684. [env:FYSETC_S6]
  685. platform = ${common_stm32.platform}
  686. extends = common_stm32
  687. platform_packages = ${common_stm32.platform_packages}
  688. tool-stm32duino
  689. board = fysetc_s6
  690. build_flags = ${common_stm32.build_flags}
  691. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x10000
  692. -DHAL_PCD_MODULE_ENABLED '-DUSB_PRODUCT="FYSETC_S6"'
  693. extra_scripts = ${common.extra_scripts}
  694. pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
  695. debug_tool = stlink
  696. upload_protocol = dfu
  697. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  698. #
  699. # STM32F407VET6 with RAMPS-like shield
  700. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  701. # Shield - https://github.com/jmz52/Hardware
  702. #
  703. [env:STM32F407VE_black]
  704. platform = ${common_stm32.platform}
  705. extends = common_stm32
  706. board = blackSTM32F407VET6
  707. build_flags = ${common_stm32.build_flags}
  708. -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
  709. -DUSB_PRODUCT=\"BLACK_F407VE\"
  710. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  711. extra_scripts = ${common.extra_scripts}
  712. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  713. lib_ignore = SoftwareSerial
  714. #
  715. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  716. #
  717. [env:BIGTREE_SKR_PRO]
  718. platform = ${common_stm32.platform}
  719. extends = common_stm32
  720. board = BigTree_SKR_Pro
  721. build_flags = ${common_stm32.build_flags}
  722. -DUSB_PRODUCT=\"STM32F407ZG\"
  723. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  724. extra_scripts = ${common.extra_scripts}
  725. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  726. #upload_protocol = stlink
  727. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  728. debug_tool = stlink
  729. debug_init_break =
  730. #
  731. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  732. #
  733. [env:BIGTREE_GTR_V1_0]
  734. platform = ststm32@>=5.7.0,<6.2.0
  735. extends = common_stm32
  736. board = BigTree_GTR_v1
  737. extra_scripts = ${common.extra_scripts}
  738. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  739. build_flags = ${common_stm32.build_flags}
  740. -DUSB_PRODUCT=\"STM32F407IG\"
  741. -DTARGET_STM32F4 -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  742. #
  743. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  744. #
  745. [env:BIGTREE_BTT002]
  746. platform = ${common_stm32.platform}
  747. extends = common_stm32
  748. board = BigTree_Btt002
  749. build_flags = ${common_stm32.build_flags}
  750. -DUSB_PRODUCT=\"STM32F407VG\"
  751. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  752. -DHAVE_HWSERIAL2
  753. -DHAVE_HWSERIAL3
  754. -DPIN_SERIAL2_RX=PD_6
  755. -DPIN_SERIAL2_TX=PD_5
  756. extra_scripts = ${common.extra_scripts}
  757. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  758. #
  759. # Lerdge base
  760. #
  761. [lerdge_common]
  762. platform = ${common_stm32.platform}
  763. extends = common_stm32
  764. board = LERDGE
  765. board_build.offset = 0x10000
  766. extra_scripts = ${common.extra_scripts}
  767. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  768. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  769. buildroot/share/PlatformIO/scripts/lerdge.py
  770. build_flags = ${common_stm32.build_flags}
  771. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  772. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  773. -DTRANSFER_CLOCK_DIV=8
  774. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  775. #
  776. # Lerdge X
  777. #
  778. [env:LERDGEX]
  779. extends = lerdge_common
  780. board_build.firmware = Lerdge_X_firmware_force.bin
  781. #
  782. # Lerdge S
  783. #
  784. [env:LERDGES]
  785. extends = lerdge_common
  786. board_build.firmware = Lerdge_firmware_force.bin
  787. #
  788. # Lerdge K
  789. #
  790. [env:LERDGEK]
  791. extends = lerdge_common
  792. board_build.firmware = Lerdge_K_firmware_force.bin
  793. build_flags = ${lerdge_common.build_flags}
  794. -DLERDGEK
  795. #
  796. # RUMBA32
  797. #
  798. [env:rumba32]
  799. platform = ${common_stm32.platform}
  800. extends = common_stm32
  801. build_flags = ${common_stm32.build_flags}
  802. -Os
  803. "-DUSB_PRODUCT=\"RUMBA32\""
  804. -DHAL_PCD_MODULE_ENABLED
  805. -DDISABLE_GENERIC_SERIALUSB
  806. -DHAL_UART_MODULE_ENABLED
  807. board = rumba32_f446ve
  808. upload_protocol = dfu
  809. monitor_speed = 500000
  810. #################################
  811. # #
  812. # Other Architectures #
  813. # #
  814. #################################
  815. #
  816. # Espressif ESP32
  817. #
  818. [env:esp32]
  819. platform = espressif32@1.11.2
  820. board = esp32dev
  821. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  822. lib_deps = ${common.lib_deps}
  823. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  824. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  825. ESP3DLib=https://github.com/luc-github/ESP3DLib.git
  826. arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets.git
  827. ESP32SSDP=https://github.com/luc-github/ESP32SSDP.git
  828. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, ESPAsyncTCP
  829. src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
  830. upload_speed = 115200
  831. #upload_port = marlinesp.local
  832. #board_build.flash_mode = qio
  833. #
  834. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  835. #
  836. [env:teensy31]
  837. platform = teensy
  838. board = teensy31
  839. lib_deps = ${common.lib_deps}
  840. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  841. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
  842. #
  843. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  844. #
  845. [env:teensy35]
  846. platform = teensy
  847. board = teensy35
  848. lib_deps = ${common.lib_deps}
  849. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  850. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  851. #
  852. # Native
  853. # No supported Arduino libraries, base Marlin only
  854. #
  855. [env:linux_native]
  856. platform = native
  857. framework =
  858. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  859. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  860. build_unflags = -Wall
  861. lib_ldf_mode = off
  862. lib_deps =
  863. src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
  864. #
  865. # Just print the dependency tree
  866. #
  867. [env:include_tree]
  868. platform = atmelavr
  869. board = megaatmega2560
  870. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  871. lib_deps = ${common.lib_deps}
  872. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  873. src_filter = +<src/Marlin.cpp>