I am using Atmel studio 7 and Atmel-Ice to program atmega32a on a board that I have made and using 16MHZ external crystal.
When connecting the board to Atmel-Ice using ISP it works fine and I can program the mcu without issues.
When connecting the board using JTAG the Atmel studio couldn't recognize the MCU(couldn't read the device signature) even it can directly tell the voltage reading without issues.
I have followed the connection wiring exactly as described on ICE manual, I have double checked every connection and it is not working, also I have verified the fuses for the JTAG and it is set properly.
Here is a screenshot of the connections that I have follow(from ICE manual)
Here is a screenshot of my atmega32a fuses (of course using ISP)
and here is a screenshot for the message that I get when I try to read the device signature
one more thing, I have tried replacing the atmega32a with atmega16a and the JTAG worked without any issues!!
What the thing that I am missing??