This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
timeout in flash_am29xxxxx.inl and SA1110
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] timeout in flash_am29xxxxx.inl and SA1110
- From: Andreas Bürgel <ab at genologic dot de>
- Date: Thu, 16 Aug 2001 10:20:32 +0200
- Organization: GenoLogic GmbH, Dortmund
Hi folks,
I'm using a custom SA1110 (206 MHz) board with four 29LV800B flash-chips
- two parallel, two serial - and eCos-CVS version from yesterday (you
know Jonathan ;). When starting the command "fis init -f" in redboot,
the flash-driver made it to erase the first two blocks and then hanged.
I found out that the timeout-value in "flash_erase()" at the following
location is to small.
...
// Then wait for erase completion.
if (FLASH_ERR_OK == res) {
timeout = 5000000;
while (true) {
state = *b_v;
if (FLASH_BlankValue == state) {
break;
}
...
I changed it to 10000000 and got all blocks erased (at least those of
the first two flash-chips, but that's another problem).
Best regards,
-----------------------------------------------------
i.A. Andreas Bürgel GenoLogic GmbH
Software Engineer Joseph-von-Fraunhofer-Str. 13
D-44227 DORTMUND
Germany
ab@genologic.de phone +49 (0) 231/477349-0
fax +49 (0) 231/4761234