Ir ao conteúdo

Programando atmega8u2 no Arduino Uno utilizando USB Asp

Olá,

Recentemente meu Arduino parou de ser reconhecido pelo computador. Realizei diversos testes:

– Troquei o Atmega328
– Regravei a bootloader
– Testei o controlador fora da placa
– Medi com o multimetro as conexões básicas para ver se fechava o circuito

Nada disso solucionou o problema e então decidi tentar programar o atmega8u2 que é responsável por controlar a conexão com a USB. Encontrei dois artigos principais os quais usei como base:
Atualizando o Atmega8U2 no Uno ou no Mega2560 usando DFU (Ingles) e também Como atualizar o firmware do atmega8u2 Updating the Atmega8U2 on an Uno or Mega2560 using DFU

Ambos utilizavam de soluções que era necessário soldar um resistor na placa, o que eu não queria fazer, então verifiquei que próximo ao atmega8u2 existem pinos de ICSP e imaginei que os mesmos servem para programar o atmega8u2. Decidi tentar, por garantia removi meu Atmega328 da placa. E conectei meu USB Asp seguindo os pinos da imagem, lembrando que o pino 1 possui uma marcação próxima no meu Arduino UNO uma pequena bolinha.

Após a conexão acessei o diretório que continha os hex do atmega8u2 do arduino Uno (/arduino/hardware/arduino/firmware/) e usei o comando:

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

O mesmo não aceitou dizendo que o identificador de ambos eram diferentes:

avrdude: Yikes! Invalid device signature.

voltei a pesquisar e descobri que o at90usb162 é compativel, então decidi arriscar e forçar a escrita com a opção

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

Esperei gravar, desliguei o arduino, conectei meu atmega328 e a conexão USB voltou a aparecer no computador, tornando assim possivel eu utilizar meu Arduino pela USB novamente.

Matheus

PS: Logo após regravar a bootloader meu atmega328 não sincronizava com a USB, então escrevi a bootloader do atmega328 pro arduino uno novamente e tudo funcionou perfeitamente.

Referencias:
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)

Publicado emArduino

