public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] timeout in flash_am29xxxxx.inl and SA1110
@ 2001-08-16  1:20 Andreas Bürgel
  2001-08-16  6:56 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Bürgel @ 2001-08-16  1:20 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] timeout in flash_am29xxxxx.inl and SA1110
  2001-08-16  1:20 [ECOS] timeout in flash_am29xxxxx.inl and SA1110 Andreas Bürgel
@ 2001-08-16  6:56 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-08-16  6:56 UTC (permalink / raw)
  To: Andreas Bürgel; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]

Andreas Bürgel wrote:
> 
> 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).

Yes, we really need a "bogomip" calibration loop in eCos that can be used
for simple timeouts like this. In the meantime, I'll double it like you
suggest, although it'll go wrong when 400Mhz CPUs use it :-|.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-16  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-16  1:20 [ECOS] timeout in flash_am29xxxxx.inl and SA1110 Andreas Bürgel
2001-08-16  6:56 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).