My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  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 = megaatmega2560
  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__
  23. lib_deps =
  24. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  25. LiquidCrystal@1.3.4
  26. TMCStepper@>=0.5.0,<1.0.0
  27. Adafruit NeoPixel@1.2.5
  28. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  29. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  30. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  31. SailfishRGB_LED=https://github.com/mikeshub/SailfishRGB_LED/archive/master.zip
  32. SlowSoftI2CMaster=https://github.com/mikeshub/SlowSoftI2CMaster/archive/master.zip
  33. #################################
  34. # #
  35. # Unique Core Architectures #
  36. # #
  37. # Add a new "env" below if no #
  38. # entry has values suitable to #
  39. # build for a given board. #
  40. # #
  41. #################################
  42. #
  43. # ATmega2560
  44. #
  45. [env:megaatmega2560]
  46. platform = atmelavr
  47. framework = arduino
  48. board = megaatmega2560
  49. build_flags = ${common.build_flags}
  50. board_build.f_cpu = 16000000L
  51. lib_deps = ${common.lib_deps}
  52. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  53. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  54. monitor_speed = 250000
  55. #
  56. # ATmega1280
  57. #
  58. [env:megaatmega1280]
  59. platform = atmelavr
  60. framework = arduino
  61. board = megaatmega1280
  62. build_flags = ${common.build_flags}
  63. board_build.f_cpu = 16000000L
  64. lib_deps = ${common.lib_deps}
  65. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  66. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  67. monitor_speed = 250000
  68. #
  69. # AT90USB1286 boards using CDC bootloader
  70. # - BRAINWAVE
  71. # - BRAINWAVE_PRO
  72. # - SAV_MKI
  73. # - TEENSYLU
  74. #
  75. [env:at90usb1286_cdc]
  76. platform = teensy
  77. framework = arduino
  78. board = at90usb1286
  79. build_flags = ${common.build_flags}
  80. lib_deps = ${common.lib_deps}
  81. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  82. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  83. monitor_speed = 250000
  84. #
  85. # AT90USB1286 boards using DFU bootloader
  86. # - PrintrBoard
  87. # - PrintrBoard Rev.F
  88. # - ? 5DPRINT ?
  89. #
  90. [env:at90usb1286_dfu]
  91. platform = teensy
  92. framework = arduino
  93. board = at90usb1286
  94. build_flags = ${common.build_flags}
  95. lib_deps = ${common.lib_deps}
  96. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  97. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  98. monitor_speed = 250000
  99. #
  100. # Due (Atmel SAM3X8E ARM Cortex-M3)
  101. #
  102. # - RAMPS4DUE
  103. # - RADDS
  104. #
  105. [env:DUE]
  106. platform = atmelsam
  107. framework = arduino
  108. board = due
  109. build_flags = ${common.build_flags}
  110. lib_deps = ${common.lib_deps}
  111. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  112. monitor_speed = 250000
  113. [env:DUE_USB]
  114. platform = atmelsam
  115. framework = arduino
  116. board = dueUSB
  117. build_flags = ${common.build_flags}
  118. lib_deps = ${common.lib_deps}
  119. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  120. monitor_speed = 250000
  121. [env:DUE_debug]
  122. # Used when WATCHDOG_RESET_MANUAL is enabled
  123. platform = atmelsam
  124. framework = arduino
  125. board = due
  126. build_flags = ${common.build_flags}
  127. -funwind-tables
  128. -mpoke-function-name
  129. lib_deps = ${common.lib_deps}
  130. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  131. monitor_speed = 250000
  132. #
  133. # NXP LPC176x ARM Cortex-M3
  134. #
  135. [env:LPC1768]
  136. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  137. framework = arduino
  138. board = nxp_lpc1768
  139. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  140. # debug options for backtrace
  141. # -funwind-tables
  142. # -mpoke-function-name
  143. lib_ldf_mode = off
  144. lib_compat_mode = strict
  145. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  146. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  147. monitor_speed = 250000
  148. lib_deps = Servo
  149. LiquidCrystal
  150. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  151. TMCStepper@>=0.5.0,<1.0.0
  152. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  153. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  154. [env:LPC1769]
  155. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  156. framework = arduino
  157. board = nxp_lpc1769
  158. build_flags = -DTARGET_LPC1768 -DLPC1769 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  159. # debug options for backtrace
  160. # -funwind-tables
  161. # -mpoke-function-name
  162. lib_ldf_mode = off
  163. lib_compat_mode = strict
  164. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  165. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  166. monitor_speed = 250000
  167. lib_deps = Servo
  168. LiquidCrystal
  169. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  170. TMCStepper@>=0.5.0,<1.0.0
  171. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  172. #
  173. # Melzi and clones (ATmega1284p)
  174. #
  175. [env:melzi]
  176. platform = atmelavr
  177. framework = arduino
  178. board = sanguino_atmega1284p
  179. build_flags = ${common.build_flags} -fmerge-all-constants
  180. upload_speed = 57600
  181. lib_deps = ${common.lib_deps}
  182. lib_ignore = TMCStepper
  183. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  184. monitor_speed = 250000
  185. #
  186. # Melzi and clones (Optiboot bootloader)
  187. #
  188. [env:melzi_optiboot]
  189. platform = atmelavr
  190. framework = arduino
  191. board = sanguino_atmega1284p
  192. build_flags = ${common.build_flags}
  193. upload_speed = 115200
  194. lib_deps = ${common.lib_deps}
  195. lib_ignore = TMCStepper
  196. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  197. monitor_speed = 250000
  198. #
  199. # RAMBo
  200. #
  201. [env:rambo]
  202. platform = atmelavr
  203. framework = arduino
  204. board = reprap_rambo
  205. build_flags = ${common.build_flags}
  206. board_build.f_cpu = 16000000L
  207. lib_deps = ${common.lib_deps}
  208. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  209. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  210. monitor_speed = 250000
  211. #
  212. # Sanguinololu (ATmega644p)
  213. #
  214. [env:sanguino_atmega644p]
  215. platform = atmelavr
  216. framework = arduino
  217. board = sanguino_atmega644p
  218. build_flags = ${common.build_flags}
  219. lib_deps = ${common.lib_deps}
  220. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  221. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  222. monitor_speed = 250000
  223. #
  224. # Sanguinololu (ATmega1284p)
  225. #
  226. [env:sanguino_atmega1284p]
  227. platform = atmelavr
  228. framework = arduino
  229. board = sanguino_atmega1284p
  230. build_flags = ${common.build_flags}
  231. lib_deps = ${common.lib_deps}
  232. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  233. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  234. monitor_speed = 250000
  235. #
  236. # STM32F103RE
  237. #
  238. [env:STM32F103RE]
  239. platform = ststm32
  240. framework = arduino
  241. board = genericSTM32F103RE
  242. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  243. ${common.build_flags} -std=gnu++14
  244. -DDEBUG_LEVEL=0
  245. build_unflags = -std=gnu++11
  246. lib_deps = ${common.lib_deps}
  247. lib_ignore = Adafruit NeoPixel, SPI
  248. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  249. monitor_speed = 250000
  250. #
  251. # STM32F103RC_fysetc
  252. #
  253. [env:STM32F103RC_fysetc]
  254. platform = ststm32
  255. framework = arduino
  256. board = genericSTM32F103RC
  257. #board_build.core = maple
  258. platform_packages = tool-stm32duino
  259. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  260. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  261. ${common.build_flags} -std=gnu++14
  262. -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
  263. build_unflags = -std=gnu++11
  264. lib_deps = ${common.lib_deps}
  265. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  266. lib_ignore = Adafruit NeoPixel, SPI
  267. lib_ldf_mode = chain
  268. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  269. monitor_speed = 250000
  270. debug_tool = stlink
  271. upload_protocol = serial
  272. #
  273. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  274. #
  275. [env:STM32F103RC_bigtree]
  276. platform = ststm32
  277. framework = arduino
  278. board = genericSTM32F103RC
  279. platform_packages = tool-stm32duino
  280. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  281. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  282. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14
  283. build_unflags = -std=gnu++11
  284. lib_deps = ${common.lib_deps}
  285. lib_ignore = Adafruit NeoPixel, SPI
  286. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  287. monitor_speed = 115200
  288. upload_protocol = stlink
  289. debug_tool = stlink
  290. [env:STM32F103RC_bigtree_USB]
  291. platform = ststm32
  292. framework = arduino
  293. board = genericSTM32F103RC
  294. platform_packages = tool-stm32duino
  295. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  296. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  297. ${common.build_flags} -DDEBUG_LEVEL=0 -DUSE_USB_COMPOSITE -std=gnu++14
  298. build_unflags = -std=gnu++11
  299. lib_deps = ${common.lib_deps}
  300. lib_ignore = Adafruit NeoPixel, SPI
  301. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  302. monitor_speed = 115200
  303. upload_protocol = stlink
  304. debug_tool = stlink
  305. #
  306. # STM32F4 with STM32GENERIC
  307. #
  308. [env:STM32F4]
  309. platform = ststm32
  310. framework = arduino
  311. board = disco_f407vg
  312. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  313. lib_deps = ${common.lib_deps}
  314. lib_ignore = Adafruit NeoPixel, TMCStepper
  315. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
  316. monitor_speed = 250000
  317. #
  318. # STM32F7 with STM32GENERIC
  319. #
  320. [env:STM32F7]
  321. platform = ststm32
  322. framework = arduino
  323. board = remram_v1
  324. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  325. lib_deps = ${common.lib_deps}
  326. lib_ignore = Adafruit NeoPixel, TMCStepper
  327. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F4>
  328. monitor_speed = 250000
  329. #
  330. # ARMED (STM32)
  331. #
  332. [env:ARMED]
  333. platform = ststm32
  334. framework = arduino
  335. board = armed_v1
  336. build_flags = ${common.build_flags} -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  337. lib_deps = ${common.lib_deps}
  338. lib_ignore = Adafruit NeoPixel
  339. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  340. monitor_speed = 250000
  341. #
  342. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  343. #
  344. [env:STM32F103VE_longer]
  345. platform = ststm32
  346. framework = arduino
  347. board = genericSTM32F103VE
  348. monitor_speed = 250000
  349. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  350. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  351. ${common.build_flags} -std=gnu++14 -USERIAL_USB
  352. -DSTM32F1xx -DU20 -DTS_V12
  353. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  354. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  355. lib_deps = ${common.lib_deps}
  356. lib_ignore = Adafruit NeoPixel, LiquidTWI2, SPI
  357. #
  358. # MKS Robin (STM32F103ZET6)
  359. #
  360. [env:mks_robin]
  361. platform = ststm32
  362. framework = arduino
  363. board = genericSTM32F103ZE
  364. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  365. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  366. ${common.build_flags} -std=gnu++14
  367. build_unflags = -std=gnu++11
  368. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  369. lib_deps = ${common.lib_deps}
  370. lib_ignore = Adafruit NeoPixel, SPI
  371. #
  372. # MKS ROBIN LITE/LITE2 (STM32F103RCT6)
  373. #
  374. [env:mks_robin_lite]
  375. platform = ststm32
  376. framework = arduino
  377. board = genericSTM32F103RC
  378. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  379. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  380. ${common.build_flags} -std=gnu++14
  381. build_unflags = -std=gnu++11
  382. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  383. lib_deps = ${common.lib_deps}
  384. lib_ignore = Adafruit NeoPixel, SPI
  385. #
  386. # MKS Robin Mini (STM32F103VET6)
  387. #
  388. [env:mks_robin_mini]
  389. platform = ststm32
  390. framework = arduino
  391. board = genericSTM32F103VE
  392. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  393. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  394. ${common.build_flags} -std=gnu++14
  395. build_unflags = -std=gnu++11
  396. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  397. lib_deps = ${common.lib_deps}
  398. lib_ignore = Adafruit NeoPixel, SPI
  399. #
  400. # MKS Robin Nano (STM32F103VET6)
  401. #
  402. [env:mks_robin_nano]
  403. platform = ststm32
  404. framework = arduino
  405. board = genericSTM32F103VE
  406. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  407. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  408. ${common.build_flags} -std=gnu++14
  409. build_unflags = -std=gnu++11
  410. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  411. lib_deps = ${common.lib_deps}
  412. lib_ignore = Adafruit NeoPixel, SPI
  413. #
  414. # JGAurora A5S A1 (STM32F103ZET6)
  415. #
  416. [env:jgaurora_a5s_a1]
  417. platform = ststm32
  418. framework = arduino
  419. board = genericSTM32F103ZE
  420. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  421. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  422. ${common.build_flags} -DSTM32F1xx -std=gnu++14
  423. build_unflags = -std=gnu++11
  424. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  425. lib_deps = ${common.lib_deps}
  426. lib_ignore = Adafruit NeoPixel, SPI
  427. monitor_speed = 250000
  428. #
  429. # STM32F407VET6 with RAMPS-like shield
  430. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  431. # Shield - https://github.com/jmz52/Hardware
  432. #
  433. [env:STM32F407VE_black]
  434. platform = ststm32@5.4.3
  435. framework = arduino
  436. board = blackSTM32F407VET6
  437. extra_scripts = pre:buildroot/share/PlatformIO/scripts/black_stm32f407vet6.py
  438. build_flags = ${common.build_flags}
  439. -DSTM32F4 -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  440. lib_deps = ${common.lib_deps}
  441. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  442. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  443. monitor_speed = 250000
  444. #
  445. # Bigtreetech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  446. #
  447. [env:BIGTREE_SKR_PRO]
  448. platform = ststm32
  449. framework = arduino
  450. board = BigTree_SKR_Pro
  451. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  452. build_flags = ${common.build_flags}
  453. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  454. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000 -DHAVE_HWSERIAL6
  455. lib_deps =
  456. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  457. LiquidCrystal@1.3.4
  458. TMCStepper@>=0.5.0,<1.0.0
  459. Adafruit NeoPixel
  460. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  461. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  462. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  463. monitor_speed = 250000
  464. #
  465. # BIGTREE_SKR_BTT002 (STM32F407VET6 ARM Cortex-M4)
  466. #
  467. [env:BIGTREE_BTT002]
  468. platform = ststm32
  469. framework = arduino
  470. board = BigTree_Btt002
  471. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  472. build_flags = ${common.build_flags}
  473. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
  474. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  475. -DHAVE_HWSERIAL2
  476. -DHAVE_HWSERIAL3
  477. -DPIN_SERIAL2_RX=PD_6
  478. -DPIN_SERIAL2_TX=PD_5
  479. lib_deps = ${common.lib_deps}
  480. lib_ignore = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  481. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  482. monitor_speed = 250000
  483. #
  484. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  485. #
  486. [env:teensy31]
  487. platform = teensy
  488. framework = arduino
  489. board = teensy31
  490. build_flags = ${common.build_flags}
  491. lib_deps = ${common.lib_deps}
  492. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  493. lib_ignore = Adafruit NeoPixel
  494. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY31_32>
  495. monitor_speed = 250000
  496. #
  497. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  498. #
  499. [env:teensy35]
  500. platform = teensy
  501. framework = arduino
  502. board = teensy35
  503. build_flags = ${common.build_flags}
  504. lib_deps = ${common.lib_deps}
  505. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  506. lib_ignore = Adafruit NeoPixel
  507. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  508. monitor_speed = 250000
  509. #
  510. # Malyan M200 (STM32F103CB)
  511. #
  512. [env:STM32F103CB_malyan]
  513. platform = ststm32
  514. framework = arduino
  515. board = malyanM200
  516. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  517. -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  518. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  519. #-<frameworks>
  520. lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SPI
  521. #
  522. # Espressif ESP32
  523. #
  524. [env:esp32]
  525. platform = espressif32
  526. board = esp32dev
  527. framework = arduino
  528. upload_speed = 115200
  529. monitor_speed = 115200
  530. upload_port = /dev/ttyUSB0
  531. lib_deps =
  532. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  533. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  534. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
  535. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  536. #
  537. # FYSETC F6 V1.3
  538. #
  539. [env:fysetc_f6_13]
  540. platform = atmelavr
  541. framework = arduino
  542. board = fysetc_f6_13
  543. build_flags = ${common.build_flags}
  544. board_build.f_cpu = 16000000L
  545. lib_deps = ${common.lib_deps}
  546. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  547. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  548. monitor_speed = 250000
  549. #
  550. # Native
  551. # No supported Arduino libraries, base Marlin only
  552. #
  553. [env:linux_native]
  554. platform = native
  555. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  556. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  557. build_unflags = -Wall
  558. lib_ldf_mode = off
  559. lib_deps =
  560. extra_scripts =
  561. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
  562. #
  563. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  564. #
  565. [env:SAMD51_grandcentral_m4]
  566. platform = atmelsam
  567. board = adafruit_grandcentral_m4
  568. framework = arduino
  569. build_flags = ${common.build_flags} -std=gnu++17
  570. extra_scripts = ${common.extra_scripts}
  571. build_unflags = -std=gnu++11
  572. lib_deps = ${common.lib_deps}
  573. src_filter = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
  574. debug_tool = jlink
  575. #
  576. # Just print the dependency tree
  577. #
  578. [env:include_tree]
  579. platform = atmelavr
  580. framework = arduino
  581. board = megaatmega2560
  582. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  583. lib_deps = ${common.lib_deps}
  584. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  585. src_filter = +<src/Marlin.cpp>