UPLOADING FIRMWARE IN NEW ATMEGA16U2

I have made arduino based data logging device with atmega16u2 usb contoller. I have uploaded the firmware using FLIP 3.4.7 but still the board is not working. Please help me out with this. Thank you in advance.

Did you try uploading via isp?