Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: fuh on May 06, 2011, 03:27 am

Title: USBTinyISP messed my UNO board !
Post by: fuh on May 06, 2011, 03:27 am
Hello,

Something wrong went USBTinyISP and messed up with my UNO board..

When I power the board NONE of the L, TX, RX LED blinks, only the ON LED stays ON; if I try to upload a sketch only the L and RX LED blinks, TX stays OFF and I get the error "avrdude: stk500_recv(): programmer is not responding".
If I change the uc to other one with the sketch blink, the sketch runs and L blinks; if I try to upload another sketch to the new chip I got the same behavior has before.. only L and RX blinks.

I updated the serial to USB using the DFU mode without errors.. but the problem isn't fixed. What can cause such behavior ? Thanks.

Maybe the fuses are messed up ?
Title: Re: USBTinyISP messed my UNO board !
Post by: frank26080115 on May 06, 2011, 07:10 am
using AVR programmer = probably erased the Arduino bootloader

that explains almost all of your symptoms
Title: Re: USBTinyISP messed my UNO board !
Post by: fuh on May 06, 2011, 12:41 pm
I tried to burn the boot loader again using the menu with USBTinyISP:
Code: [Select]
avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x00
avrdude: verification error; content mismatch


Right after I did the command again and avrdure said:
Code: [Select]
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


I think the USBTinyISP is completely broken..

If I try the sketch from westfw:
Code: [Select]

OptiFix Bootstrap programmer.
2011 by Bill Westfield (WestfW)

Starting Program Mode [OK]

Reading signature: Bad value: 0
  (no target attached?)

Type 'G' or hit RESET for next chip


I configured a duemilanove as an ISP, disabled reset and tried to burn the bootloader to UNO:
Code: [Select]
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.
Title: Re: USBTinyISP messed my UNO board !
Post by: fuh on May 06, 2011, 01:55 pm
OK, the board is good; I used the sparkfun tutorial (http://www.sparkfun.com/tutorials/247) option one and I was able to set the fuses and burn bootloader to ANOTHER 328 on the same board.

When I try the board's original 328.. no luck setting the fuses (even using the -F option):

Code: [Select]
avrdude: safemode read 3, efuse value: 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: efuse changed! Was 5, and is now 0
Would you like this fuse to be changed back? [y/n]


If I answer Y avrdude stays on this loop:

Code: [Select]
avrdude: Send: V [56] . [ac] . [a4] . [00] . [05]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [08] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]


What's wrong with the 328 uc ?
Title: Re: USBTinyISP messed my UNO board !
Post by: frank26080115 on May 06, 2011, 04:33 pm
almost everything you've said points to a chip that's not responding, check its ISP connection, its power source, and its clock

also if the clock fuses says to use a different clock type that you are not providing, or if you accidentally disabled reset or disabled SPI, it won't work
Title: Re: USBTinyISP messed my UNO board !
Post by: fuh on May 06, 2011, 05:26 pm
With my limited knowledge I agree with you about the uc not responding.
I don't touch connection, power and clock.. I just disconnect the power and exchange chips on the UNO board.

How can I revert the fuses back ?

-edit-
I tried the chip on the UNO board with different speeds: 14400, 9600, 4800.
The output from avrdude is always "avrdude: stk500_getsync(): not in sync: resp=0xff".
Title: Re: USBTinyISP messed my UNO board !
Post by: westfw on May 08, 2011, 08:51 am
One of the AVR Freaks regulars recently posted this tutorial on recovering from this sort of thing:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=106325