Pages: [1]   Go Down
Author Topic: Flash 16u2 chip that refuses to enter DFU mode  (Read 1283 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody,

Sorry I know this subject has already been discussed here, but I do not find any solution to my problem and i'm quite a rookie in firmwares updates.

I have 3 arduino UNO and 1 refuses to enter DFU mode when shortening the pin 5 and 6 of the header. The board resets but then it's still detected again as UNO and not as ATMEL ATMEGA16U2.

I imagine that the firmware inside the 16u2 chip could be flashed to restore an original "UNO-dfu_and_usbserial_combined.hex".

How can I do that without using DFU mode?

Is there a way to reprogram the chip using one of my spare arduino? and if so, what program to load within the spare arduino?

Thanks for your help

Michael.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Update it through the ICSP header, just as you would the ATmega328P but use the other connector.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot.
That's what I managed to do after looking at multiple tutorials using arduino as ISP. AVRDUDE is really tricky and from all the solutions I've found, non functioned exactly.
Here is the avrdude instructions that worked for me:

avrdude -P COM4 -b 9600 -c avrisp -p at90usb162 -U flash:w:UNO-dfu_and_serial_combined.hex

- I had to change the Serial.begin(9600) speed within arduino as ISP sketch
- using avrispmkii triggered an error: not in sync
- using usb instead of com port triggered an error

With this command, avrdude warned me about device signature error. I bypassed it using -F instruction.

The firmware was finally flashed.

BUT, once reconnected by USB, I had to reinstall the UNO driver but the board still refuses to enter dfu mode !...

At least I've learnt how to flash it smiley-wink
« Last Edit: February 18, 2013, 04:13:53 am by iznogoud320 » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you please explain me what exactly have you done to flash the 16u2, make like a tutorial. Where you put the "UNO-dfu_and_usbserial_combined.hex" file and what connections do you do. I have a similar problem and I would be glad if you would tell me
Logged

Pages: [1]   Go Up
Jump to: