bugAVR Downloader/UploaDEr - Bugs: bug #28516, Linux/Dragon: Error message on exit

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28516: Linux/Dragon: Error message on exit

Submitter:  Markus Baertschi <markus_b>
Submitted:  Thu 07 Jan 2010 06:57:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Markus Baertschi
Open/Closed:  Closed Release:  None
Programmer hardware:  Device type: 

Fri 08 Jan 2010 04:03:33 PM UTC, comment #1: 

The problem was that jtagmkII_close() has been called
with the wrong (i.e., the stk500v2.c one) pgm->cookie, so
it extracted invalid pdata from it.

I had to wrap it inside a separate stk500v2_jtagmkII_close()
function, properly adjusting the cookie before chaining
to jtagmkII_close().

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 07 Jan 2010 06:57:43 PM UTC, original submission:  

Applies to the current svn version (889).

Avrdude displays an error message when exiting:
bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE

After looking at the source it looks to me like avrdude thinks it is in JTAG mode and issues a GO command when shutting down to avoid blocking the MCU.

Here an example run:

$ avrdude -p ATTINY861 -c dragon_isp -P usb

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e930d

avrdude: safemode: Fuses OK
avrdude: jtagmkII_close(): bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE

avrdude done.  Thank you.

Here the same run with high verbosity (-vvv):

$ avrdude -p ATTINY861 -c dragon_isp -P usb -vvv
...
avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): Sending GO command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: jtagmkII_recv():
avrdude: jtagmkII_recv(): CRC OK
avrdude: jtagmkII_recv(): Got message seqno 0 (command_sequence == 0)

Illegal emulator mode

avrdude: jtagmkII_close(): bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE
avrdude: jtagmkII_close(): Sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: jtagmkII_recv():
avrdude: jtagmkII_recv(): CRC OK
avrdude: jtagmkII_recv(): Got message seqno 1 (command_sequence == 1)

Markus Baertschi <markus_b>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by markus_b (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-08 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code