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 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  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 -DHAVE_SW_SERIAL -DSS_TIMER=4 -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. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  521. lib_ignore = Adafruit NeoPixel, SPI
  522. #
  523. # MKS Robin E3D (STM32F103RCT6) and
  524. # MKS Robin E3 with TMC2209
  525. #
  526. [env:mks_robin_e3]
  527. platform = ststm32
  528. board = genericSTM32F103RC
  529. platform_packages = tool-stm32duino
  530. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  531. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
  532. build_unflags = -std=gnu++11
  533. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  534. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  535. lib_deps = ${common.lib_deps}
  536. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  537. lib_ignore = Adafruit NeoPixel, SPI
  538. #
  539. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  540. #
  541. [env:mks_robin_lite]
  542. platform = ststm32
  543. board = genericSTM32F103RC
  544. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  545. ${common.build_flags} -std=gnu++14
  546. build_unflags = -std=gnu++11
  547. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  548. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  549. lib_ignore = Adafruit NeoPixel, SPI
  550. #
  551. # MKS ROBIN LITE3 (STM32F103RCT6)
  552. #
  553. [env:mks_robin_lite3]
  554. platform = ststm32
  555. board = genericSTM32F103RC
  556. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  557. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  558. ${common.build_flags} -std=gnu++14
  559. build_unflags = -std=gnu++11
  560. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  561. lib_deps = ${common.lib_deps}
  562. lib_ignore = Adafruit NeoPixel, SPI
  563. #
  564. # JGAurora A5S A1 (STM32F103ZET6)
  565. #
  566. [env:jgaurora_a5s_a1]
  567. platform = ststm32
  568. board = genericSTM32F103ZE
  569. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  570. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  571. build_unflags = -std=gnu++11
  572. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  573. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  574. lib_ignore = Adafruit NeoPixel, SPI
  575. #
  576. # Malyan M200 (STM32F103CB)
  577. #
  578. [env:STM32F103CB_malyan]
  579. platform = ststm32
  580. board = malyanM200
  581. 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
  582. -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  583. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  584. lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL, SPI
  585. #
  586. # Malyan M200 v2 (STM32F070RB)
  587. #
  588. [env:STM32F070RB_malyan]
  589. platform = ststm32
  590. board = malyanM200v2
  591. build_flags = -DSTM32F0xx -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
  592. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  593. -IMarlin/src/HAL/STM32
  594. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  595. lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL
  596. #
  597. # Malyan M300 (STM32F070CB)
  598. #
  599. [env:malyan_M300]
  600. platform = ststm32@>=6.1.0
  601. board = malyanm300_f070cb
  602. build_flags = ${common.build_flags}
  603. -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
  604. -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  605. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  606. lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL
  607. #
  608. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  609. #
  610. [env:chitu_f103]
  611. platform = ststm32
  612. board = genericSTM32F103ZE
  613. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  614. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  615. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  616. extra_scripts = buildroot/share/PlatformIO/scripts/chitu_crypt.py
  617. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  618. lib_ignore = Adafruit NeoPixel
  619. #
  620. # STM32F401VE
  621. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  622. #
  623. [env:STM32F401VE_STEVAL]
  624. platform = ststm32
  625. board = STEVAL_STM32F401VE
  626. platform_packages = framework-arduinoststm32@>=3.10700,<4
  627. build_flags = ${common.build_flags}
  628. -DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
  629. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STEVAL_F401VE\"
  630. -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  631. -IMarlin/src/HAL/STM32
  632. build_unflags = -std=gnu++11
  633. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  634. buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
  635. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  636. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  637. #
  638. # FLYF407ZG
  639. #
  640. [env:FLYF407ZG]
  641. platform = ststm32
  642. board = FLYF407ZG
  643. platform_packages = framework-arduinoststm32@>=3.10700,<4
  644. build_flags = ${common.build_flags}
  645. -DSTM32F4 -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  646. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
  647. -IMarlin/src/HAL/STM32
  648. build_unflags = -std=gnu++11
  649. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  650. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  651. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  652. #
  653. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  654. #
  655. [env:FYSETC_S6]
  656. platform = ststm32
  657. board = fysetc_s6
  658. platform_packages =
  659. tool-stm32duino
  660. framework-arduinoststm32@>=3.10700,<4
  661. build_flags = ${common.build_flags}
  662. -DTARGET_STM32F4 -std=gnu++14
  663. -DVECT_TAB_OFFSET=0x10000
  664. -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED -DUSBD_VID=0x0483 '-DUSB_PRODUCT="FYSETC_S6"'
  665. -IMarlin/src/HAL/STM32
  666. build_unflags = -std=gnu++11
  667. extra_scripts = pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
  668. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  669. lib_ignore = Arduino-L6470, SoftwareSerial
  670. debug_tool = stlink
  671. #upload_protocol = stlink
  672. upload_protocol = serial
  673. #
  674. # STM32F407VET6 with RAMPS-like shield
  675. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  676. # Shield - https://github.com/jmz52/Hardware
  677. #
  678. [env:STM32F407VE_black]
  679. platform = ststm32
  680. board = blackSTM32F407VET6
  681. platform_packages = framework-arduinoststm32@>=3.10700,<4
  682. build_flags = ${common.build_flags}
  683. -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
  684. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  685. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  686. -IMarlin/src/HAL/STM32
  687. build_unflags = -std=gnu++11
  688. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  689. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  690. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  691. #
  692. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  693. #
  694. [env:BIGTREE_SKR_PRO]
  695. platform = ststm32
  696. board = BigTree_SKR_Pro
  697. platform_packages = framework-arduinoststm32@>=3.10700,<4
  698. build_flags = ${common.build_flags}
  699. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  700. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  701. -IMarlin/src/HAL/STM32
  702. build_unflags = -std=gnu++11
  703. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  704. lib_ignore = SoftwareSerial, SoftwareSerialM
  705. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  706. #upload_protocol = stlink
  707. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  708. debug_tool = stlink
  709. debug_init_break =
  710. #
  711. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  712. #
  713. [env:BIGTREE_GTR_V1_0]
  714. platform = ststm32@>=5.7.0
  715. platform_packages = framework-arduinoststm32@>=3.10700,<4
  716. board = BigTree_SKR_Pro
  717. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  718. build_flags = ${common.build_flags}
  719. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407IG\"
  720. -DTARGET_STM32F4 -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  721. -IMarlin/src/HAL/STM32
  722. lib_deps =
  723. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  724. LiquidCrystal
  725. TMCStepper@>=0.5.2,<1.0.0
  726. Adafruit NeoPixel
  727. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  728. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  729. lib_ignore = SoftwareSerial, SoftwareSerialM
  730. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  731. #
  732. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  733. #
  734. [env:BIGTREE_BTT002]
  735. platform = ststm32@5.6.0
  736. board = BigTree_Btt002
  737. platform_packages = framework-arduinoststm32@>=3.10700,<4
  738. build_flags = ${common.build_flags}
  739. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VG\"
  740. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  741. -DHAVE_HWSERIAL2
  742. -DHAVE_HWSERIAL3
  743. -DPIN_SERIAL2_RX=PD_6
  744. -DPIN_SERIAL2_TX=PD_5
  745. -IMarlin/src/HAL/STM32
  746. build_unflags = -std=gnu++11
  747. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  748. lib_ignore = Adafruit NeoPixel, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  749. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  750. #
  751. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  752. #
  753. [env:teensy31]
  754. platform = teensy
  755. board = teensy31
  756. lib_deps = ${common.lib_deps}
  757. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  758. lib_ignore = Adafruit NeoPixel
  759. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
  760. #
  761. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  762. #
  763. [env:teensy35]
  764. platform = teensy
  765. board = teensy35
  766. lib_deps = ${common.lib_deps}
  767. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  768. lib_ignore = Adafruit NeoPixel
  769. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  770. #
  771. # Espressif ESP32
  772. #
  773. [env:esp32]
  774. platform = espressif32@1.11.2
  775. board = esp32dev
  776. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  777. lib_deps = ${common.lib_deps}
  778. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  779. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  780. ESP3DLib=https://github.com/luc-github/ESP3DLib.git
  781. arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets.git
  782. ESP32SSDP=https://github.com/luc-github/ESP32SSDP.git
  783. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, ESPAsyncTCP
  784. src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
  785. upload_speed = 115200
  786. #upload_port = marlinesp.local
  787. #board_build.flash_mode = qio
  788. #
  789. # Native
  790. # No supported Arduino libraries, base Marlin only
  791. #
  792. [env:linux_native]
  793. platform = native
  794. framework =
  795. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  796. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  797. build_unflags = -Wall
  798. lib_ldf_mode = off
  799. lib_deps =
  800. src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
  801. #
  802. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  803. #
  804. [env:SAMD51_grandcentral_m4]
  805. platform = atmelsam
  806. board = adafruit_grandcentral_m4
  807. build_flags = ${common.build_flags} -std=gnu++17 -Wno-register
  808. build_unflags = -std=gnu++11
  809. src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
  810. lib_deps = ${common.lib_deps}
  811. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  812. Adafruit_SPIFlash=https://github.com/adafruit/Adafruit_SPIFlash/archive/master.zip
  813. debug_tool = jlink
  814. #
  815. # RUMBA32
  816. #
  817. [env:rumba32_f446ve]
  818. platform = ststm32
  819. board = rumba32_f446ve
  820. build_flags = ${common.build_flags}
  821. -DSTM32F4xx
  822. -DARDUINO_RUMBA32_F446VE
  823. -DARDUINO_ARCH_STM32
  824. "-DBOARD_NAME=\"RUMBA32_F446VE\""
  825. -DSTM32F446xx
  826. -DUSBCON
  827. -DUSBD_VID=0x0483
  828. "-DUSB_MANUFACTURER=\"Unknown\""
  829. "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
  830. -DHAL_PCD_MODULE_ENABLED
  831. -DUSBD_USE_CDC
  832. -DDISABLE_GENERIC_SERIALUSB
  833. -DHAL_UART_MODULE_ENABLED
  834. -Os
  835. lib_ignore = Adafruit NeoPixel
  836. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  837. monitor_speed = 500000
  838. upload_protocol = dfu
  839. #
  840. # MKS RUMBA32 (adds TMC2208/2209 UART interface and AUX-1)
  841. #
  842. [env:rumba32_mks]
  843. platform = ststm32
  844. board = rumba32_f446ve
  845. build_flags = ${common.build_flags}
  846. -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\""
  847. -DSTM32F446xx -DUSBCON -DUSBD_VID=0x8000
  848. "-DUSB_MANUFACTURER=\"Unknown\""
  849. "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
  850. -DHAL_PCD_MODULE_ENABLED
  851. -DUSBD_USE_CDC
  852. -DDISABLE_GENERIC_SERIALUSB
  853. -DHAL_UART_MODULE_ENABLED
  854. -Os
  855. lib_ignore = Adafruit NeoPixel
  856. src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F7>
  857. upload_protocol = dfu
  858. #
  859. # Just print the dependency tree
  860. #
  861. [env:include_tree]
  862. platform = atmelavr
  863. board = megaatmega2560
  864. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  865. lib_deps = ${common.lib_deps}
  866. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  867. src_filter = +<src/Marlin.cpp>