Avrdude leaves dragon in a "null" state after finishing programming

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

Hi

 

Im using my dragon and avrdude combo to program various avrs for quite long time now.

After yet another move from one linux laptop to another I've noticed that avrdude leaves dragon in a wierd, rarely-responding state after it finishes programming with error (RSP_FAILED) or gets ^C'd

The dragon state's symptoms are:

  • The single green led is on
  • The two color status led is all off

It just hangs in that state for a very long time until I reconnect it (and constant replugging cannot do good for the already crippled dragon nor the things connected to its onboard PSU)

 

A valuable observation is that avarice doesnt do this to the dragon.

 

So the first avrdude invocation looks like this:

 

avrdude: Version 6.3, compiled on Aug  9 2017 at 12:31:56
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/krzysiek/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : dragon_isp
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00XXXXXXXXX
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              6.11
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              6.11
  hardware version:              7
Serial number:                   00:XX:XX:XX:XX:XX
Device ID:                       AVRDRAGON       

 

      ---- chip related part removed for clarity ----

 

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.15s

avrdude: Device signature = 0x1e9307 (probably m8)
avrdude: safemode: hfuse reads as D9

avrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK (E:FF, H:D9, L:E1)

avrdude done.  Thank you.

 

But the later one:

 

...

avrdude: usbdev_open(): Found AVRDRAGON, serno: 00XXXXXXXXX

avrdude: jtagmkII_getsync(): sign-on command: status -1     //this line can repeat many many times, every ~10s, sometimes for several minutes, meanwhile the dragon just blinks the single green led while the status leds stay off
JTAG ICE mkII sign-on message:      
Communications protocol version: 1                          //Finally it managed to communicate
...

 

 

 

LibUSB version:  1.0.21-2 ; dragon USB connection uses ehci-pci. Under arch linux.

 

I also have a Debian unstable and Windows 7 with WinAVR where i can test it.

 

What can i do to avoid replugging the dragon every time it finishes it job?

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

Try to use -v -v -v -v on the avrdude command line, to get the verbose output. Maybe someone can decipher it and help.

Last Edited: Wed. Feb 7, 2018 - 10:58 AM