I have made a prototype using basically a stripped down version of the UNO (16U2 and 328P, see attachment) with some LEDs on it and a 3.7V battery. I used a guy to make a PCB layout and ordered an assembled version but the USB is not working for communication (just battery charging), not even showing up in OS port list of my mac. I have an ICSP header which programs is 328P but the 16U2 does not have a header. So my questions is:
does the 16U2 come with firmware pre installed?
if not the I guess i have created a brick
You might be able to do something with sharp pogopins...
You can probably bypass the 16u2 with some other USB/Serial converter, and/or use ISP programming to program the 328 directly. So ... not quite a brick.
Luckily I do have ICSP headers to program the 328P but cannot do any serial prints for debugging - so it's not a total loss. Leaned something: don't just trust anyone who 'has does this before'...
In the atmega328 boards I have constructed, I always use a commonly available usb-serial adaptor module to program and debug the board. I use female pcb headers on the main board so the adaptor can be removed when not needed.
Also if I plan to solder the atmega direct to the main board, I will add ISP header in case I need to update the bootloader or program it that way. Otherwise I use a chip socket so I can remove the chip if I ever need to update the bootloader or program it using ISP rather than serial programming.
Launching the default DFU loader pre-installed on 16U2 is easy.
With the HWB pin (is PD7) pulled down to GND, simply reset 16U2 with the RESET pin.
Connect 16U2 to your computer via USB.
Using a needle-like probe, connect pin 13 to GND via a 1K ohm resistor.
In that state, touch pin 24 to GND for a moment via a 1K ohm resistor.
OK, The DFU loader will be start: Your computer recognizes 16U2.
You can then use the corresponding any tools to program the firmware.
Note:
The QFP package has a narrow pin to pin clearance.
Be careful of short circuits on other pins when working.
However fortunately, referring to your schematic, both sides of the HWB pin are unused.
And the RESET pin is on the corner of the chip.