This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Atmel at49xxxx flash programming patch
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: <ecos-patches at sources dot redhat dot com>
- Date: Tue, 10 Jun 2003 10:09:01 +0200
- Subject: 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")));;