USB avr programmer problem

programmerusb

I have this programmer. It works fine with their custom software and on windows. But when I try to use it on linux it shows errors. Its some kind of avr-doper clone I think. Don't know for sure.

I am running it into the hid mode. But i get this error

rick@Abigail:~$ sudo avrdude -F -t -c stk500v2 -p m16 -P /dev/hidraw0
avrdude: ser_open(): can't set attributes for device "/dev/hidraw0": Inappropriate ioctl for device

Any ideas what to do? I have also tried /dev/usb/hiddev0. But it still doesn't work. The manufacturer says I sure use robokitsusbprog, but that results in device not found. Any ideas? It also has a serial mode. But that shows this error

rick@Abigail:~$ sudo avrdude -F -t -c stk500v2 -p m16 -P /dev/serial/by-path/pci-0000\:00\:1d.0-usb-0\:1.3\:1.0
avrdude: stk500_2_ReceiveMessage(): timeout

Here is the demsg outputs for when I add the HID jumper

rick@Abigail:~$ dmesg | tail
[ 9246.117266] usb 2-1.3: new low speed USB device using ehci_hcd and address 9
[ 9246.297138] generic-usb 0003:20A7:0264.0005: hiddev0,hidraw0: USB HID v1.01 Device [Robokits Robokits USB Programmer] on usb-0000:00:1d.0-1.3/input0

And this is when I remove the HID jumper

rick@Abigail:~$ dmesg | tail
[ 9295.220180] usb 2-1.3: new low speed USB device using ehci_hcd and address 10
[ 9295.343748] usb 2-1.3: config 1 interface 1 altsetting 0 endpoint 0x1 is Bulk; changing to Interrupt
[ 9295.343758] usb 2-1.3: config 1 interface 1 altsetting 0 endpoint 0x81 is Bulk; changing to Interrupt
[ 9295.358656] cdc_acm 2-1.3:1.0: ttyACM0: USB ACM device

Also it does work in windows as an hid device

enter image description here

EDIT

I tried to run this on a 64bit machine with 32 bit Ubuntu 10.10 on it, it worked with that. Any guess why its not running on the native 64bit OS?

Best Answer

I ran into something similar. It looks like it's a bug triggered by some combination of the OS, libUSB (in avrdude), and LUFA (the USB code in the programmer). This link might help: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=99674&start=0