Install firmware on Atmega 16U2

Hey Everyone,

I tried to design my first standalone PCB based on the Arduino Mega 2560 architecture and it arrived in the mail the other day. I now have to install the bootloader to the 2560 and the USB firmware to the 16U2.

The bootloader went on the 2560 after a bit of trying, but I´m stuck with 16U2 firmware.

I downloaded flip according to this tutorial

and tried to connect, but I get the fault: AtLibUsbDfu.dll not found. A bit of googling showed that this seems to be a missing driver for the USB device, but every time I try to install the atmel_usb_dfu.inf to the unknown USB device it tells me there is no compatible driver for Win x64 Systems.

So I believe the issue is that my system is running 64 and not 32 bit. Does anyone know how to get around this issue or how I could manipulate the driver file to make it work?
or alternatively how I could program the 16U2 via the ICSP connector like the main processor?

Thank you!

I finally managed to do it using avrdude and this post:
https://forum.arduino.cc/index.php?topic=299665.0