avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bug #19773] ATmega2561 not correctly flashed


From: Joerg Wunsch
Subject: [avrdude-dev] [bug #19773] ATmega2561 not correctly flashed
Date: Sat, 05 May 2007 21:52:25 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070224 Galeon/2.0.3

Follow-up Comment #5, bug #19773 (project avrdude):

Thanks for the trace files.

The most critical parts of both traces look very similar.  In
particular, the LOAD ADDRESS has bit 31 set (to mark the device
as requiring an extended address operation), and both programs
don't do any special action when wrapping the 128 KiB boundary,
they just rely on the programmer to correctly count up the
target address across that boundary.

The "delay" parameter in AVR Studio is 10 when avrdude uses
6.  Sigh, this is one of those situations where Atmel changed
the XML files without notice: the parameter used to be 6 in
the initial files, but has been changed to 10 with AVR Studio
4.12 release (build 460).

Interestingly enough, the stock STK500 doesn't appear to care
about that.

Find below a patch to fix this.

The spduo appears to have some really funny responses to
parameter inquiries:

         Hardware Version: 14
         Firmware Version: 50.51
         Vtarget         : 14.8 V
         SCK period      : 165.0 us

The remaining differences in the initialization sequence
are that avrdude uses a few SPI_MULTI commands (still) to
read the device signature.

Index: avrdude.conf.in
===================================================================
RCS file: /home/cvs/avrdude/avrdude/avrdude.conf.in,v
retrieving revision 1.119
diff -u -u -r1.119 avrdude.conf.in
--- avrdude.conf.in     26 Feb 2007 19:52:53 -0000      1.119
+++ avrdude.conf.in     5 May 2007 21:32:50 -0000
@@ -8633,7 +8633,7 @@
                           "  x   x   x   x      x   x   x   x";
 
        mode            = 0x41;
-       delay           = 6;
+       delay           = 10;
        blocksize       = 256;
        readsize        = 256;
       ;
@@ -8821,7 +8821,7 @@
                           "  x   x   x   x      x   x   x   x";
 
        mode            = 0x41;
-       delay           = 6;
+       delay           = 10;
        blocksize       = 256;
        readsize        = 256;
       ;
@@ -9010,7 +9010,7 @@
                           "  x   x   x   x      x   x   x   x";
 
        mode            = 0x41;
-       delay           = 6;
+       delay           = 10;
        blocksize       = 256;
        readsize        = 256;
       ;
@@ -9203,7 +9203,7 @@
                           "  0   0   0   0      0   0   0   0";
 
        mode            = 0x41;
-       delay           = 6;
+       delay           = 10;
        blocksize       = 256;
        readsize        = 256;
       ;
@@ -9396,7 +9396,7 @@
                           "  0   0   0   0      0   0   0   0";
 
        mode            = 0x41;
-       delay           = 6;
+       delay           = 10;
        blocksize       = 256;
        readsize        = 256;
       ;


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19773>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]