avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] Bad programming speed on AT90S8535 using AVRdude


From: Theodore A. Roth
Subject: Re: [avrdude-dev] Bad programming speed on AT90S8535 using AVRdude
Date: Tue, 18 Nov 2003 13:37:38 -0800 (PST)


On Tue, 18 Nov 2003, Theodore A. Roth wrote:

> I then changed the inner loop to this:
>
>     else {
>       gettimeofday (&tv, NULL);
>       start_time = (tv.tv_sec * 1000000) + tv.tv_usec;
>       do {
>         /*
>          * Do polling, but don't wait (much) longer than max_write_delay
>          * Granularity might need some tuning for best performance.
>        */
>         rc = avr_read_byte(pgm, p, mem, addr, &r);
>         if (rc != 0) {
>           pgm->pgm_led(pgm, OFF);
>           pgm->err_led(pgm, ON);
>           return -4;
>         }
>         gettimeofday (&tv, NULL);
>         prog_time = (tv.tv_sec * 1000000) + tv.tv_usec;
>       } while ((r != data) &&
>                ((prog_time-start_time) < mem->max_write_delay));
>
> and the time was 21.050 seconds. (patch attached for reference)

Sorry, forget the attachment.

Ted Roth

Attachment: gettime.diff
Description: Text document


reply via email to

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