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

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