JTAG Atmel Studio 7 AVR Dragon Mega 2560

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

Hi All,

 

I'm working on a project that used up my serial ports so I finally pulled out my AVR Dragon to get JTAG going for debug and programming.

 

I got it going thanks to reading past posts here about fuses and such, though it is far from reliable. 

 

I think I've used all the best practices regarding cable length and layout, I made a board with all the needed pins to a 10 pin header and am using a 15cm (6" ) ribbon cable to the dragon.

 

Atmel Studio connects sometimes and will let me read the chip, program and debug.  Though a lot of the time I get  at least 2 different error messages, ONE is an error about       JTAG ID not Valid, 

the other is

 

Failed to execute command with ID 0x02
. Unexpected sequence number: got 0x0001 instead of 0x0002.      <<
these values are always 1 off and increase in value every time I make another attempt.

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

 

Please Let me know,

-Peter

 

Update, This is a new error

 

'Avr8Dev_16' is not a device context.

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

 

I have thoroughly checked the connections, I even cleaned the board of all contamination. checked for shorts, I'v powered the target a few ways, I'm running out of reasons this isn't working.

 

thanks again

 

Last Edited: Sat. May 2, 2020 - 03:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Upstage wrote:
I think I've used all the best practices regarding cable length and layout,  ...
DragonLair adds series termination in addition to greater drive current.

Dragon

[DragonLair schematic after mid-page]

"Dare to be naïve." - Buckminster Fuller