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.
More USB read errors
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 4
- Joined: Wed Nov 07, 2007 7:00 am
-
- Posts: 4
- Joined: Wed Nov 07, 2007 7:00 am
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?
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?
-
- Posts: 4
- Joined: Wed Nov 07, 2007 7:00 am
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
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
Please be positive and constructive with your questions and comments.