2021-04-01 21:53:19 -05:00
|
|
|
#
|
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# #
|
|
|
|
# AVR Architecture #
|
|
|
|
# #
|
|
|
|
#################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# AVR (8-bit) Common Environment values
|
|
|
|
#
|
|
|
|
[common_avr8]
|
2022-01-02 23:27:22 -06:00
|
|
|
platform = atmelavr@~3.4
|
2021-04-12 17:39:22 -05:00
|
|
|
build_flags = ${common.build_flags} -Wl,--relax
|
2021-04-01 21:53:19 -05:00
|
|
|
board_build.f_cpu = 16000000L
|
2022-05-19 09:15:57 -05:00
|
|
|
build_src_filter = ${common.default_src_filter} +<src/HAL/AVR>
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# ATmega2560
|
|
|
|
#
|
|
|
|
[env:mega2560]
|
|
|
|
extends = common_avr8
|
|
|
|
board = megaatmega2560
|
|
|
|
|
|
|
|
#
|
|
|
|
# ATmega2560 with extended pins 70-85 defined
|
|
|
|
# BOARD_BQ_ZUM_MEGA_3D
|
|
|
|
# BOARD_ULTIMAIN_2
|
|
|
|
# BOARD_MIGHTYBOARD_REVE
|
|
|
|
# BOARD_EINSTART_S
|
|
|
|
#
|
|
|
|
[env:mega2560ext]
|
|
|
|
extends = env:mega2560
|
2021-04-27 04:49:21 -05:00
|
|
|
board_build.variant = MARLIN_MEGA_EXTENDED
|
2021-04-01 21:53:19 -05:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
2021-04-27 04:49:21 -05:00
|
|
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# ATmega1280
|
|
|
|
#
|
|
|
|
[env:mega1280]
|
|
|
|
extends = common_avr8
|
|
|
|
board = megaatmega1280
|
|
|
|
|
|
|
|
#
|
|
|
|
# MightyBoard AVR with extended pins
|
|
|
|
#
|
|
|
|
[mega_extended_optimized]
|
|
|
|
extends = common_avr8
|
2021-04-27 04:49:21 -05:00
|
|
|
board_build.variant = MARLIN_MEGA_EXTENDED
|
2021-07-14 19:44:51 -05:00
|
|
|
extra_scripts = ${env:mega2560ext.extra_scripts}
|
2021-04-01 21:53:19 -05:00
|
|
|
upload_speed = 57600
|
|
|
|
build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
|
|
|
|
|
|
|
|
#
|
|
|
|
# MightyBoard ATmega1280
|
|
|
|
#
|
|
|
|
[env:MightyBoard1280]
|
|
|
|
extends = mega_extended_optimized
|
|
|
|
board = megaatmega1280
|
|
|
|
|
|
|
|
#
|
|
|
|
# MightyBoard ATmega2560
|
|
|
|
#
|
|
|
|
[env:MightyBoard2560]
|
|
|
|
extends = mega_extended_optimized
|
|
|
|
board = megaatmega2560
|
|
|
|
|
|
|
|
#
|
|
|
|
# RAMBo
|
|
|
|
#
|
|
|
|
[env:rambo]
|
|
|
|
extends = common_avr8
|
|
|
|
board = reprap_rambo
|
|
|
|
|
|
|
|
#
|
|
|
|
# FYSETC F6 V1.3 / V1.4
|
|
|
|
#
|
|
|
|
[env:FYSETC_F6]
|
|
|
|
extends = common_avr8
|
2021-04-27 04:49:21 -05:00
|
|
|
board = fysetc_f6_13
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Sanguinololu (ATmega644p)
|
|
|
|
#
|
|
|
|
[env:sanguino644p]
|
|
|
|
extends = common_avr8
|
|
|
|
board = sanguino_atmega644p
|
|
|
|
|
|
|
|
#
|
|
|
|
# Sanguinololu (ATmega1284p)
|
|
|
|
#
|
|
|
|
[env:sanguino1284p]
|
|
|
|
extends = common_avr8
|
|
|
|
board = sanguino_atmega1284p
|
|
|
|
board_upload.maximum_size = 126976
|
|
|
|
|
|
|
|
#
|
|
|
|
# Sanguinololu (ATmega1284p stock bootloader with tuned flags)
|
|
|
|
#
|
|
|
|
|
|
|
|
[tuned_1284p]
|
|
|
|
build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
|
|
|
|
|
|
|
|
[env:sanguino1284p_optimized]
|
2022-01-01 23:46:55 -06:00
|
|
|
extends = env:sanguino1284p
|
2021-04-01 21:53:19 -05:00
|
|
|
build_flags = ${tuned_1284p.build_flags}
|
|
|
|
|
|
|
|
#
|
2022-01-01 23:46:55 -06:00
|
|
|
# Melzi and clones (ATmega1284p)
|
2021-04-01 21:53:19 -05:00
|
|
|
#
|
2022-01-01 23:46:55 -06:00
|
|
|
[env:melzi]
|
|
|
|
extends = env:sanguino1284p
|
|
|
|
upload_speed = 57600
|
|
|
|
|
2021-04-01 21:53:19 -05:00
|
|
|
[env:melzi_optimized]
|
2022-01-01 23:46:55 -06:00
|
|
|
extends = env:sanguino1284p_optimized
|
|
|
|
upload_speed = 57600
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Melzi and clones (Optiboot bootloader)
|
|
|
|
#
|
|
|
|
[env:melzi_optiboot]
|
|
|
|
extends = common_avr8
|
|
|
|
board = sanguino_atmega1284p
|
|
|
|
upload_speed = 115200
|
2021-08-25 18:05:06 -05:00
|
|
|
board_upload.maximum_size = 130048
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Melzi and clones (Zonestar Melzi2 with tuned flags)
|
|
|
|
#
|
|
|
|
[env:melzi_optiboot_optimized]
|
|
|
|
extends = env:melzi_optiboot
|
|
|
|
build_flags = ${tuned_1284p.build_flags}
|