Hello,
I'm programming a Attiny85 (Board: Attiny85 @ 8MHz, with Arduino as ISP). In Win XP sketch loads well, but the same sketch is not loaded in Linux Mint 17, And I get the message:
Done uploading
Avrdude: usbdev_open (): did not find any USB device "usb"
Do you know why this happens?
This is the source
const int LEDpin = 4;
void setup(){
pinMode(LEDpin, OUTPUT);
}
void loop(){
digitalWrite(LEDpin, 1);
delay(111);
digitalWrite(LEDpin, 0);
delay(111);
}
Check that you have chosen the correct port and if so, check that your permissions are open for you to use that port.
e.g. if the port is /dev/ttyUSB0 you would enter the following into the linux terminal: "sudo chmod 666 /dev/ttyUSB0"
You would need to re-enter this each time you restart your PC and if your programmer changes port each time it is plugged in, e.g. to /dev/ttyUSB1.
Another way to do this is to type "lsusb" in the terminal. The result will look something like this:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 03eb:2104 Atmel Corp. AVR ISP mkII
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
As you can see my programmer is on Bus 004 and Device 003.
Therefore I type the following in the terminal:
"sudo chmod 666 /dev/bus/usb/004/003"
For a more permanent fix try, "sudo usermod -a -G dialout curro" where "curro" is the username that you log into your PC.