avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] [RFC] stk500: skip empty pages


From: E . Weddington
Subject: Re: [avrdude-dev] [RFC] stk500: skip empty pages
Date: Tue, 16 Sep 2003 21:27:25 GMT

> I didn't want to use memtype because it is specifically 
> used later in part of the protocol itself:
> 
>     stk500_loadaddr(pgm, addr/a_div);
>     buf[0] = Cmnd_STK_READ_PAGE;
>     buf[1] = (page_size >> 8) & 0xff;
>     buf[2] = page_size & 0xff;
>     buf[3] = memtype;
>     buf[4] = Sync_CRC_EOP;
>     stk500_send(pgm, buf, 5);
> 

Excuse me, in my haste I pasted the wrong code example, 
though the correct one is nearly identical (the command was 
wrong):

    stk500_loadaddr(pgm, addr/a_div);
    buf[0] = Cmnd_STK_PROG_PAGE;
    buf[1] = (page_size >> 8) & 0xff;
    buf[2] = page_size & 0xff;
    buf[3] = memtype;
    stk500_send(pgm, buf, 4);







reply via email to

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