Skip to content

Programming atmega8u2 on Arduino Uno using USB Asp

Hello,

Recently my Arduino UNO stopped to be recognized by computer (using USB), I tried a few stuffs:

– Changed the Atmega328
– Rewrite bootloader
– Tested the controller on other board
– Measure the connection between a few pins using a multimeter

Nothing worked, so I decided to try to update the atmega8u2 firmware that is responsible to control de USB connection, I found two articles that I used as base:
Updating the Atmega8U2 on an Uno or Mega2560 using DFU e também How to upgrade atmega8u2 firmware

Both of them used solutions that needs to soldering a resistor on the board, but I don’t want to solder anything to the board, so I checked next to the atmega8u2 exists the ICSP pins, so I decided to try to burn the bootloader using them. Just to prevent other disaster I removed my atmega328 from board and connected the USB ASP to the ICSP pins. (Remember that the PIN 1 has a number or a little mark near it, mine had a small white circle)

After that, I accessed the dir that contains atmega8u2 hex of Arduino Uno (/arduino/hardware/arduino/firmware), and then I tried to rewrite the bootloader:

sudo avrdude -c usbasp -p m8 -u -U flash:w:UNO-dfu_and_usbserial_combined.hex

It didn’t worked because it is a atmega8u2 and I was trying to write it with atmega8 the error was:

avrdude: Yikes! Invalid device signature.

So I did a little more research and I discover that at90usb162 is almost the same, so I decided to take a shot with force (-F) option

sudo avrdude -c usbasp -p usb162 -u -U flash:w:UNO-dfu_and_usbserial_combined.hex -F

I waited it to burn, turn arduino uno off, connected my atmega328 and then turn it on and my USB just showed up on my computer, so now I can program my Arduino UNO using USB again.

Matheus

PS: Right after the booloader update I tried to Upload a Sketch to atmega328 without sucess, it was out of sync, so I tried to rewrite the bootloader of atmega328, and then everything started to work.

References:
http://8515.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=688637
http://image.pinout.net/pinout_10_pin_files/connector_pinout.php?image=avr_icsp.png&pinout=%20This%20a%20pinout%20of%20the%20AVR%20ICSP%20header.%20(6-pin%20&%2010-pin)

Published inArduino

108 Comments

  1. Fantastic site. Plenty of helpful info here. I am sending
    it to several pals ans additionally sharing in delicious.
    And obviously, thank you to your sweat!

  2. I am sure this piece of writing has touched all the internet users, its really really good piece of writing on building up new weblog.

  3. i enjoy reading your articles, it is simply amazing, you are doing great work, do you post often? i will be checking you out again for your next post. you can check out webdesignagenturnürnberg.de the best webdesign agency in nuremberg Germany

  4. bachelors in occupational therapy [url=https://otvetnow.ru]https://otvetnow.ru[/url] medical transcriptionist classes online

  5. I like what you guys tend to be up too. This kind of clever work and exposure! Keep up the awesome works guys I’ve included you guys to my personal blogroll.

  6. I love your blog.. very nice colors & theme. Did you create this website yourself? Plz reply back as I’m looking to create my own blog and would like to know wheere u got this from. thanks

  7. I’m not sure where you’re getting your information, but good topic.

    I needs to spend some time learning much more or understanding more.
    Thanks for wonderful information I was looking for this information for my mission.

  8. Hello this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding skills so I wanted to get advice from someone with experience.
    Any help would be greatly appreciated!

  9. I’m not sure why but this website is loading very slow for me.
    Is anyone else having this problem or is it a
    problem on my end? I’ll check back later
    on and see if the problem still exists.

  10. An interesting discussion is definitely worth comment.
    I believe that you need to publish more on this issue,
    it may not be a taboo matter but typically people don’t discuss these
    issues. To the next! All the best!!

  11. I’ve been surfing online more than 2 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all website owners and bloggers made good content as you did, the web will be much more useful than ever before.

  12. Wonderful paintings! That is the kind of information that are meant to be shared around the internet. Disgrace on the search engines for no longer positioning this post higher! Come on over and consult with my site . Thanks =)

  13. High quality Traffic Leads: One of many main advantages of SEARCH ENGINE MARKETING is that it helps to steer quality site visitors to your website than the PPC.

  14. Fantastic site you have here but I was curious about if you knew of any
    community forums that cover the same topics talked about in this
    article? I’d really like to be a part of community where I can get feed-back from other knowledgeable individuals that share
    the same interest. If you have any suggestions, please let me know.
    Bless you!

  15. Heya i’m for the first time here. I came across this board and I find It really helpful & it helped me out a lot. I hope to offer something again and aid others such as you helped me.

  16. magnificent post, very informative. I wonder why the other experts of this sector do not realize this.
    You must continue your writing. I am confident, you have a great readers’ base already!

  17. Sweet blog! I found it while searching on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?

    I’ve been trying for a while but I never seem to get there!
    Thanks

  18. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your
    weblog? My blog site is in the very same niche as yours and
    my visitors would genuinely benefit from a lot
    of the information you provide here. Please let me know if this ok with
    you. Regards!

Leave a Reply

Your email address will not be published. Required fields are marked *