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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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. build_dir = .pioenvs
  18. lib_dir = .piolib
  19. libdeps_dir = .piolibdeps
  20. boards_dir = buildroot/share/PlatformIO/boards
  21. env_default = megaatmega2560
  22. [common]
  23. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  24. build_flags = -fmax-errors=5
  25. -g
  26. -ggdb
  27. lib_deps =
  28. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  29. LiquidCrystal@1.3.4
  30. TMCStepper@<1.0.0
  31. Adafruit NeoPixel@1.1.3
  32. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  33. https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  34. https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
  35. https://github.com/mikeshub/SailfishLCD.git
  36. https://github.com/mikeshub/SailfishRGB_LED.git
  37. https://github.com/mikeshub/SlowSoftI2CMaster.git
  38. #################################
  39. # #
  40. # Unique Core Architectures #
  41. # #
  42. # Add a new "env" below if no #
  43. # entry has values suitable to #
  44. # build for a given board. #
  45. # #
  46. #################################
  47. #
  48. # ATmega2560
  49. #
  50. [env:megaatmega2560]
  51. platform = atmelavr
  52. framework = arduino
  53. board = megaatmega2560
  54. build_flags = ${common.build_flags}
  55. board_build.f_cpu = 16000000L
  56. lib_deps = ${common.lib_deps}
  57. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  58. monitor_speed = 250000
  59. #
  60. # ATmega1280
  61. #
  62. [env:megaatmega1280]
  63. platform = atmelavr
  64. framework = arduino
  65. board = megaatmega1280
  66. build_flags = ${common.build_flags}
  67. board_build.f_cpu = 16000000L
  68. lib_deps = ${common.lib_deps}
  69. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  70. monitor_speed = 250000
  71. #
  72. # AT90USB1286 boards using CDC bootloader
  73. # - BRAINWAVE
  74. # - BRAINWAVE_PRO
  75. # - SAV_MKI
  76. # - TEENSYLU
  77. #
  78. [env:at90usb1286_cdc]
  79. platform = teensy
  80. framework = arduino
  81. board = at90usb1286
  82. build_flags = ${common.build_flags}
  83. lib_deps = ${common.lib_deps}
  84. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  85. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  86. monitor_speed = 250000
  87. #
  88. # AT90USB1286 boards using DFU bootloader
  89. # - PrintrBoard
  90. # - PrintrBoard Rev.F
  91. # - ? 5DPRINT ?
  92. #
  93. [env:at90usb1286_dfu]
  94. platform = teensy
  95. framework = arduino
  96. board = at90usb1286
  97. build_flags = ${common.build_flags}
  98. lib_deps = ${common.lib_deps}
  99. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  100. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  101. monitor_speed = 250000
  102. #
  103. # Due (Atmel SAM3X8E ARM Cortex-M3)
  104. #
  105. # - RAMPS4DUE
  106. # - RADDS
  107. #
  108. [env:DUE]
  109. platform = atmelsam
  110. framework = arduino
  111. board = due
  112. build_flags = ${common.build_flags}
  113. lib_deps = ${common.lib_deps}
  114. lib_ignore = c1921b4
  115. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  116. monitor_speed = 250000
  117. [env:DUE_USB]
  118. platform = atmelsam
  119. framework = arduino
  120. board = dueUSB
  121. build_flags = ${common.build_flags}
  122. lib_deps = ${common.lib_deps}
  123. lib_ignore = c1921b4
  124. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  125. monitor_speed = 250000
  126. [env:DUE_debug]
  127. # Used when WATCHDOG_RESET_MANUAL is enabled
  128. platform = atmelsam
  129. framework = arduino
  130. board = due
  131. build_flags = ${common.build_flags}
  132. -funwind-tables
  133. -mpoke-function-name
  134. lib_deps = ${common.lib_deps}
  135. lib_ignore = c1921b4
  136. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  137. monitor_speed = 250000
  138. #
  139. # NXP LPC176x ARM Cortex-M3
  140. #
  141. [env:LPC1768]
  142. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  143. framework = arduino
  144. board = nxp_lpc1768
  145. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  146. # debug options for backtrace
  147. # -funwind-tables
  148. # -mpoke-function-name
  149. lib_ldf_mode = off
  150. lib_compat_mode = strict
  151. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  152. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  153. monitor_speed = 250000
  154. lib_deps = Servo
  155. LiquidCrystal
  156. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  157. TMCStepper@<1.0.0
  158. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  159. [env:LPC1769]
  160. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  161. framework = arduino
  162. board = nxp_lpc1769
  163. build_flags = -DTARGET_LPC1768 -DLPC1769 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  164. # debug options for backtrace
  165. # -funwind-tables
  166. # -mpoke-function-name
  167. lib_ldf_mode = off
  168. lib_compat_mode = strict
  169. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  170. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  171. monitor_speed = 250000
  172. lib_deps = Servo
  173. LiquidCrystal
  174. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  175. TMCStepper@<1.0.0
  176. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  177. #
  178. # Melzi and clones (ATmega1284p)
  179. #
  180. [env:melzi]
  181. platform = atmelavr
  182. framework = arduino
  183. board = sanguino_atmega1284p
  184. build_flags = ${common.build_flags}
  185. upload_speed = 57600
  186. lib_deps = ${common.lib_deps}
  187. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  188. monitor_speed = 250000
  189. #
  190. # Melzi and clones (Optiboot bootloader)
  191. #
  192. [env:melzi_optiboot]
  193. platform = atmelavr
  194. framework = arduino
  195. board = sanguino_atmega1284p
  196. build_flags = ${common.build_flags}
  197. upload_speed = 115200
  198. lib_deps = ${common.lib_deps}
  199. 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}
  244. lib_deps = ${common.lib_deps}
  245. lib_ignore = U8glib-HAL
  246. c1921b4
  247. libf3c
  248. lib066
  249. Adafruit NeoPixel_ID28
  250. Adafruit NeoPixel
  251. libf3e
  252. TMC26XStepper
  253. lib_ldf_mode = 1
  254. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  255. monitor_speed = 250000
  256. #
  257. # STM32F4
  258. #
  259. [env:STM32F4]
  260. platform = ststm32
  261. framework = arduino
  262. board = disco_f407vg
  263. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  264. lib_deps = ${common.lib_deps}
  265. lib_ignore = Adafruit NeoPixel, c1921b4, TMCStepper
  266. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
  267. monitor_speed = 250000
  268. #
  269. # ARMED (STM32)
  270. #
  271. [env:ARMED]
  272. platform = ststm32
  273. framework = arduino
  274. board = armed_v1
  275. 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
  276. lib_deps = ${common.lib_deps}
  277. lib_ignore = Adafruit NeoPixel, c1921b4
  278. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  279. monitor_speed = 250000
  280. #
  281. # MKS Robin (STM32F103ZET6)
  282. #
  283. [env:mks_robin]
  284. platform = ststm32@5.3.0
  285. framework = arduino
  286. board = genericSTM32F103ZE
  287. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  288. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  289. ${common.build_flags}
  290. -DSTM32_XL_DENSITY
  291. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  292. lib_deps = ${common.lib_deps}
  293. lib_ignore = c1921b4
  294. libf3c
  295. lib066
  296. Adafruit NeoPixel_ID28
  297. Adafruit NeoPixel
  298. libf3e
  299. TMC26XStepper
  300. U8glib-HAL
  301. #
  302. # STM32F407VET6 with RAMPS-like shield
  303. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  304. # Shield - https://github.com/jmz52/Hardware
  305. #
  306. [env:black_stm32f407ve]
  307. platform = ststm32
  308. framework = arduino
  309. board = blackSTM32F407VET6
  310. extra_scripts = pre:buildroot/share/PlatformIO/scripts/black_stm32f407vet6.py
  311. build_flags = ${common.build_flags}
  312. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  313. lib_deps = ${common.lib_deps}
  314. lib_ignore = Adafruit NeoPixel, c1921b4, TMCStepper, TMC26XStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  315. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  316. monitor_speed = 250000
  317. #
  318. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  319. #
  320. [env:teensy35]
  321. platform = teensy
  322. framework = arduino
  323. board = teensy35
  324. build_flags = ${common.build_flags}
  325. lib_deps = ${common.lib_deps}
  326. lib_ignore = Adafruit NeoPixel
  327. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  328. monitor_speed = 250000
  329. #
  330. # Malyan M200 (STM32F1)
  331. #
  332. [env:malyanm200]
  333. platform = ststm32
  334. framework = arduino
  335. board = malyanM200
  336. 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
  337. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  338. #-<frameworks>
  339. lib_ignore =
  340. U8glib
  341. LiquidCrystal_I2C
  342. LiquidCrystal
  343. NewliquidCrystal
  344. LiquidTWI2
  345. Adafruit NeoPixel
  346. TMCStepper
  347. Servo(STM32F1)
  348. TMC26XStepper
  349. U8glib-HAL
  350. c1921b4
  351. #
  352. # Espressif ESP32
  353. #
  354. [env:esp32]
  355. platform = https://github.com/platformio/platform-espressif32.git ; #feature/stage
  356. board = esp32dev
  357. framework = arduino
  358. upload_speed = 115200
  359. monitor_speed = 115200
  360. upload_port = /dev/ttyUSB0
  361. lib_deps =
  362. https://github.com/me-no-dev/AsyncTCP.git
  363. https://github.com/me-no-dev/ESPAsyncWebServer.git
  364. lib_ignore =
  365. LiquidCrystal_I2C
  366. LiquidCrystal
  367. NewliquidCrystal
  368. LiquidTWI2
  369. TMC26XStepper
  370. c1921b4
  371. SailfishLCD
  372. SailfishRGB_LED
  373. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  374. #
  375. # FYSETC F6 V1.3
  376. #
  377. [env:fysetc_f6_13]
  378. platform = atmelavr
  379. framework = arduino
  380. board = fysetc_f6_13
  381. build_flags = ${common.build_flags}
  382. board_build.f_cpu = 16000000L
  383. lib_deps = ${common.lib_deps}
  384. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  385. monitor_speed = 250000
  386. #
  387. # Native
  388. # No supported Arduino libraries, base Marlin only
  389. #
  390. [env:linux_native]
  391. platform = native
  392. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread
  393. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  394. build_unflags = -Wall
  395. lib_ldf_mode = off
  396. lib_deps =
  397. extra_scripts =
  398. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>