DrAzzy:
VQFN sockets exist, and can be had from professional electronics supply houses, at eye-watering prices. (Farnell lists them in the 80-100 dollar range, for a socket, no PCB). They're priced for professional use, not hobbyists.
I actually have one that I bought from some ebay seller. The problem is that they only made the adapter with 21 pins that mate with the chip itself and not all 32! And now the seller is refusing to make good on it claiming there is nothing wrong with it.
DrAzzy:
Is it expected that you'll use DFU to program them? Is the DFU pin broken out? (I would never design a board for an AVR without breaking out the ICSP pins - I did it a few times, and regretted it every one of them)
No, the DFU pins were not broken out so it has to be programmed before being soldered down.
DrAzzy:
You solder a (V)QFN with hot air and solder paste. If the device doesn't have a ground pad in the middle, or if it has a pad, but the board was designed with a through-hole in the middle of the ground patch for this purpose, you can solder the ground patch (if present) with an iron from the bottom and then use drag soldering with flux on the pins - if the board was designed for hand assembly, the pads are often made longer than otherwise necessary, so that you can drag solder them more easily (because the copper pad conducts heat, helping you to heat up the pin and pad where they join with an iron), but it's still quite hard. Ideally, you would use solder paste, a stencil, and a reflow oven to solder these.
How do you drag solder a chip that has the pins all underneath the chip?
DrAzzy:
However, there's another problem - as far as I'm aware, there's no arduino core that supports writing a sketch for the atmega16u2... It's also not clear to me which bootloader you intend to write to it.
I found a bootloader or two but I am not sure how to upload that bootloader and then upload a different sketch (see my question below about that).
DrAzzy:
My first reaction is that you've picked up a project with some serious issues....
The original run of boards was done by the designer and he used QLP32 chips and programmed them. This second run was made by someone else and instead of buying QLP32 footprint ATMega16U2's he bought the VQFN32 package with the pins all underneath (pronounced inaccessible). And no, ICSP pins were not brought out. And that seller does not know how to program them so I am on my own!
I had found a bootloader but am again running into a noobie question of how to program that chip. I ask that basic question on another forum here but the answer I keep getting is that I can burn the bootloader (using AVR ISP) but if I try to upload the sketch for the actual program then it erases the bootloader and that seems counter intuitive to me since I thought the bootloader went into protected space.
How do I upload a sketch to an AVR (ATMega328P or this ATMega16U2) that already has the bootloader on it or that I have just finished burning the bootloader?
Thank you.