ATMega32u4 JTAG AVR Dragon not working

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AS7, AVR Dragon, ATmega32u4.   ISP is working, but without debugwire I need JTAG to do on chip debugging.  JTAGEN and OCDEN fuses are checked (via ISP) and all lock buts are unlocked (see screen shots for sanity check).  I have tried with and without a 68Ohm inline resistor on TCK (saw it suggested on other threads)  Voltage is reading fine, but cannot get ID.

JTAG is giving the error:

"JTAGID not valid. Debugger command enterProgMode failed.

Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device."
 Details:

"Timestamp:    2019-09-24 11:04:42.168
Severity:        ERROR
ComponentId:    20100
StatusCode:    1
ModuleName:    TCF (TCF command: Device:startSession failed.)

JTAGID not valid. Debugger command enterProgMode failed."

 

 

If anyone has any suggestions on how I have screwed this up, please let me know.

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you maybe have the JTAG connected backwards?

 

Are you using ALL the JTAG pins?

 

PORTF(I think ) is the JTAG port....do you have anything connected to that port that could interfere with the JTAG?

 

Jim

 

 

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is on a Pro Micro.  It appears that A0-A3 are just direct to pins 36-39.

I am making an assumption that the Dragon has pins correctly labeled (1 and 9 labeled on silkscreen) and pins 1-TCK, 2-GND, 3-TDO, etc.  Pins 7 and 8 of not connected.  I only have one of Gnds connected, but they seem connected on the Dragon side... I can break it our and connect both JIC.   I would expect that the voltage reading would not be working if it were mirrored, but I will quintuple check all the lines.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, re-ran all lines and connected both GNDs...  appears to be working...  maybe I had something flipped....  maybe it was the GND lines...  I hate not knowing for sure, but happy it is working.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also disconnect ISP, though I doubt that was it...  for future troubleshooters...