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.

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