How to burn bootloader ATmega16u using Arduino_Uno and Arduino IDE

Hi,

I have a custom board with virgin ATMEGA2560-16AU and ATMEGA16U2-MU, I am trying to burn bootloader into ATMEGA16U2 using Arduino-uno via Arduino IDE, I have made all the connection as shown in this tutorial,
but no success so far.
First of all which board to select in tools to burn bootloader into ATMEGA16U2? I tried with Arduino UNO and other boards but I am getting following error

"avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)"
avrdude: Device signature = 0xffffff (probably .avr8x_mega)
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

Any suggestion how to proceed from here.

Double check your connections - all 0xFF in response usually points to shortage between data wires so carefully check it again.

1 Like

You can not use the IDE to burn the firmware of the 16U2 as there is no board package for the 16U2. You will need to use avrdude on the command line.

Please show the schematic for your board. Do you make a separate ICSP headers for both mcu's?

Yes I have two ICSP for both MCUs.

So you can to upload the firmware to Atmega16u2 via command line avrdude tool, as described in this tutorial
https://docs.arduino.cc/tutorials/due/upgrading-16u2-due/

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.