Author Topic: JTAG is not working with Atmega32a using Atmel-Ice  (Read 2084 times)

0 Members and 1 Guest are viewing this topic.

Offline nourTopic starter

  • Frequent Contributor
  • **
  • Posts: 271
  • Country: sa
  • calm down, it is just a smoked oPamP!
JTAG is not working with Atmega32a using Atmel-Ice
« on: May 03, 2016, 06:39:55 pm »
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??
if what I have wrote doesn't make sense for you or you think there is something wrong, please correct me, I am still beginner and what I know probably less than what you know
 

Offline obiwanjacobi

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: JTAG is not working with Atmega32a using Atmel-Ice
« Reply #1 on: May 04, 2016, 05:50:24 am »
My first thought: check your wiring - and then again. Or let someone else check it.

datasheet 29.10:
Quote
To be able to use the JTAG interface, the JTAGEN fuse must be programmed. The device is default
shipped with the Fuse programmed. In addition, the JTD bit in MCUCSR must be cleared

[2c]
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 
The following users thanked this post: nour


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf