Hi,
I was using AVRs with WindowsXP. Now I have switched to Linux. I am unable to find Linux drivers for USBasp( The usb avr programmer). Have any one used USBasp on linux? I would be very thankful for help.
Thanks in advance.
Hi,
I was using AVRs with WindowsXP. Now I have switched to Linux. I am unable to find Linux drivers for USBasp( The usb avr programmer). Have any one used USBasp on linux? I would be very thankful for help.
Thanks in advance.
avrdude should be able to handle the programmer.
avrdude should be able to handle the programmer.
avinash@avinash-laptop:~$ avrdude LCDTest.hex -p ATMEGA32 -c usbasp avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc avinash@avinash-laptop:~$
This same thing happen in windows if no driver is installed or the programmer is not connected.
Isn't a driver needed under Linux ?
Specify the port.
How does one go about finding out what port USBASP is using?
What is the syntax for such a port specification?
Erm, my USBASP programmer had instructions which directed me to this site if I had an operating system other then windows:
http://www.obdev.at/products/avr...
unfortunately, it appears to be offline since the 11th of April, while they rename their products. Nice timing. Hopefully it will be up in a few days.
How does one go about finding out what port USBASP is using?
Hello Friends,
I finaly got the answer. You have to be root to use USBasp under Linux.
Hello Friends,I finaly got the answer. You have to be root to use USBasp under Linux.
There are ways around that.
Find out the hardware name for the device (ie: "/dev/usb/...") and then as root either chown or chgrp the permissions for the device. chgrp is the better way, just make sure you put your login name in the group that you assign the device. Note that the above fix will disappear once you shut down the computer if your Linux distro uses udev, which most do. So what you really need to do is to write a udev rule to set the device group permissions each time the device is plugged in.
The other way around this is to change the programmer applications permissions so that IT has root access to the system. This is a more dangerous way to do things though.
Thanks kscharf for your tips. I was looking for such solutions. It is better than login into root for such tasks.
Thanks again!
:D
I managed to get this to work on Ubuntu and OSX:
Find the directory that avrdude lives in:
$ type avrdude
Then change to that directory in a Terminal
$ cd /~avrdude_directory~/
then:
$ sudo chmod -s avrdude
I'm not sure exactly what this does to the permissions, but avrdude should be able to run its course now.
(I just tried this on my mate's Ubuntu 9.04 - and it didn't work... Any body got any ideas?)
This command I used to download the file project.hex:
$ avrdude -p m8 -c usbasp -P usb -U flash:w:project.hex
Good luck.