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

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