AVR Dragon failing to enter ISP mode and start programming

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

I'm using the Eclipse AVR plugin on Manjaro Linux

For my circuit i'm using an AVR Dragon in ISP mode and a ATMEGA1284PPU microcontroller

 

Every time I try to upload a program to the microcontroller it sits there displaying

avrdude: jtagmkII_getsync(): sign-on command: status -1

 

It makes no effect when I disconnect the VCC pin from the ISP or turn off the power on my breadboard.

 

and sometimes I get

avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_FAILED
avrdude: jtagmkII_getsync(): ISP activation failed, trying debugWire
avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_DEBUGWIRE_SYNC_FAILED
avrdude: failed to sync with the AVR Dragon in ISP mode

 

Using AVRDude 6.3

 

Any solutions?

 

Last Edited: Sun. Sep 17, 2017 - 04:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ref: Every time I try to upload a program to the microcontroller it sits there displaying

avrdude: jtagmkII_getsync(): sign-on command: status -1

 

This sounds like Avrdude is not connecting to the Dragon.

When you plug the dragon into the USB port on your computer, does both red and green leds on the Dragon light up?

 

Ref: It makes no effect when I disconnect the VCC pin from the ISP or turn off the power on my breadboard.

What supplies voltage to the breadboard?  

You need to supply power to the breadboard since the Dragon senses that voltage (on its VCC pin) and uses it to adjusts the Dragon's operating voltage.

 Don't use the Dragon to power the breadboard since current required by the breadboard might exceed the USB capability. 

 

Ref:

and sometimes I get

avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_FAILED
avrdude: jtagmkII_getsync(): ISP activation failed, trying debugWire
avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_DEBUGWIRE_SYNC_FAILED
avrdude: failed to sync with the AVR Dragon in ISP mode

 

This is the kind of response you get when avrdude can talk to the Dragon but the Dragon cannot communicate with the target uC

Are you sure all wires  from the Dragon to the breadboard are solidly connected and that your wiring is correct: i.e.  MOSI on the Dragon connects to MOSI on the uC, etc.

 

Good luck,

Alan

Attachment(s): 

Last Edited: Mon. Sep 18, 2017 - 01:52 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using cheap Jaycar jumper leads for connecting the AVR Dragon to my breadboard. 

 

At the end of the jumper leads, the female and male parts of the leads at the one side is exposed, my guess was that it was shorting to the next one across it and so on and/or the cable is of bad quality and probably broken on the inside.

It's very annoying why the AVR Dragon uses male headers, it's more difficult to wire them up to the breadboard, I think a female header (like the Arduino) would have probably been alot better.

 

It's working now, green and red leds come on, I would have thought AVRDude would display "Invalid Device Signature 0x000000, Please Double Check Your Connections" or something like that, but in this case the error messages weren't at all obvious.  

Last Edited: Mon. Sep 18, 2017 - 09:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's very annoying why the AVR Dragon uses male headers, it's more difficult to wire them up to the breadboard.

I disagree.   Most external modules,  pcbs etc use male headers.   Female-female Dupont cables are well made (and cheap).    Some Chinese male-male cables are very unreliable (and very cheap).

 

I suggest that you buy some male header strip.    Plug this in the breadboard.   Hey-ho,  you have some reliable connections for your female-female Duponts.   

 

David.

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

Thank You :)

Last Edited: Mon. Sep 18, 2017 - 07:57 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found  https://www.jaycar.com.au/150mm-... from Google.

They look like female-male Dupont cables.   I have never used a male Dupont.

 

Apparently the Jaycar ones "look" ok but are badly made with plated steel wire.

 

David.

 

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

Those are the ones I use