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

Submitted by:  Markus Baertschi <markus_b>
Submitted on:  Thu 07 Jan 2010 06:57:43 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Markus Baertschi
Open/Closed: ClosedRelease: 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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Jan 2010 04:03:33 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1