0

USBTinyISP v2 just stopped working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

USBTinyISP v2 just stopped working

by dean_ot on Wed May 26, 2021 9:09 pm

So this randomly happened to me and I have no idea where to go. I had been flashing some fuse bits to an ATTiny84 (only the lfuse removing the div by 8; -U lfuse:w:0xEA:m) and it worked fine. I was going to set the hfuse to the standard (something I do every time; -U hfuse:w:0xDF:m), but when I went to execute the avrdude cmd, I got the infamous "avrdude: initialization failed, rc=-1" issue. Same response when doing "avrdude -c usbtiny -p t84".

Never changed the setup, never had a pin come out.

I was working on my laptop when that happened. I had this happen once before, and reinstalling the ISP driver, WinAVR, and atmel studio (in that order) fixed the issue. Tried it again and no go. Moved to my desktop that had all the same things installed and still get that prompt. I also tried it on an ATMega328p that I know is good (just using avrdude -c usbtiny -p m328p) and still no dice.

I've tried "avrdude -v -v -v -c usbtiny -p m328p" and "avrdude -P usb -c usbtiny -p m328p".

I've tried every us port on both computer, each with 3 different USB cables. No idea how to move forward here. Any help is appreciated.

dean_ot
 
Posts: 2
Joined: Wed May 26, 2021 8:25 pm

Re: USBTinyISP v2 just stopped working

by mikeysklar on Thu May 27, 2021 3:18 pm

Any doubt about orientation on the connector when programming these last two chips?

Did the extra '-v' verbose debug args provide any clues?

Are you able to just read the fuses from a fresh chip?

I take you can verify that at least one of the USB cables you are using is a good data cable?

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: USBTinyISP v2 just stopped working

by dean_ot on Fri May 28, 2021 12:45 pm

mikeysklar wrote:Any doubt about orientation on the connector when programming these last two chips?

Did the extra '-v' verbose debug args provide any clues?

Are you able to just read the fuses from a fresh chip?

I take you can verify that at least one of the USB cables you are using is a good data cable?


Not worried about orientation, I've checked quite a bit. For sanity check I have included pictures of my setup. MISO = Green, SCK = Yellow, RST = Blue, GND = Black, MOSI = White, PWR = Red. One US cable is one that I've always used with it, one is a spare I keep in a bag, and the other is my printer cable that hasn't had any issues.
IMG_20210528_122330.png
Board View
IMG_20210528_122330.png (911.91 KiB) Viewed 980 times

IMG_20210528_122319.png
Connector View
IMG_20210528_122319.png (799.87 KiB) Viewed 980 times


I'm not a pro at discerning what avrdude outputs. This is the printout it gives me:
Capture.PNG
AVRdude output
Capture.PNG (52.46 KiB) Viewed 980 times

dean_ot
 
Posts: 2
Joined: Wed May 26, 2021 8:25 pm

Re: USBTinyISP v2 just stopped working

by mikeysklar on Fri May 28, 2021 2:48 pm

That large 40 pin DIL processor. That isn't a 328p. I though the largest through hole those come in are a 28-pin DIP. Am I wrong?

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.