1

I have a bunch of ATMEGA16U2 in my drawer and I need to make a small production of custom boards with Arduino-based firmware.

After a Google search I learn the ATMEGA16U2 is often hosted on the Arduino boards as USB converter and there some hacks to reprogram it. But this is not my goal... I'm trying to understand how to compile and download the firmware using Arduino IDE and this MCU as target.

I guess (also from this old question) I need to update both the bootloader and the specification of the board.

Questions:

  1. before reinvent the wheel are you aware of a ready-to-use porting for ATMEGA16U2? I did a search find nothing relevant

  2. what is the official guide to update the files (bootloader + boards.txt) to support a new MCU? I find forum threads only

7
  • this could help arduino.stackexchange.com/questions/54484/… using AVR core as referred core
    – Juraj
    Nov 25 '21 at 8:15
  • @Juraj thanks I'm reading the answer - but as said it's again a public forum... where is the official documentation that explains in detail each step?
    – Mark
    Nov 25 '21 at 8:24
  • there is a link in the answer to the official doc, but there is no tutorial
    – Juraj
    Nov 25 '21 at 8:27
  • @Juraj I saw but it's about arduino-cli. If it's correct I'm going to study it :)
    – Mark
    Nov 25 '21 at 8:29
  • Arduino IDE uses the arduino-cli
    – Juraj
    Nov 25 '21 at 8:29