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

464 Comments

  1. Pass this along to colleagues if the topic comes up, the framing here is sensible, and a stop at trendgallery adds more useful angles to share, the kind of content that improves conversations rather than just feeding them is what makes a resource genuinely valuable in professional contexts going forward over time and across project boundaries too.

  2. Now feeling something close to gratitude for the fact this site exists, and a look at quantumharbor extended that gratitude, the rare site that produces this kind of response is the rare site worth defending in conversations about whether the modern internet is still capable of producing genuinely valuable independent content for serious adults.

  3. Clean writing, easy to read, and never tries too hard to impress, that combination is harder to find than people think, and after my time on buildclearoutcomes I am sure this site treats its readers well, no flashy tricks just useful content done right which is honestly all I want online.

  4. Useful information presented in a way that does not feel like a sales pitch, that is what I appreciated most, and a stop at nexoravision was the same, no upsell and no fake urgency just steady content laid out properly for someone trying to actually learn from it rather than just be sold to.

  5. Davidfex Davidfex

    Если ребёнок мечтает заговорить свободно, обратите внимание на лагерь с изучением английского. Здесь уроки органично вплетены в активный отдых: спорт, творчество, экскурсии. Языковая среда работает естественно, и результат заметен уже после первой смены.

  6. Now setting up a small reminder to revisit the site on a slow day, and a stop at mysticvoyage confirmed the reminder was a good idea, planning return visits is a small organisational act that signals trust in ongoing quality and this site has earned that planned return through consistent performance across the pieces I have read so far.

  7. A piece that ended with a clean landing rather than fading out, and a look at claritysimplifiesprogress maintained the same crisp conclusions, endings that resolve rather than dissolve are a sign of careful structural thinking and this site has clearly invested in how its pieces conclude rather than letting them simply run out of energy.

  8. Now thinking about how to apply some of this to a project I have been planning, and a look at silkstrandly added more material for the planning, content that connects to my actual creative work rather than just being interesting in the abstract is the kind that earns priority placement in my reading rotation consistently going forward.

  9. Worth saying that the post fit naturally into a rhythm of careful reading, and a stop at focusfirstapproach extended the same rhythm, content that pairs well with how I actually read rather than demanding a different mode is content well calibrated to its likely audience and this site has clearly thought about that consistently.

  10. Quiet confidence runs through the whole post, no need to shout to make the points stick, and a stop at growththroughdesign carried that same restrained voice forward, content that respects the reader by trusting its own substance rather than dressing it up in theatrical language is what I look for online and rarely actually find these days.

  11. Liked the way the post balanced confidence and humility, and a stop at actionplanner maintained the same balance, knowing when to assert and when to acknowledge uncertainty is a sign of mature thinking and the writers here have clearly developed that calibration through what I assume is years of careful work on their craft.

  12. Reading this site over the past week has changed how I evaluate content in this space, and a look at progressframework extended that recalibration, the standards I bring to reading on the topic have shifted upward as a direct result of regular exposure to this kind of work and that shift will outlast any single reading session.

  13. I like the valuable information you provide in your articles. I will bookmark your weblog and check once more right here regularly. I am relatively certain I will learn many new stuff right here! Good luck for the next!

  14. [url=https://888starzs6.com]star888[/url] هو موقع للمراهنات والألعاب الإلكترونية يقدم خدمات تسجيل الدخول والدعم بلغات متعددة.
    تجذب المنصة جمهورًا واسعًا بفضل تنوع ألعابها وخدماتها.

    القسم الثاني:
    تقدم 888starz مجموعات من الألعاب تشمل السلوتس والبث الحي والرياضات الافتراضية.

    القسم الثالث:
    تساعد هذه العروض في زيادة فرص اللعب بموارد إضافية.

    القسم الرابع:
    تولي 888starz اهتمامًا لحماية بيانات المستخدمين وسلامة المعاملات.

Leave a Reply

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