I am getting a problem. I have purchased MPLAB snap-in programmer kit to program AVR128DA64. I have given the 5v supply to board the supply is 4.990volt. I have connected mplab snap-in 2,3,4(supply, gnd, updi) to mcu supply, gnd, and updi. In microchip studio, in programmer icon mplab-snap is showing connected, then I select MCU, after when I press the apply it asks to change pic mode to avr mode. When I press yes then after some time mplab snap-in connection get reset to the pc and then following error comes
Communication mode timeout.
in Mplab ide following error comes.
Data transmission failed. Error code -10121 returned while trying to receive USB data.
A communication error with the debug tool has occurred. The tool will be reset and should re-enumerate shortly.
I have removed the R48 resistor as per the guideline for Avr programming and connected the 4.7kohm resistor between supply and data.