As they say in https://www.arduino.cc/en/Hacking/DFUProgramming8U2 you need to solder a 10k resistor in order to reprogram/reset the MEGA8u2 chip on Arduino UNO but sometimes you may lack the needed tools.
Is there a way to reprogram the MEGA8u2 using an external programmer or an another arduino as a programmer?
My idea behind this is to use the ISP LAYOUT for ATMEGA8U2 in order to load the correct bootloader:
-
How is that easier than soldering in a 10K resistor?Majenko– Majenko2018年03月16日 13:53:17 +00:00Commented Mar 16, 2018 at 13:53
-
Actually in my case I do not know if I can solder one: arduino.stackexchange.com/questions/50807/…Dimitrios Desyllas– Dimitrios Desyllas2018年03月16日 13:54:57 +00:00Commented Mar 16, 2018 at 13:54
1 Answer 1
Sure you can. Solder in a 6 pin header and you can program the ATMega8U2 using any Atmel hardware programmer. It's just a standard MCU, after all. I'm not sure how the DFU side of things works - whether it's built into the chip in ROM or not1, but if it's just a bootloader in flash your programming may wipe it out stopping DFU from working in future. Not a problem if you can't get into DFU mode anyway.
1: The DFU is firmware stored in the "boot" region of the flash. As long as you don't erase or overwrite that region of the flash DFU will still function in future. Of course, you can also re-install the DFU firmware at any time you like.