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/



_______________________________________________
avrdude-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to