I broke the ATmega16U2 on my Arduino Mega 2560 R3 board. I thought I would just order a new one, and program it with my Jtagice3. After soldering the new chip in, it wouldn't enter programming mode, but I thought it could be a few things I did wrong--soldering a QFN32 package is not that easy... I unsoldered and soldered it a few more times, but nothing changed. Of course at this point I may have already fried it by my heatgun. :-/
Luckily, I ordered two chips, so I figured l would try the other one in a jig. I connected SCK, MISO, MOSI, and RESET, and provided power on pins 3 (GND) and 4 (VCC). Still couldn't enter programming mode. This is the error message I got when using atprogarm.
C:\Users\gal\Documents>atprogram -t jtagice3 -i isp -d atmega16u2 info
Firmware check OK
[ERROR] Could not establish connection to device. Please check input parameters, hardware connections, security bit, target power, and clock values.
Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool). (TCF Error code: 1)
The same jig worked for other ATmega chips, so I am not sure what I did wrong. Just to make sure, I connected RESET to VCC with a 10k, and provided VCC to AVCC, too. Nothing changed. This is how the jig looks like now. The dot on the other side of the chip marking pin #1 is at the lower right corner, I checked.
So, my question if someone can spot something I'm doing fundamentally wrong.
Thanks in advance for any advice,