My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platformio.ini 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  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. build_flags = -fmax-errors=5
  22. -g
  23. -ggdb
  24. lib_deps =
  25. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  26. LiquidCrystal@1.3.4
  27. TMCStepper@<1.0.0
  28. Adafruit NeoPixel@1.1.3
  29. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  30. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  31. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.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. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  55. monitor_speed = 250000
  56. #
  57. # ATmega1280
  58. #
  59. [env:megaatmega1280]
  60. platform = atmelavr
  61. framework = arduino
  62. board = megaatmega1280
  63. build_flags = ${common.build_flags}
  64. board_build.f_cpu = 16000000L
  65. lib_deps = ${common.lib_deps}
  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. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  82. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  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. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  97. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  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. lib_ignore = TMC26XStepper
  112. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  113. monitor_speed = 250000
  114. [env:DUE_USB]
  115. platform = atmelsam
  116. framework = arduino
  117. board = dueUSB
  118. build_flags = ${common.build_flags}
  119. lib_deps = ${common.lib_deps}
  120. lib_ignore = TMC26XStepper
  121. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  122. monitor_speed = 250000
  123. [env:DUE_debug]
  124. # Used when WATCHDOG_RESET_MANUAL is enabled
  125. platform = atmelsam
  126. framework = arduino
  127. board = due
  128. build_flags = ${common.build_flags}
  129. -funwind-tables
  130. -mpoke-function-name
  131. lib_deps = ${common.lib_deps}
  132. lib_ignore = TMC26XStepper
  133. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  134. monitor_speed = 250000
  135. #
  136. # NXP LPC176x ARM Cortex-M3
  137. #
  138. [env:LPC1768]
  139. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  140. framework = arduino
  141. board = nxp_lpc1768
  142. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  143. # debug options for backtrace
  144. # -funwind-tables
  145. # -mpoke-function-name
  146. lib_ldf_mode = off
  147. lib_compat_mode = strict
  148. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  149. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  150. monitor_speed = 250000
  151. lib_deps = Servo
  152. LiquidCrystal
  153. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  154. TMCStepper@<1.0.0
  155. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  156. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  157. [env:LPC1769]
  158. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  159. framework = arduino
  160. board = nxp_lpc1769
  161. build_flags = -DTARGET_LPC1768 -DLPC1769 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  162. # debug options for backtrace
  163. # -funwind-tables
  164. # -mpoke-function-name
  165. lib_ldf_mode = off
  166. lib_compat_mode = strict
  167. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  168. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  169. monitor_speed = 250000
  170. lib_deps = Servo
  171. LiquidCrystal
  172. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  173. TMCStepper@<1.0.0
  174. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  175. #
  176. # Melzi and clones (ATmega1284p)
  177. #
  178. [env:melzi]
  179. platform = atmelavr
  180. framework = arduino
  181. board = sanguino_atmega1284p
  182. build_flags = ${common.build_flags} -fmerge-all-constants
  183. upload_speed = 57600
  184. lib_deps = ${common.lib_deps}
  185. lib_ignore = TMCStepper, TMC26XStepper
  186. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  187. monitor_speed = 250000
  188. #
  189. # Melzi and clones (Optiboot bootloader)
  190. #
  191. [env:melzi_optiboot]
  192. platform = atmelavr
  193. framework = arduino
  194. board = sanguino_atmega1284p
  195. build_flags = ${common.build_flags}
  196. upload_speed = 115200
  197. lib_deps = ${common.lib_deps}
  198. lib_ignore = TMCStepper, TMC26XStepper
  199. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  200. monitor_speed = 250000
  201. #
  202. # RAMBo
  203. #
  204. [env:rambo]
  205. platform = atmelavr
  206. framework = arduino
  207. board = reprap_rambo
  208. build_flags = ${common.build_flags}
  209. board_build.f_cpu = 16000000L
  210. lib_deps = ${common.lib_deps}
  211. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  212. monitor_speed = 250000
  213. #
  214. # Sanguinololu (ATmega644p)
  215. #
  216. [env:sanguino_atmega644p]
  217. platform = atmelavr
  218. framework = arduino
  219. board = sanguino_atmega644p
  220. build_flags = ${common.build_flags}
  221. lib_deps = ${common.lib_deps}
  222. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  223. monitor_speed = 250000
  224. #
  225. # Sanguinololu (ATmega1284p)
  226. #
  227. [env:sanguino_atmega1284p]
  228. platform = atmelavr
  229. framework = arduino
  230. board = sanguino_atmega1284p
  231. build_flags = ${common.build_flags}
  232. lib_deps = ${common.lib_deps}
  233. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  234. monitor_speed = 250000
  235. #
  236. # STM32F103RE
  237. #
  238. [env:STM32F1]
  239. platform = ststm32
  240. framework = arduino
  241. board = genericSTM32F103RE
  242. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.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 = U8glib-HAL
  248. TMC26XStepper
  249. libf3c
  250. lib066
  251. Adafruit NeoPixel_ID28
  252. Adafruit NeoPixel
  253. libf3e
  254. #lib_ldf_mode = chain
  255. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  256. monitor_speed = 250000
  257. #
  258. # fysetc_STM32F1
  259. #
  260. [env:fysetc_STM32F1]
  261. platform = ststm32
  262. framework = arduino
  263. board = genericSTM32F103RC
  264. extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
  265. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  266. ${common.build_flags} -std=gnu++14
  267. -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
  268. build_unflags = -std=gnu++11
  269. lib_deps = ${common.lib_deps}
  270. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  271. lib_ignore = TMC26XStepper
  272. libf3c
  273. lib066
  274. Adafruit NeoPixel_ID28
  275. Adafruit NeoPixel
  276. libf3e
  277. lib_ldf_mode = chain
  278. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  279. monitor_speed = 250000
  280. debug_tool = stlink
  281. upload_protocol = serial
  282. #
  283. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  284. #
  285. [env:BIGTREE_SKR_MINI]
  286. platform = ststm32
  287. framework = arduino
  288. board = genericSTM32F103RC
  289. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
  290. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  291. ${common.build_flags} -std=gnu++14
  292. -DDEBUG_LEVEL=0
  293. build_unflags = -std=gnu++11
  294. lib_deps = ${common.lib_deps}
  295. lib_ignore = TMC26XStepper
  296. libf3c
  297. lib066
  298. Adafruit NeoPixel_ID28
  299. Adafruit NeoPixel
  300. libf3e
  301. #lib_ldf_mode = chain
  302. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  303. monitor_speed = 115200
  304. upload_protocol = stlink
  305. debug_tool = stlink
  306. #
  307. # STM32F4 with STM32GENERIC
  308. #
  309. [env:STM32F4]
  310. platform = ststm32
  311. framework = arduino
  312. board = disco_f407vg
  313. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  314. lib_deps = ${common.lib_deps}
  315. lib_ignore = Adafruit NeoPixel, TMC26XStepper, TMCStepper
  316. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/*> +<src/HAL/HAL_STM32_F4_F7/STM32F4>
  317. monitor_speed = 250000
  318. #
  319. # STM32F7 with STM32GENERIC
  320. #
  321. [env:STM32F7]
  322. platform = ststm32
  323. framework = arduino
  324. board = disco_f765vg
  325. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  326. lib_deps = ${common.lib_deps}
  327. lib_ignore = Adafruit NeoPixel, TMC26XStepper, TMCStepper
  328. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/*> +<src/HAL/HAL_STM32_F4_F7/STM32F7>
  329. monitor_speed = 250000
  330. #
  331. # ARMED (STM32)
  332. #
  333. [env:ARMED]
  334. platform = ststm32
  335. framework = arduino
  336. board = armed_v1
  337. 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
  338. lib_deps = ${common.lib_deps}
  339. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  340. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  341. monitor_speed = 250000
  342. #
  343. # Alfawise U20 (STM32F103VET6)
  344. #
  345. [env:alfawise_U20]
  346. platform = ststm32
  347. framework = arduino
  348. board = genericSTM32F103VE
  349. monitor_speed = 250000
  350. extra_scripts = buildroot/share/PlatformIO/scripts/alfawise_Ux0.py
  351. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  352. ${common.build_flags} -std=gnu++14
  353. -DSTM32F1xx -DU20 -DTS_V12
  354. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
  355. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  356. lib_deps = ${common.lib_deps}
  357. lib_ignore = TMC26XStepper
  358. libf3c
  359. lib066
  360. Adafruit NeoPixel_ID28
  361. Adafruit NeoPixel
  362. libf3e
  363. #
  364. # MKS Robin (STM32F103ZET6)
  365. #
  366. [env:mks_robin]
  367. platform = ststm32
  368. framework = arduino
  369. board = genericSTM32F103ZE
  370. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  371. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  372. ${common.build_flags} -std=gnu++14
  373. build_unflags = -std=gnu++11
  374. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  375. lib_deps = ${common.lib_deps}
  376. lib_ignore = TMC26XStepper
  377. libf3c
  378. lib066
  379. Adafruit NeoPixel_ID28
  380. Adafruit NeoPixel
  381. libf3e
  382. U8glib-HAL
  383. #
  384. # MKS ROBIN LITE/LITE2 (STM32F103RCT6)
  385. #
  386. [env:mks_robin_lite]
  387. platform = ststm32
  388. framework = arduino
  389. board = genericSTM32F103RC
  390. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  391. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  392. ${common.build_flags} -std=gnu++14
  393. build_unflags = -std=gnu++11
  394. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  395. lib_deps = ${common.lib_deps}
  396. lib_ignore = TMC26XStepper
  397. libf3c
  398. lib066
  399. Adafruit NeoPixel_ID28
  400. Adafruit NeoPixel
  401. libf3e
  402. #
  403. # MKS Robin Mini (STM32F103VET6)
  404. #
  405. [env:mks_robin_mini]
  406. platform = ststm32
  407. framework = arduino
  408. board = genericSTM32F103VE
  409. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  410. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  411. ${common.build_flags} -std=gnu++14
  412. build_unflags = -std=gnu++11
  413. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  414. lib_deps = ${common.lib_deps}
  415. lib_ignore = TMC26XStepper
  416. libf3c
  417. lib066
  418. Adafruit NeoPixel_ID28
  419. Adafruit NeoPixel
  420. libf3e
  421. #
  422. # MKS Robin Nano (STM32F103VET6)
  423. #
  424. [env:mks_robin_nano]
  425. platform = ststm32
  426. framework = arduino
  427. board = genericSTM32F103VE
  428. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  429. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  430. ${common.build_flags} -std=gnu++14
  431. build_unflags = -std=gnu++11
  432. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  433. lib_deps = ${common.lib_deps}
  434. lib_ignore = TMC26XStepper
  435. libf3c
  436. lib066
  437. Adafruit NeoPixel_ID28
  438. Adafruit NeoPixel
  439. libf3e
  440. #
  441. # JGAurora A5S A1 (STM32F103ZET6)
  442. #
  443. [env:jgaurora_a5s_a1]
  444. platform = ststm32
  445. framework = arduino
  446. board = genericSTM32F103ZE
  447. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  448. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  449. ${common.build_flags} -DSTM32F1xx -std=gnu++14
  450. build_unflags = -std=gnu++11
  451. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  452. lib_deps = ${common.lib_deps}
  453. lib_ignore = TMC26XStepper
  454. libf3c
  455. lib066
  456. Adafruit NeoPixel_ID28
  457. Adafruit NeoPixel
  458. libf3e
  459. monitor_speed = 250000
  460. #
  461. # STM32F407VET6 with RAMPS-like shield
  462. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  463. # Shield - https://github.com/jmz52/Hardware
  464. #
  465. [env:black_stm32f407ve]
  466. platform = ststm32@5.4.3
  467. framework = arduino
  468. board = blackSTM32F407VET6
  469. extra_scripts = pre:buildroot/share/PlatformIO/scripts/black_stm32f407vet6.py
  470. build_flags = ${common.build_flags}
  471. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  472. lib_deps = ${common.lib_deps}
  473. lib_ignore = Adafruit NeoPixel, TMC26XStepper, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  474. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  475. monitor_speed = 250000
  476. #
  477. # BIGTREE_SKR_PRO (STM32F407ZGT6 ARM Cortex-M4)
  478. #
  479. [env:BIGTREE_SKR_PRO]
  480. platform = ststm32@5.4.3
  481. framework = arduino
  482. board = BigTree_SKR_Pro
  483. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  484. build_flags = ${common.build_flags}
  485. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  486. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000 -DHAVE_HWSERIAL6
  487. lib_deps = ${common.lib_deps}
  488. lib_ignore = Adafruit NeoPixel, TMC26XStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  489. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  490. monitor_speed = 250000
  491. #
  492. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  493. #
  494. [env:teensy31]
  495. platform = teensy
  496. framework = arduino
  497. board = teensy31
  498. build_flags = ${common.build_flags}
  499. lib_deps = ${common.lib_deps}
  500. lib_ignore = Adafruit NeoPixel
  501. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY31_32>
  502. monitor_speed = 250000
  503. #
  504. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  505. #
  506. [env:teensy35]
  507. platform = teensy
  508. framework = arduino
  509. board = teensy35
  510. build_flags = ${common.build_flags}
  511. lib_deps = ${common.lib_deps}
  512. lib_ignore = Adafruit NeoPixel
  513. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  514. monitor_speed = 250000
  515. #
  516. # Malyan M200 (STM32F1)
  517. #
  518. [env:malyanm200]
  519. platform = ststm32
  520. framework = arduino
  521. board = malyanM200
  522. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  523. -DDEBUG_LEVEL=0
  524. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  525. #-<frameworks>
  526. lib_ignore = Adafruit NeoPixel
  527. U8glib
  528. LiquidCrystal_I2C
  529. LiquidCrystal
  530. NewliquidCrystal
  531. LiquidTWI2
  532. TMC26XStepper
  533. TMCStepper
  534. Servo(STM32F1)
  535. U8glib-HAL
  536. #
  537. # Espressif ESP32
  538. #
  539. [env:esp32]
  540. platform = espressif32
  541. board = esp32dev
  542. framework = arduino
  543. upload_speed = 115200
  544. monitor_speed = 115200
  545. upload_port = /dev/ttyUSB0
  546. lib_deps =
  547. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  548. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  549. lib_ignore = TMC26XStepper
  550. LiquidCrystal_I2C
  551. LiquidCrystal
  552. NewliquidCrystal
  553. LiquidTWI2
  554. SailfishLCD
  555. SailfishRGB_LED
  556. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  557. #
  558. # FYSETC F6 V1.3
  559. #
  560. [env:fysetc_f6_13]
  561. platform = atmelavr
  562. framework = arduino
  563. board = fysetc_f6_13
  564. build_flags = ${common.build_flags}
  565. board_build.f_cpu = 16000000L
  566. lib_deps = ${common.lib_deps}
  567. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  568. monitor_speed = 250000
  569. #
  570. # Native
  571. # No supported Arduino libraries, base Marlin only
  572. #
  573. [env:linux_native]
  574. platform = native
  575. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread
  576. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  577. build_unflags = -Wall
  578. lib_ldf_mode = off
  579. lib_deps =
  580. extra_scripts =
  581. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
  582. #
  583. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  584. #
  585. [env:adafruit_grandcentral_m4]
  586. platform = atmelsam
  587. board = adafruit_grandcentral_m4
  588. framework = arduino
  589. build_flags = ${common.build_flags} -std=gnu++17
  590. build_unflags = -std=gnu++11
  591. lib_deps = ${common.lib_deps}
  592. lib_ignore = U8glib-HAL, TMC26XStepper
  593. src_filter = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
  594. debug_tool = jlink