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
Line 3: Line 3:
 
<source lang="bash">
 
<source lang="bash">
 
sudo apt-get install gcc-avr avr-libc avrdude
 
sudo apt-get install gcc-avr avr-libc avrdude
 +
</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>
 
</source>

Revision as of 17:49, 29 November 2012

Install the tools

On Ubuntu 12.04:

sudo apt-get install gcc-avr avr-libc avrdude

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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox