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

412 Comments

  1. Howdy would you mind sharing which blog platform you’re working with?

    I’m planning to start my own blog soon but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs and I’m looking for something unique.
    P.S Sorry for being off-topic but I had to ask!

  2. I have seen that rates for on-line degree experts tend to be a terrific value. For example a full 4-year college Degree in Communication with the University of Phoenix Online consists of Sixty credits at $515/credit or $30,900. Also American Intercontinental University Online provides a Bachelors of Business Administration with a whole program element of 180 units and a tariff of $30,560. Online learning has made having your certification been so cool because you can certainly earn the degree through the comfort of your abode and when you finish working. Thanks for all the other tips I have certainly learned from your website.

  3. Good post. I learn something more challenging on completely different blogs everyday. It would at all times be stimulating to read content material from different writers and follow a bit of one thing from their store. I?d choose to make use of some with the content material on my blog whether you don?t mind. Natually I?ll provide you with a link in your net blog. Thanks for sharing.

  4. I’ve learned quite a few important things as a result of your post. I would also like to state that there is a situation in which you will get a loan and do not need a cosigner such as a U.S. Student Aid Loan. However, if you are getting a loan through a standard creditor then you need to be prepared to have a cosigner ready to allow you to. The lenders are going to base any decision on the few aspects but the biggest will be your credit rating. There are some loan merchants that will as well look at your work history and make a decision based on this but in almost all cases it will depend on your report.

  5. I have been absent for a while, but now I remember why I used to love this site. Thank you, I?ll try and check back more frequently. How frequently you update your website?

  6. Looking for the Best Drive School of Motoring? Get expert driving lessons at best driving school for affordable and quality driving instruction.

  7. Honestly, I’ve searching for this exact trend and your take on 2026 embroidery are exactly what I needed.
    Appreciate the detail!

  8. Hello, Neat post. There’s an issue with your web site in web explorer, could test this? IE still is the marketplace leader and a huge component to other people will pass over your magnificent writing due to this problem.

  9. AndrewGrolf AndrewGrolf

    Do you love excitement? https://jerseysbeststore.com offers premium pre-match and live sports betting, as well as a legal online casino. Try your luck on modern slots, table games, or with live dealers. We guarantee complete data security, fair results, and 24/7 player support.

Leave a Reply

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