bugAVR Downloader/UploaDEr - Bugs: bug #25755, avrdude > 5.2 uses wrong...

 
 

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

bug #25755: avrdude > 5.2 uses wrong avr910_devcode

Submitted by:  None
Submitted on:  Tue 03 Mar 2009 09:21:45 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Jens W. Wulf
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer hardware: 
Device type: 

Tue 03 Mar 2009 10:25:40 PM UTC, comment #2:

the only reason to use avr109 (butterfly) with a avr910 programmer is the blockmode for faster transfer between programmer and avrdude.

The blockmode is available in avr910 mode since avrdude V5.6 so use this Version with -c avr910.

Klaus Leidinger <kllei>
Tue 03 Mar 2009 09:36:32 PM UTC, comment #1:

avr109 aka. "butterfly" is supposed to ignore the historic
AVR910 device code given. The validity of the target part
is supposed to be handled by matching the signature bytes,
and that's exactly what AVRDUDE does.

For historical reasons, AVRDUDE selects the first device
code presented by the bootloader, just to send something
at all. After all, this is a bootloader protocol, and
bootloaders are hardly expected to be able to handle more
than a single device code anyway.

If, for some reason, that doesn't really fit your particular
bootloader, you are still free to resort to the classic
AVR910 protocol instead. As the device code mess could never
resolved in a way that would satisfy all interested parties,
the option -x devcode=XXX has recently been added there, as
a method to override the device code selection taken from
avrdude.conf straight from the commandline.

Anyway, you are strongly suggested to send all the devcodes
to /dev/null, and rely on the device IDs (signatures) instead.
AVR910 single-byte device codes (and STK500 v1 device codes,
for that matter) have been a design failure from day #1.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 03 Mar 2009 09:21:45 PM UTC, original submission:

Using avrdude -c butterfly, the wrong avr910_devcode is used.Programming a mega8535, avrdude 5.2, the communication is like this (captured using slsnif):
-------------------------------------
Host --> t (116)

Device --> C (067) i (105) t (116) v (118) 0 (048) 8 (056) h (104) <NUL> (000)

Host --> T (084) i (105)
-------------------------------------

Using avrdude 5.5, communication is like this:

-------------------------------------
Host --> t (116)

Device --> C (067) i (105) t (116) v (118) 0 (048) 8 (056) h (104) <NUL> (000)

Host --> T (084) C (067)
-------------------------------------

Although version 5.5 prints this:

-------------------------------------
avrdude: Version 5.5, compiled on Mar 1 2009 at 20:40:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

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

Using Port : /dev/pts/6
Using Programmer : butterfly
Overriding Baud Rate : 19200
AVR Part : ATMEGA8535
Chip Erase delay : 9000 us
PAGEL : PD7
-------------------------------------

it does not use the avr910_devcode which is written in /etc/avrdude.conf for the mega8535.

I have not captured communication with other versions, but 5.4 and 5.6 behaved identically to 5.5 as far as could be seen from the command line.

Anonymous

 

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 kllei (Posted a comment)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by None (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
    Tue 03 Mar 2009 09:36:32 PM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1