AVR Toolchain: Unterschied zwischen den Versionen

Aus Wiki CCC Göttingen
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „===Debian Unstable=== Needed programs for running the code under debian unstable: apt-get install avr-libc gcc-avr avrdude ===Udev Rules=== if you want to conne…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
===Debian Unstable===
==Debian Unstable===
Needed programs for running the code under debian unstable:
Needed programs for running the code under debian unstable:
  apt-get install avr-libc gcc-avr avrdude
  apt-get install avr-libc gcc-avr avrdude


===Udev Rules===
==Udev Rules==
if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev relad):
if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev relad):
  $ cat /etc/udev/rules.d/z99_atmel.rules  
  $ cat /etc/udev/rules.d/z99_atmel.rules  

Version vom 27. Dezember 2010, 16:38 Uhr

Debian Unstable=

Needed programs for running the code under debian unstable:

apt-get install avr-libc gcc-avr avrdude

Udev Rules

if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev relad):

$ cat /etc/udev/rules.d/z99_atmel.rules 
# Atmel AVR ISP mkII
SUBSYSTEM=="usb", SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2104", GROUP="plugdev", MODE="0660" 
# usbprog bootloader
ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c62", GROUP="plugdev", MODE="0660"
# USBasp programmer
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="plugdev", MODE="0660"
# USBtiny programmer
ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", GROUP="plugdev", MODE="0660"

(from http://www.mikrocontroller.net/articles/AVRDUDE#Aufruf_unter_Linux_als_user_.28non-root.29)