More USB read errors

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
abethebrewer
 
Posts: 4
Joined: Wed Nov 07, 2007 7:00 am

More USB read errors

Post by abethebrewer »

I was able to successfully get the USBtinyISP to talk to a attiny861, since then I haven't been so lucky.

I thought maybe I had zapped my chip with some static electricity, so I tried a different one... again no luck.

I have checked the connections from the cable socket to the legs of the chip, and they all seem sound. I double checked my wiring against the datasheets and schematics, and everything checks out.

I keep getting the following error when using avrdude:
"USB read error: expected 4, got -62"

Has anyone seen this? where do I continue from here? I'm completely new to electronics, so I was really excited the first time it actually said it communicated with the chip!

I am powering the chip from the programmer, and there are no other power sources involved at this point.

If anyone of legal drinking age near Chico, California, wants to come help, there is a free case of beer in it.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

what computer, os, etc are you using?

abethebrewer
 
Posts: 4
Joined: Wed Nov 07, 2007 7:00 am

Post by abethebrewer »

I'm using ubuntu linux, avrdude version 5.3.1, libusb version 0.1.12, and the chip is an attiny861. I am using the 10-pin connection.

Funny thing, it worked last night a few times, then gave me the same error. After the error the USBtinyISP's red LED stays lit, and I have to unplug it.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

can you check dmesg console? are there any ohci/uhci error messages?

abethebrewer
 
Posts: 4
Joined: Wed Nov 07, 2007 7:00 am

Post by abethebrewer »

I tried again tonight, and couldn't get the error to happen!

On a different subject, and perhaps out of the scope of this forum, I set the RSTDSBL fuse on a chip, because I am too lazy to supply power to that pin (and apparently too lazy to thoroughly read the datasheet) and now I need to High-voltage program the thing.

Is there more to high voltage programming than supplying 12V to the RESET pin? If not, could I make a modified circuit to supply a constant 12V to the pin and use to the USBtinyISP, just ignoring its RESET connection? If the power on RESET isn't always on during programming, maybe a circuit with the ISP's RESET controlling a transistor with 12V on it is the way to go?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

i think it may be a different programming protocol...? never done HV programming myself!

abethebrewer
 
Posts: 4
Joined: Wed Nov 07, 2007 7:00 am

Post by abethebrewer »

Sorry to open up an old thread, but I found the problem: I am using a laptop, and I get the error codes when it is plugged in, but not when running off the battery.

here is my dmesg:

[ 4645.043017] usb 4-1: new low speed USB device using ohci_hcd and address 6
[ 4645.140851] usb 4-1: configuration #1 chosen from 1 choice
[ 4649.437521] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd avrdude rqt 192 rq 7 len 4 ret -62
[ 4649.438404] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd avrdude rqt 192 rq 5 len 0 ret -62
[ 4649.439290] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd avrdude rqt 192 rq 5 len 0 ret -62
[ 4649.473821] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd avrdude rqt 192 rq 7 len 4 ret -62
[ 4649.474665] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd avrdude rqt 192 rq 6 len 0 ret -62

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

yeah not sure but laptops freak out more often with strange usb devices like this

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”