593 Comentários

  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 اهتمامًا لحماية بيانات المستخدمين وسلامة المعاملات.

  15. Felt the post handled a sensitive angle of the topic with appropriate care, and a look at growthacceleratesforward extended that careful handling across related material, sites that can navigate delicate territory without causing damage are rare and require a level of judgement that comes from experience rather than from following any clear playbook.

  16. Taking the time to read carefully here has been worthwhile for the past hour, and a look at ideasunlockmovement extended the worthwhile reading, the calculation of return on reading time spent is something I do informally and this site has been producing positive returns across multiple sessions during the last week of regular visits and reads.

  17. Adding this to my list of go to references for the topic, and a stop at factvoyager confirmed the rest of the site deserves the same, definitely the kind of resource that earns its place rather than getting forgotten the moment the next interesting article shows up in my feed somewhere else on the web.

  18. RichardTress RichardTress

    Вывод из запоя на дому в Казани удобен, когда близкий человек не готов ехать в клинику, плохо переносит дорогу или находится в состоянии сильной слабости. Врач приезжает на дому, сохраняет анонимность, спокойно объясняет процесс и начинает лечение только после осмотра и согласия пациента. Вызов врача на дому особенно важен, если муж, отец, брат, мама или другой близкий уже не может перестать пить и нуждается в срочной помощи.
    Выяснить больше – [url=https://vyvod-iz-zapoya-kazan21.ru/]наркология вывод из запоя[/url]

  19. Looking through the archives suggests this site has been doing this for a while at this level, and a look at nexustower confirmed the long term consistency, sites that have maintained quality across years rather than just a recent stretch are sites with serious editorial discipline and this one has clearly been at it for a while.

  20. Adding this site to my regular reading list, the post earned that on its own, and a quick stop at clarityguidesexecution sealed the decision, the kind of place worth checking back with from time to time because it consistently produces material that holds up against a critical reading too which I really value.

  21. Reading this in a quiet hour and finding it suited the quiet, and a stop at velvetcloset extended the quiet reading mood, content that matches its own optimal reading conditions rather than fighting them is content that has been thoughtfully calibrated and this site reads as having a particular reading mood in mind throughout.

  22. However casually I came to this site I have ended up reading carefully, and a look at forwardlogiclab continued earning that careful reading, the conversion from casual visitor to careful reader is something content earns rather than demands and this site has accomplished that conversion for me over the course of just a few pieces.

  23. If quality blog writing is dying as people sometimes claim then this site is one piece of evidence that it has not died yet, and a look at victorysquad extended that evidence, the broader cultural question about online writing has empirical answers in specific sites and this one is contributing to a more optimistic answer overall.

  24. Walked away with a clearer head than I had before reading this, and a quick visit to ideasunlockmovement only sharpened that, the writing has a way of cutting through the noise that surrounds most topics online which is something I will definitely remember the next time I am searching for an answer to anything.

  25. Now recognising that the post handled the topic with appropriate technical precision without becoming dry, and a stop at focuscreatesflow continued that balance, technical precision and readability are often in tension and this site has clearly figured out how to maintain both at once which is one of the harder editorial achievements in the form.

  26. Liked the careful selection of which details to include and which to skip, and a stop at ideasneedmomentum reflected the same editorial judgement, knowing what to leave out is just as important as knowing what to include and this site has clearly figured out where that line sits for the topics it covers regularly.

  27. Just want to record that this site is entering my regular reading list, and a look at igniteforwardmotion confirmed it deserves the spot, my regular reading list is short and well curated and adding to it requires meeting a fairly high quality bar that this site has clearly cleared without much effort apparently.

  28. Grateful for posts like this one, they remind me there are still places online run by people who care about quality, and a look at progresswithcontrol reflected the same standards, you can tell the difference between content made for readers and content made just for search engines today and this is the former.

  29. Bookmark folder created specifically for this site, and a look at clarityleadsaction confirmed the dedicated folder was the right call, dedicated folders for individual sites are a level of organisation I rarely deploy and this site has earned that level of dedicated tracking based on the consistency I have seen so far across sessions.

  30. Easy to recommend without reservations, the site delivers on every promise it implicitly makes, and a look at motionwithclarity kept that same standard going, the kind of consistency that earns trust over time rather than chasing it through aggressive marketing is what I see here and it is appreciated greatly by this particular reader today.

  31. Worth saying that the quiet confidence of the writing is what landed first, and a look at primequality continued that quiet quality, confident writing without the loud display of confidence is a rare combination and this site has clearly developed both the knowledge and the editorial restraint to land that combination consistently.

  32. The use of plain language without dumbing down the topic was really well done, and a look at progresswithoutpressure continued in that same accessible style, this is something many technical writers fail at because they either confuse their readers or condescend to them but here neither problem appears at all which is impressive really.

  33. Reading this slowly in the morning before opening email, and a stop at broadcastnova extended that protected attention, content that earns the prime morning reading slot before the daily distractions begin is content with elevated status and this site has earned that prime slot consistently in my recent reading habits clearly.

  34. Liked everything about the experience, from the opening through to the closing notes, and a stop at focusunlockspotential extended that into more pages, finding a site where the editorial vision shows through every choice rather than feeling random is an increasingly rare experience and one I am glad to have today during this particular reading session.

  35. Reading this gave me a small framework I expect to use going forward, and a stop at urbanhomestead extended that framework, content that produces transferable mental models rather than just specific facts is content with multiplicative value and this site is providing those models at a rate that justifies extra attention from me regularly.

  36. Generally I bookmark sparingly to avoid building up a bookmark graveyard but this one earned a permanent slot, and a stop at claritydrivesmotion extended that permanence designation, the few sites I keep permanent bookmarks for are sites I expect to use repeatedly and this one has clearly cleared that expectation bar today.

  37. جرب الحظ الآن على [url=https://888starsegypt.com]وان اكس بت 888[/url] للفوز بجوائز مثيرة ومباشرة.
    تتفرد المنصة بواجهة استخدام واضحة وسهلة التعامل.

    الفقرة الثانية:
    حماية الخصوصية والأمان تمثل أولوية لدى 888starz لحفظ بيانات الأعضاء.

  38. Felt a small spark of recognition when the post named something I had been struggling to articulate, and a look at signalcreatesmovement produced more such moments, the rare service of giving readers language for fuzzy intuitions is one of the higher values that good writing can provide and this site offered several today instances.

  39. Felt the post had been written without looking over its shoulder, and a look at focusleadsaction continued that confident posture, content written for its own sake rather than against imagined critics has a different quality and this site reads as written from a place of confidence rather than defensive justification of every claim.

  40. Closed the tab feeling I had spent the time well, and a stop at growthfollowsmovement extended that feeling across more pages, the test of whether time on a site was well spent is one I apply silently after closing tabs and very few sites pass it but this one passed it cleanly today afternoon clearly.

  41. Just want to say thank you for putting this together, posts like these make searching online actually worth it sometimes, and a quick look at pathwaytoaction kept that going, useful and easy to read without any of the tricks that ruin most blog comment sections lately on the wider open web.

  42. Reading this confirmed that my time researching the topic in other places had not been wasted, and a stop at directionovereffort extended the confirmation, when independent sources agree that is a useful signal and this site is one of the more reliable sources I have found for cross checking what I read elsewhere on similar subjects.

  43. Thanks for your post. My partner and i have continually noticed that most people are desirous to lose weight because they wish to show up slim in addition to looking attractive. Nonetheless, they do not often realize that there are additional benefits to losing weight in addition. Doctors state that fat people come across a variety of ailments that can be directly attributed to their excess weight. The great thing is that people that are overweight and suffering from different diseases are able to reduce the severity of the illnesses by way of losing weight. It is possible to see a steady but notable improvement with health while even a minor amount of fat reduction is achieved.

  44. The use of plain language without dumbing down the topic was really well done, and a look at nexoraquest continued in that same accessible style, this is something many technical writers fail at because they either confuse their readers or condescend to them but here neither problem appears at all which is impressive really.

  45. Thank you for keeping the writing honest and the points easy to verify against your own experience, and a stop at modernchrono reflected the same approach, no exaggeration just steady useful content that I can take with me into my own work without second guessing every sentence I happen to read here.

  46. During the time spent here I noticed the absence of the usual distractions, and a stop at clarityfuelsaction extended that distraction free experience, content that does not fight my attention with pop ups and modals and aggressive prompts is content that respects me and this site has clearly chosen the respectful approach throughout.

  47. Worth flagging that this approach to the topic is fresh without being contrarian, and a stop at momentumfactory extended the same fresh angle, finding original perspective on familiar subjects is rare and this site has clearly developed its own way of seeing rather than echoing the dominant takes from elsewhere consistently.

  48. Definitely returning here, that is decided, and a look at progressmovesintentionally only made the case stronger, this is one of those rare websites that rewards regular visits rather than feeling stale after the first read which is something I cannot say about most of the places I bookmark today across all my topics.

  49. Closed the post with a small satisfied sigh, and a stop at signaloverdistraction produced the same gentle exhale, content that ends well is content that respects the rhythm of reading and the writers here have clearly thought about how their pieces close rather than just trailing off when they run out of things to say.

  50. A piece that reads as if the writer trusted readers to fill in obvious gaps, and a look at studyharbor continued that respectful approach, content that does not over explain what the reader can infer is content that respects intelligence and this site has clearly chosen to write to capable readers rather than to the lowest common denominator.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *