Commit a33569ab authored by magho's avatar magho

added a half-working MakeFile for linux to Session1/Task1. More to come

parent 32d40949
# This is a Makefile for AVR KURS,
# attempting to provide support for compiling and flashing from Linux
# CHANGE THIS TO THE FOLDER YOU PUT YOUR DOWNLOADS IN
# The avr_toolchain and DFP folders should be put in the following defined folder
DOWNLOAD_DIR=/home/magne/avr/
# WHERE GET THIS?
# This toolchain package can be downloaded from Atmel:
# http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx
#
AVR8_TOOLS_DIR=$(DOWNLOAD_DIR)atmel_avr_toolchain/
# WHERE GET THIS?
# This DPF folder can be found in the
# Atmel ATtiny Series Device Support (1.2.112)
# AtPack downloaded from:
# http://packs.download.atmel.com/
#
# However, the AtPack must be unpacked by Atmel Studio (read: Windows.exe),
# so it is best transferred from a friend. [ INCLUDE A DOWNLOAD ON THE COURSE PAGE? ]
# In this case, the Attiny folder should be located somewhere like this:
# "C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\Attiny_DFP\1.2.112" ...
# ... after being unpacked by Atmel Studio.
#
DFP_DIR=$(DOWNLOAD_DIR)dfp/1.2.112/
# The important options for avr-gcc are
# -B directory for spec-file folder from DFP pcakage
# -I directory for includes from DFP package
# -mmcu device id
# -o output file [in HEX ??]
compile:
$(AVR8_TOOLS_DIR)bin/avr-gcc -B $(DFP_DIR)gcc/dev/attiny817 -I $(DFP_DIR)include -mmcu=attiny817 -Os -o task1.hex main.c
# and here make some rules for flashing through pyupdi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment