Avr-dev

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==Install the tools== On Ubuntu 12.04: <source lang="bash"> sudo apt-get install gcc-avr avr-libc avrdude </source>")
 
m
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
[[avr-gcc]]
 +
[[avrdude]]
 +
[[bus pirate]]
 +
[[atmega328p]]
 +
 
==Install the tools==
 
==Install the tools==
 
On Ubuntu 12.04:
 
On Ubuntu 12.04:
 
<source lang="bash">
 
<source lang="bash">
sudo apt-get install gcc-avr avr-libc avrdude
+
apt-get install gcc-avr avr-libc avrdude
 
</source>
 
</source>
 +
 +
===Setup the AVR JTACICE mkII===
 +
<source lang="bash">
 +
cat <<EOF >/etc/udev/avrisp.rules
 +
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
 +
 +
# Atmel Corp. JTAG ICE mkII
 +
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", MODE="660", GROUP="dialout"
 +
# Atmel Corp. AVRISP mkII
 +
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="dialout"
 +
# Atmel Corp. Dragon
 +
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", MODE="660", GROUP="dialout"
 +
 +
LABEL="avrisp_end"
 +
EOF
 +
chmod 511 /etc/udev/avrisp.rules
 +
ln -s ../avrisp.rules /etc/udev/rules.d/60-avrisp.rules
 +
</source>
 +
 +
==ISP Header==
 +
'''NOTE:''' the following colors are for use with a [[bus pirate]]
 +
{|
 +
|-
 +
|align="right" |miso
 +
|style="background:rgb(157,98,66);color:#FFF" width="18px" align="center"|1
 +
|width="10px" |
 +
|style="background:rgb(255,255,255);border:solid 1px #000;" width="18px" align="center"|2
 +
|vcc (3.3v)
 +
|-
 +
|align="right" |sck
 +
|style="background:rgb(255,250,47)" width="18px" align="center"|3
 +
|
 +
|style="background:rgb(254,156,24)" width="18px" align="center"|4
 +
|mosi
 +
|-
 +
|align="right" |reset
 +
|style="background:rgb(255,13,13);color:#FFF" width="18px" align="center"|5
 +
|
 +
|style="background:rgb(0,0,0);color:#FFF" width="18px" align="center"|6
 +
|gnd
 +
|}
 +
pin 2 can use 5v instead of 3.3v if your circuit is okay with that

Latest revision as of 19:17, 29 November 2012

avr-gcc avrdude bus pirate atmega328p

[edit] Install the tools

On Ubuntu 12.04:

apt-get install gcc-avr avr-libc avrdude

[edit] Setup the AVR JTACICE mkII

cat <<EOF >/etc/udev/avrisp.rules
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
 
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", MODE="660", GROUP="dialout"
 
LABEL="avrisp_end"
EOF
chmod 511 /etc/udev/avrisp.rules
ln -s ../avrisp.rules /etc/udev/rules.d/60-avrisp.rules

[edit] ISP Header

NOTE: the following colors are for use with a bus pirate

miso 1 2 vcc (3.3v)
sck 3 4 mosi
reset 5 6 gnd

pin 2 can use 5v instead of 3.3v if your circuit is okay with that

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox