My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

platformio.ini 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  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.2,<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/0.1.2.zip
  137. framework = arduino
  138. board = nxp_lpc1768
  139. build_flags = -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.6.1,<1.0.0
  152. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
  153. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  154. [env:LPC1769]
  155. extends = env:LPC1768
  156. board = nxp_lpc1769
  157. #
  158. # Sanguinololu (ATmega644p)
  159. #
  160. [env:sanguino_atmega644p]
  161. platform = atmelavr
  162. framework = arduino
  163. board = sanguino_atmega644p
  164. build_flags = ${common.build_flags}
  165. lib_deps = ${common.lib_deps}
  166. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  167. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  168. monitor_speed = 250000
  169. #
  170. # Sanguinololu (ATmega1284p)
  171. #
  172. [env:sanguino_atmega1284p]
  173. platform = atmelavr
  174. framework = arduino
  175. board = sanguino_atmega1284p
  176. build_flags = ${common.build_flags}
  177. lib_deps = ${common.lib_deps}
  178. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  179. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  180. monitor_speed = 250000
  181. #
  182. # Melzi and clones (ATmega1284p)
  183. #
  184. [env:melzi]
  185. platform = atmelavr
  186. framework = arduino
  187. board = sanguino_atmega1284p
  188. build_flags = ${common.build_flags} -fmerge-all-constants
  189. upload_speed = 57600
  190. lib_deps = ${common.lib_deps}
  191. lib_ignore = TMCStepper
  192. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  193. monitor_speed = 250000
  194. #
  195. # Melzi and clones (Optiboot bootloader)
  196. #
  197. [env:melzi_optiboot]
  198. platform = atmelavr
  199. framework = arduino
  200. board = sanguino_atmega1284p
  201. build_flags = ${common.build_flags}
  202. upload_speed = 115200
  203. lib_deps = ${common.lib_deps}
  204. lib_ignore = TMCStepper
  205. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  206. monitor_speed = 250000
  207. #
  208. # RAMBo
  209. #
  210. [env:rambo]
  211. platform = atmelavr
  212. framework = arduino
  213. board = reprap_rambo
  214. build_flags = ${common.build_flags}
  215. board_build.f_cpu = 16000000L
  216. lib_deps = ${common.lib_deps}
  217. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  218. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  219. monitor_speed = 250000
  220. #
  221. # STM32F103RE
  222. #
  223. [env:STM32F103RE]
  224. platform = ststm32
  225. framework = arduino
  226. board = genericSTM32F103RE
  227. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  228. ${common.build_flags} -std=gnu++14
  229. -DDEBUG_LEVEL=0
  230. build_unflags = -std=gnu++11
  231. lib_deps = ${common.lib_deps}
  232. lib_ignore = Adafruit NeoPixel, SPI
  233. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  234. monitor_speed = 250000
  235. debug_tool = stlink
  236. upload_protocol = stlink
  237. #
  238. # STM32F103RC_fysetc
  239. #
  240. [env:STM32F103RC_fysetc]
  241. platform = ststm32
  242. framework = arduino
  243. board = genericSTM32F103RC
  244. #board_build.core = maple
  245. platform_packages = tool-stm32duino
  246. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  247. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  248. ${common.build_flags} -std=gnu++14
  249. -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
  250. build_unflags = -std=gnu++11
  251. lib_deps = ${common.lib_deps}
  252. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  253. lib_ignore = Adafruit NeoPixel, SPI
  254. lib_ldf_mode = chain
  255. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  256. monitor_speed = 250000
  257. debug_tool = stlink
  258. upload_protocol = serial
  259. #
  260. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  261. #
  262. # STM32F103RC_bigtree .............. RCT6 with 256K
  263. # STM32F103RC_bigtree_NOUSB ........ RCT6 with 256K (no USB)
  264. # STM32F103RC_bigtree_512K.......... RCT6 with 512K
  265. # STM32F103RC_bigtree_512K_NOUSB ... RCT6 with 512K (no USB)
  266. # STM32F103RE_bigtree .............. RET6
  267. # STM32F103RE_bigtree_NOUSB ........ RET6 (no USB)
  268. #
  269. [env:STM32F103RC_bigtree]
  270. platform = ststm32
  271. framework = arduino
  272. board = genericSTM32F103RC
  273. platform_packages = tool-stm32duino
  274. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  275. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  276. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DUSE_USB_COMPOSITE -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=256
  277. build_unflags = -std=gnu++11
  278. lib_deps = ${common.lib_deps}
  279. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  280. lib_ignore = Adafruit NeoPixel, SPI
  281. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  282. monitor_speed = 115200
  283. [env:STM32F103RC_bigtree_NOUSB]
  284. platform = ststm32
  285. framework = arduino
  286. board = genericSTM32F103RC
  287. platform_packages = tool-stm32duino
  288. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  289. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  290. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
  291. build_unflags = -std=gnu++11
  292. lib_deps = ${common.lib_deps}
  293. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  294. lib_ignore = Adafruit NeoPixel, SPI
  295. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  296. monitor_speed = 115200
  297. [env:STM32F103RC_bigtree_512K]
  298. platform = ststm32
  299. framework = arduino
  300. board = genericSTM32F103RC
  301. board_upload.maximum_size=524288
  302. platform_packages = tool-stm32duino
  303. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  304. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  305. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DUSE_USB_COMPOSITE -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512
  306. build_unflags = -std=gnu++11
  307. lib_deps = ${common.lib_deps}
  308. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  309. lib_ignore = Adafruit NeoPixel, SPI
  310. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  311. monitor_speed = 115200
  312. [env:STM32F103RC_bigtree_512K_NOUSB]
  313. platform = ststm32
  314. framework = arduino
  315. board = genericSTM32F103RC
  316. board_upload.maximum_size=524288
  317. platform_packages = tool-stm32duino
  318. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  319. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  320. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512
  321. build_unflags = -std=gnu++11
  322. lib_deps = ${common.lib_deps}
  323. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  324. lib_ignore = Adafruit NeoPixel, SPI
  325. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  326. monitor_speed = 115200
  327. [env:STM32F103RE_bigtree]
  328. platform = ststm32
  329. framework = arduino
  330. board = genericSTM32F103RE
  331. board_upload.maximum_size=524288
  332. platform_packages = tool-stm32duino
  333. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  334. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  335. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DUSE_USB_COMPOSITE -DHAVE_SW_SERIAL -DSS_TIMER=4
  336. build_unflags = -std=gnu++11
  337. lib_deps = ${common.lib_deps}
  338. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  339. lib_ignore = Adafruit NeoPixel, SPI
  340. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  341. monitor_speed = 115200
  342. [env:STM32F103RE_bigtree_NOUSB]
  343. platform = ststm32
  344. framework = arduino
  345. board = genericSTM32F103RE
  346. board_upload.maximum_size=524288
  347. platform_packages = tool-stm32duino
  348. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  349. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  350. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
  351. build_unflags = -std=gnu++11
  352. lib_deps = ${common.lib_deps}
  353. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  354. lib_ignore = Adafruit NeoPixel, SPI
  355. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  356. monitor_speed = 115200
  357. #
  358. # STM32F4 with STM32GENERIC
  359. #
  360. [env:STM32F4]
  361. platform = ststm32
  362. framework = arduino
  363. board = disco_f407vg
  364. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  365. lib_deps = ${common.lib_deps}
  366. lib_ignore = Adafruit NeoPixel, TMCStepper
  367. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
  368. monitor_speed = 250000
  369. #
  370. # STM32F7 with STM32GENERIC
  371. #
  372. [env:STM32F7]
  373. platform = ststm32
  374. framework = arduino
  375. board = remram_v1
  376. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  377. lib_deps = ${common.lib_deps}
  378. lib_ignore = Adafruit NeoPixel, TMCStepper
  379. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F4>
  380. monitor_speed = 250000
  381. #
  382. # ARMED (STM32)
  383. #
  384. [env:ARMED]
  385. platform = ststm32@>=5.7.0
  386. framework = arduino
  387. board = armed_v1
  388. build_flags = ${common.build_flags}
  389. -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC
  390. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  391. -IMarlin/src/HAL/HAL_STM32
  392. lib_deps = ${common.lib_deps}
  393. lib_ignore = Adafruit NeoPixel, SoftwareSerial
  394. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  395. monitor_speed = 250000
  396. #
  397. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  398. #
  399. [env:STM32F103VE_longer]
  400. platform = ststm32
  401. framework = arduino
  402. board = genericSTM32F103VE
  403. monitor_speed = 250000
  404. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  405. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  406. ${common.build_flags} -std=gnu++14 -USERIAL_USB
  407. -DSTM32F1xx -DU20 -DTS_V12
  408. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  409. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  410. lib_deps = ${common.lib_deps}
  411. lib_ignore = Adafruit NeoPixel, LiquidTWI2, SPI
  412. #
  413. # MKS Robin (STM32F103ZET6)
  414. #
  415. [env:mks_robin]
  416. platform = ststm32
  417. framework = arduino
  418. board = genericSTM32F103ZE
  419. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  420. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  421. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY
  422. build_unflags = -std=gnu++11
  423. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  424. lib_deps = ${common.lib_deps}
  425. lib_ignore = Adafruit NeoPixel, SPI
  426. #
  427. # MKS ROBIN LITE/LITE2 (STM32F103RCT6)
  428. #
  429. [env:mks_robin_lite]
  430. platform = ststm32
  431. framework = arduino
  432. board = genericSTM32F103RC
  433. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  434. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  435. ${common.build_flags} -std=gnu++14
  436. build_unflags = -std=gnu++11
  437. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  438. lib_deps = ${common.lib_deps}
  439. lib_ignore = Adafruit NeoPixel, SPI
  440. #
  441. # MKS Robin Mini (STM32F103VET6)
  442. #
  443. [env:mks_robin_mini]
  444. platform = ststm32
  445. framework = arduino
  446. board = genericSTM32F103VE
  447. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  448. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  449. ${common.build_flags} -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 = Adafruit NeoPixel, SPI
  454. #
  455. # MKS Robin Nano (STM32F103VET6)
  456. #
  457. [env:mks_robin_nano]
  458. platform = ststm32
  459. framework = arduino
  460. board = genericSTM32F103VE
  461. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  462. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  463. ${common.build_flags} -std=gnu++14
  464. build_unflags = -std=gnu++11
  465. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  466. lib_deps = ${common.lib_deps}
  467. lib_ignore = Adafruit NeoPixel, SPI
  468. #
  469. # JGAurora A5S A1 (STM32F103ZET6)
  470. #
  471. [env:jgaurora_a5s_a1]
  472. platform = ststm32
  473. framework = arduino
  474. board = genericSTM32F103ZE
  475. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  476. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  477. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  478. build_unflags = -std=gnu++11
  479. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  480. lib_deps = ${common.lib_deps}
  481. lib_ignore = Adafruit NeoPixel, SPI
  482. monitor_speed = 250000
  483. #
  484. # STM32F407VET6 with RAMPS-like shield
  485. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  486. # Shield - https://github.com/jmz52/Hardware
  487. #
  488. [env:STM32F407VE_black]
  489. platform = ststm32@>=5.7.0
  490. framework = arduino
  491. platform_packages = framework-arduinoststm32@>=3.10700.191028
  492. board = blackSTM32F407VET6
  493. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  494. build_flags = ${common.build_flags}
  495. -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
  496. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  497. -IMarlin/src/HAL/HAL_STM32
  498. lib_deps = ${common.lib_deps}
  499. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
  500. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  501. monitor_speed = 250000
  502. #
  503. # Bigtreetech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  504. #
  505. [env:BIGTREE_SKR_PRO]
  506. platform = ststm32@>=5.7.0
  507. framework = arduino
  508. platform_packages = framework-arduinoststm32@>=3.10700.191028
  509. board = BigTree_SKR_Pro
  510. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  511. build_flags = ${common.build_flags}
  512. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  513. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  514. -DHAVE_HWSERIAL6
  515. -IMarlin/src/HAL/HAL_STM32
  516. lib_deps =
  517. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  518. LiquidCrystal
  519. TMCStepper@>=0.5.2,<1.0.0
  520. Adafruit NeoPixel
  521. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  522. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  523. lib_ignore = SoftwareSerial, SoftwareSerialM
  524. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  525. monitor_speed = 250000
  526. #
  527. # BIGTREE_SKR_BTT002 (STM32F407VET6 ARM Cortex-M4)
  528. #
  529. [env:BIGTREE_BTT002]
  530. platform = ststm32@5.6.0
  531. framework = arduino
  532. board = BigTree_Btt002
  533. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  534. build_flags = ${common.build_flags}
  535. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
  536. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  537. -DHAVE_HWSERIAL2
  538. -DHAVE_HWSERIAL3
  539. -DPIN_SERIAL2_RX=PD_6
  540. -DPIN_SERIAL2_TX=PD_5
  541. lib_deps = ${common.lib_deps}
  542. lib_ignore = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  543. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  544. monitor_speed = 250000
  545. #
  546. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  547. #
  548. [env:teensy31]
  549. platform = teensy
  550. framework = arduino
  551. board = teensy31
  552. build_flags = ${common.build_flags}
  553. lib_deps = ${common.lib_deps}
  554. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  555. lib_ignore = Adafruit NeoPixel
  556. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY31_32>
  557. monitor_speed = 250000
  558. #
  559. # Malyan M200 (STM32F103CB)
  560. #
  561. [env:STM32F103CB_malyan]
  562. platform = ststm32@>=5.7.0
  563. framework = arduino
  564. board = malyanM200
  565. 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
  566. -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  567. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  568. lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SPI
  569. #
  570. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  571. #
  572. [env:chitu_f103]
  573. platform = ststm32
  574. framework = arduino
  575. board = genericSTM32F103ZE
  576. extra_scripts = buildroot/share/PlatformIO/scripts/chitu_crypt.py
  577. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  578. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  579. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  580. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  581. lib_deps = ${common.lib_deps}
  582. lib_ignore = Adafruit NeoPixel
  583. #
  584. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  585. #
  586. [env:teensy35]
  587. platform = teensy
  588. framework = arduino
  589. board = teensy35
  590. build_flags = ${common.build_flags}
  591. lib_deps = ${common.lib_deps}
  592. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  593. lib_ignore = Adafruit NeoPixel
  594. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  595. monitor_speed = 250000
  596. #
  597. # Espressif ESP32
  598. #
  599. [env:esp32]
  600. platform = espressif32
  601. board = esp32dev
  602. framework = arduino
  603. upload_speed = 115200
  604. monitor_speed = 115200
  605. upload_port = /dev/ttyUSB0
  606. lib_deps =
  607. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  608. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  609. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
  610. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  611. #
  612. # FYSETC F6 V1.3
  613. #
  614. [env:fysetc_f6_13]
  615. platform = atmelavr
  616. framework = arduino
  617. board = fysetc_f6_13
  618. build_flags = ${common.build_flags}
  619. board_build.f_cpu = 16000000L
  620. lib_deps = ${common.lib_deps}
  621. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  622. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  623. monitor_speed = 250000
  624. #
  625. # Native
  626. # No supported Arduino libraries, base Marlin only
  627. #
  628. [env:linux_native]
  629. platform = native
  630. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  631. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  632. build_unflags = -Wall
  633. lib_ldf_mode = off
  634. lib_deps =
  635. extra_scripts =
  636. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
  637. #
  638. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  639. #
  640. [env:SAMD51_grandcentral_m4]
  641. platform = atmelsam
  642. board = adafruit_grandcentral_m4
  643. framework = arduino
  644. build_flags = ${common.build_flags} -std=gnu++17
  645. extra_scripts = ${common.extra_scripts}
  646. build_unflags = -std=gnu++11
  647. lib_deps = ${common.lib_deps}
  648. src_filter = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
  649. debug_tool = jlink
  650. #
  651. # Just print the dependency tree
  652. #
  653. [env:include_tree]
  654. platform = atmelavr
  655. framework = arduino
  656. board = megaatmega2560
  657. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  658. lib_deps = ${common.lib_deps}
  659. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  660. src_filter = +<src/Marlin.cpp>