2016-07-03 13:33:24 +00:00
|
|
|
#
|
2018-05-19 22:43:06 +00:00
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
# For detailed documentation with EXAMPLES:
|
2016-07-03 13:33:24 +00:00
|
|
|
#
|
|
|
|
# http://docs.platformio.org/en/latest/projectconf.html
|
|
|
|
#
|
|
|
|
|
2018-05-19 22:43:06 +00:00
|
|
|
# Automatic targets - enable auto-uploading
|
|
|
|
# targets = upload
|
|
|
|
|
2017-12-20 05:59:19 +00:00
|
|
|
#
|
|
|
|
# By default platformio build will abort after 5 errors.
|
|
|
|
# Remove '-fmax-errors=5' from build_flags below to see all.
|
|
|
|
#
|
2016-07-03 13:33:24 +00:00
|
|
|
|
|
|
|
[platformio]
|
2018-05-27 04:29:27 +00:00
|
|
|
src_dir = Marlin
|
|
|
|
build_dir = .pioenvs
|
|
|
|
lib_dir = .piolib
|
2017-05-06 10:17:07 +00:00
|
|
|
libdeps_dir = .piolibdeps
|
2017-05-10 11:11:13 +00:00
|
|
|
env_default = megaatmega2560
|
2016-07-03 13:33:24 +00:00
|
|
|
|
2017-04-30 19:07:01 +00:00
|
|
|
[common]
|
2018-05-19 22:43:06 +00:00
|
|
|
build_flags = -fmax-errors=5
|
|
|
|
-g
|
|
|
|
-ggdb
|
2017-11-16 21:16:21 +00:00
|
|
|
lib_deps =
|
2018-05-19 22:43:06 +00:00
|
|
|
https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
|
|
|
|
LiquidCrystal_I2C@1.1.2
|
2017-11-16 21:16:21 +00:00
|
|
|
TMC2130Stepper
|
2018-05-19 22:43:06 +00:00
|
|
|
https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
|
|
|
|
Adafruit NeoPixel@1.1.3
|
|
|
|
https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
|
|
|
|
https://github.com/ameyer/Arduino-L6470/archive/master.zip
|
|
|
|
https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# #
|
|
|
|
# Unique Core Architectures #
|
|
|
|
# #
|
|
|
|
# Add a new "env" below if no #
|
|
|
|
# entry has values suitable to #
|
|
|
|
# build for a given board. #
|
|
|
|
# #
|
|
|
|
#################################
|
2017-04-30 19:07:01 +00:00
|
|
|
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
|
|
|
# ATmega2560
|
|
|
|
#
|
2017-05-09 16:28:39 +00:00
|
|
|
[env:megaatmega2560]
|
2018-05-27 04:29:27 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = megaatmega2560
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
board_build.f_cpu = 16000000L
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2016-07-03 13:33:24 +00:00
|
|
|
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
|
|
|
# ATmega1280
|
|
|
|
#
|
2017-05-09 16:28:39 +00:00
|
|
|
[env:megaatmega1280]
|
2018-05-27 04:29:27 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = megaatmega1280
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
board_build.f_cpu = 16000000L
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2016-07-03 13:33:24 +00:00
|
|
|
|
2018-05-19 22:43:06 +00:00
|
|
|
#
|
|
|
|
# AT90USB1286 boards using CDC bootloader
|
|
|
|
# - BRAINWAVE
|
|
|
|
# - BRAINWAVE_PRO
|
|
|
|
# - SAV_MKI
|
|
|
|
# - TEENSYLU
|
|
|
|
#
|
|
|
|
[env:at90USB1286_CDC]
|
|
|
|
platform = teensy
|
|
|
|
framework = arduino
|
|
|
|
board = at90USB1286
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
lib_ldf_mode = deep+
|
|
|
|
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
|
|
|
|
|
|
|
|
#
|
|
|
|
# AT90USB1286 boards using DFU bootloader
|
|
|
|
# - PrintrBoard
|
|
|
|
# - PrintrBoard Rev.F
|
|
|
|
# - ? 5DPRINT ?
|
|
|
|
#
|
|
|
|
[env:at90USB1286_DFU]
|
|
|
|
platform = teensy
|
|
|
|
framework = arduino
|
|
|
|
board = at90USB1286
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
lib_ldf_mode = deep+
|
|
|
|
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
|
2018-03-01 09:05:27 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Melzi and clones (ATmega1284p)
|
|
|
|
#
|
|
|
|
[env:melzi]
|
2018-05-19 22:43:06 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = sanguino_atmega1284p
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
upload_speed = 57600
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2018-03-01 09:05:27 +00:00
|
|
|
|
|
|
|
#
|
2018-05-19 22:43:06 +00:00
|
|
|
# Melzi and clones (Optiboot bootloader)
|
2018-03-01 09:05:27 +00:00
|
|
|
#
|
|
|
|
[env:melzi_optiboot]
|
2018-05-19 22:43:06 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = sanguino_atmega1284p
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
upload_speed = 115200
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2018-03-01 09:05:27 +00:00
|
|
|
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
|
|
|
# RAMBo
|
|
|
|
#
|
2016-08-19 11:11:23 +00:00
|
|
|
[env:rambo]
|
2018-05-27 04:29:27 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = reprap_rambo
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
board_build.f_cpu = 16000000L
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2017-08-13 10:55:11 +00:00
|
|
|
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
2018-03-01 09:05:27 +00:00
|
|
|
# Sanguinololu (ATmega644p)
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
2018-03-01 09:05:27 +00:00
|
|
|
[env:sanguino_atmega644p]
|
2018-05-19 22:43:06 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = sanguino_atmega644p
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2017-08-20 01:04:41 +00:00
|
|
|
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
2018-03-01 09:05:27 +00:00
|
|
|
# Sanguinololu (ATmega1284p)
|
2018-02-10 21:49:39 +00:00
|
|
|
#
|
2018-03-01 09:05:27 +00:00
|
|
|
[env:sanguino_atmega1284p]
|
2018-05-19 22:43:06 +00:00
|
|
|
platform = atmelavr
|
|
|
|
framework = arduino
|
|
|
|
board = sanguino_atmega1284p
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2018-04-28 16:30:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Teensy++ 2.0
|
|
|
|
#
|
|
|
|
[env:teensy20]
|
2018-05-27 04:29:27 +00:00
|
|
|
platform = teensy
|
|
|
|
framework = arduino
|
|
|
|
board = teensy20pp
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
#board_build.f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
lib_ldf_mode = deep+
|
|
|
|
monitor_speed = 250000
|