USBASP not working on linux.
Device loads fine, however arduino IDE says it cant be found. Any ideas?
USBASP not working on linux.
Device loads fine, however arduino IDE says it cant be found. Any ideas?
See if this helps.
Copy and paste into a file named 99-USBasp.rules. Then copy the file to /etc/udev/rules.d.
# USBasp - USB programmer for Atmel AVR controllers
# 99-USBasp.rules
# Copy this file to /etc/udev/rules.d
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0666"
Thanks.
I did that, but still doesnt give me permissions to acess the device.
I also checked that I am a member of the plugdev group.
Any ideas?
Well that udev rule should give permission for everybody to access the device.
The group should be dialout, but it shouldn't make any difference.
Try avrdude from the command line. With the programmer hooked up to an Uno try the following.
avrdude -cusbasp -pm328p -Pusb
It should initialize the device and read the signature bytes.
Stuff to try?
It looks like you are using a linux package for the IDE. Try using the tarball from arduino.
The tarball will coexist with the package.
Are you using 1.5.x, try 1.0.5.
tf68:
Well that udev rule should give permission for everybody to access the device.The group should be dialout, but it shouldn't make any difference.
Try avrdude from the command line. With the programmer hooked up to an Uno try the following.
avrdude -cusbasp -pm328p -Pusb
It should initialize the device and read the signature bytes.
Stuff to try?
It looks like you are using a linux package for the IDE. Try using the tarball from arduino.The tarball will coexist with the package.
Are you using 1.5.x, try 1.0.5.
I added this to rules file:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="0x16c0", SYSFS{idProduct}=="0x05dc", MODE="0666"
#SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0660", GROUP="plugdev"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="usb", MODE="0666"
And its working now. I reckon its the first line with the 0x prefix thats is working, but I left both anyway.
Thanks
Yeah that udev came from the USBasp firmware release. I should have given it a closer look. I'm guessing you aren't a member of the "usb" group and that is why it didn't work. Anyway good you got it working.
Thanks, casemod, that made it work for me