This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Atmel at49xxxx flash programming patch


On Tue, 10 Jun 2003 13:19:22 +0200
Andrew Lunn <andrew.lunn@ascom.ch> wrote:

> On Tue, Jun 10, 2003 at 10:09:01AM +0200, Øyvind Harboe wrote:
> > The patch below fixes the crash for me when I'm programming
> > flash with a Redboot running out of flash. (EB40a).
> > 
> > AFAICT, the code that waits for a flash write to complete shouldn't
> > run out of flash.
> 
> Correct! My guess is that you have the optimizer turned off where as
> Jani probably had it enabled during testing. With the optimizer
> enabled gcc probably inline'd the function so making it part of
> flash_erase_block and flash_program_buf and so living in ram. Without
> it being inlined, it lives in ROM.

One other possibility is that the at49 I was using had two separately
erasable/programmable planes and redboot and other flash modifiying code
was in the first and it only touched the second plane.
I don't know if this is true for all at49 flashes though.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]