Witam,
próbuję ustawić ten programator (sprawdzony wcześniej pod XP) do pracy pod linuksem (ubuntu), zainstalowałem avrdude (oczywiście podałem ścieżkę do "mojego" /dev/...):
Stworzyłem plik:
w którym wpisałem coś takiego (oczywiście z "moimi" parametrami idVendor, idProduct i serial):
Mam takie potwierdzenie:
Ale już komenda:
Daje taki oto efekt:
Komenda:
kończy się takim komunikatem:
Wygląda na to, że nie znajduje właściwego portu USB. Poza avrdude i bibliotekami z nim powiązanymi nie instalowałem nic więcej. Próbowałem użyć tych poleceń jako root, skutek jest ten sam. Proszę o wsparcie.
próbuję ustawić ten programator (sprawdzony wcześniej pod XP) do pracy pod linuksem (ubuntu), zainstalowałem avrdude (oczywiście podałem ścieżkę do "mojego" /dev/...):
lsusb
udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/002/003)Stworzyłem plik:
sudo nano /etc/udev/rules.d/81-avr-programator.rulesw którym wpisałem coś takiego (oczywiście z "moimi" parametrami idVendor, idProduct i serial):
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df",
ATTRS{serial}=="0000:00:1d.0", MODE="0660", GROUP="users"
Mam takie potwierdzenie:
ls -l /dev/bus/usb/002/004
crw-rw---- 1 root users 189, 131 05-11 23:36 /dev/bus/usb/002/003
Ale już komenda:
avrdude -c stk500 -p m8 -B 100 -vDaje taki oto efekt:
avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:41:10
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/tom/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyS0
Using Programmer : stk500
Setting bit clk period : 100.0
avrdude: ser_open(): can't open device "/dev/ttyS0": Permission denied
avrdude done. Thank you.Komenda:
avrdude -c usbasp -p m8 -B 100 -vkończy się takim komunikatem:
avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:41:10
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/tom/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/parport0
Using Programmer : usbasp
Setting bit clk period : 100.0
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc
avrdude done. Thank you.Wygląda na to, że nie znajduje właściwego portu USB. Poza avrdude i bibliotekami z nim powiązanymi nie instalowałem nic więcej. Próbowałem użyć tych poleceń jako root, skutek jest ten sam. Proszę o wsparcie.