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

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