This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem Programming Flash
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Paul Magee <pmagee at aptx dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 6 Aug 2007 13:48:13 +0200
- Subject: Re: [ECOS] Problem Programming Flash
- References: <8C4E0C2409735E4FBC22D754A238F94D7A1538@APTSBS.apt.local>
On Mon, Aug 06, 2007 at 12:37:27PM +0100, Paul Magee wrote:
>
> I'm currently trying to write to flash using flash_program(), on a board
> that is derived from the A&M Python PowerPC board. The flash chip is the
> Spansion S29GL512N.
>
> The problem is that if I try to write data >64K, the call to
> flash_program() returns out with the error that the driver has timed out
> waiting for flash. If I program in small chunks, it writes fine up until
> I have written 64K, then it returns the same problem.
>
> Is there a limit on what you can write using flash_program()? I have
> checked the documentation and not noticed any. Or is there anything else
> I am doing wrong?
How big are the flash pages? I wounder if there is a bug/problem when
going over a page boundary?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss