[Top][All Lists]

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

Re: [avr-chat] Mega88 bootloader?

From: Bob Paddock
Subject: Re: [avr-chat] Mega88 bootloader?
Date: Thu, 21 Jul 2005 09:59:49 -0400
User-agent: Opera M2/7.54u1 (Win32, build 3918)

On Wed, 20 Jul 2005 22:21:15 -0400, Colin O'Flynn <address@hidden> wrote:

I've got a Mega88 bootloader writing from DataFLASH via SPI, sound useful?

I took a look at the code.  Did not really seem substantially different
from what I had.  I solved my problem by writing SPDR twice
after the SPM instruction.  Still seems like a part bug to me.

At the end of my bootloader I have:

   __asm__ __volatile__ ("rjmp 0x0000\n\t" ::);

The code that seems to be generated is:

    __asm__ __volatile__ ("rjmp 0x0000\n\t" ::);
    1e1c:       26 cf           rjmp    .-436           ; 0x1c6a

What don't I understand here?  1C6A is obviously not 0x0000.
1C6A is my spi_xfer() function.

I'll go with your zero Z, ijmp technique that way I'm sure I will
end up at zero.

reply via email to

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