My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

platformio.ini 33KB

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