This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: JFFS2 and cyg_thread_delay
- From: Andrew Lunn <andrew at lunn dot ch>
- To: liu hua <rongye_liu at hotmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 13 Jun 2006 17:46:59 +0200
- Subject: Re: [ECOS] JFFS2 and cyg_thread_delay
- References: <BAY119-F2487CD4EAA56DB32B61E4E88C0@phx.gbl>
On Tue, Jun 13, 2006 at 11:31:13PM +0800, liu hua wrote:
> hi,
>
> I have met a trouble problem when using JFFS2 file system.
>
> My platform is ARM9 , 16M FLASH (Intel 28F128). First, it run eCos with
> JFFS2 nomally (mount/read/write/umount,etc).
>
> But recent I find that when I create a file or write a file, the
> cyg_thread_delay cannot run normally. Before I write a
> file,cyg_thread_delay(100) can delay about 1 second. But after I write a
> file and close it, cyg_thread_delay(100) or cyg_thread_delay(10000) return
> without any delay!
>
> What happen? How I solve it? I wish get help from anyone!
You have probably overflowed your stack and corrupted a thread
structure. Enable stack checking in the infra package.
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