This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: using threads causes exceptions
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Stefan Sommerfeld <sommerfeld at mikrom dot de>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 03 Aug 2005 06:51:52 -0600
- Subject: Re: [ECOS] using threads causes exceptions
- References: <00fa01c59829$28952030$152ca8c0@nullnullsix>
On Wed, 2005-08-03 at 14:44 +0200, Stefan Sommerfeld wrote:
> Hi,
>
> I'm using eCos on an XScale PXA270 and i have a problem using threads. My
> program does only start a thread from main() and after this function calls
> from thread causes ABORT DATA exceptions (MMU info: Imprecise External Data
> Abort). Even a printf causes this exception. The strange thing is, the eCos
> thread tests are working, even the stress test. Do i have to do some
> initialisation? Should i better use cyg_start() instead of main()?
Using main() is just fine. Most likely, you've not created the
stack for the thread correctly. Or perhaps it's something within
your thread itself.
Have you tried running the program using GDB? Then you can catch
the culprit and know where to start looking.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss