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]

Atmel at49xxxx flash programming patch


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.

By looking at the at29cxxxx implementation, it appears that the
way it makes sure this doesn't happen, is to duplicate the 
wait_while_busy function whereever it is required.

I've never submitted a patch before and I'm pretty new to eCos,
so with that in mind, here it is:

Index: flash_at49xxxx.inl
===================================================================
RCS file:
/cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_
at49xxxx.inl,v
retrieving revision 1.1
diff -r1.1 flash_at49xxxx.inl
127c127,128
< 
---
> static int wait_while_busy(int timeout, volatile flash_data_t*
addr_ptr)
> __attribute__ ((section (".2ram.text")));;


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