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

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