Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
simenpf
attinykurs
Commits
a33569ab
Commit
a33569ab
authored
Mar 06, 2017
by
magho
Browse files
added a half-working MakeFile for linux to Session1/Task1. More to come
parent
32d40949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Session1/Task1/Makefile
0 → 100644
View file @
a33569ab
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment