avrdude-dev
[Top][All Lists]
Advanced

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

Re[4]: [avrdude-dev] AVR910 Programming speed


From: Bertolt Mildner
Subject: Re[4]: [avrdude-dev] AVR910 Programming speed
Date: Wed, 9 Apr 2003 22:34:39 +0200

TAR> :)
TAR> :) The problem is in avr910_paged_load().
TAR> :) Replacing the line #595:
TAR> :)
TAR> :)      avr910_recv(pgm, &m->buf[addr * rd_size], rd_size);
TAR> :)
TAR> :) with
TAR> :)
TAR> :)      for (run = rd_size - 1; run >= 0; run--) {
TAR> :)        avr910_recv(pgm, &m->buf[(addr * rd_size) + run], 1);
TAR> :)      }
TAR> :)
TAR> :) fixes it for me. Byte pairs (words) are received in reverse order.

TAR> Well, that's what I get for not splitting writing separate functions
TAR> for flash and eeprom.

TAR> I'm not too keen on the use of a loop here. It kind of obfuscates what
TAR> is going on. Can you try the attached patch and see if it fixes it? (I
TAR> don't have my avr910 board here at work.)

Yup, works!

BTW: by "brutaly tweaking" delay times in the AVR910 Firmware I was
able to burn my test file in about 1:20, but AVR Studio seems not to
like the low delay times (not that that really bothers me :)

-- 
Best regards,
 Bertolt                            mailto:address@hidden





reply via email to

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