This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Porting Problem with stdout
- From: Andrew Lunn <andrew at lunn dot ch>
- To: dries <dries at irssystems dot nl>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 Jan 2004 20:57:17 +0100
- Subject: Re: [ECOS] Porting Problem with stdout
- References: <200401161638.33926.dries@irssystems.nl>
On Fri, Jan 16, 2004 at 04:38:33PM -0800, dries wrote:
> Hello,
>
> We are trying to port eCos to a PXA250 board. It seems that a lot of the init
> code is working already however printing to stdout (printf) shows output but
> uses memory from adres 0x00000000 meaning that our reset and irq vectors are
> overwritten by the call to printf. This probably is the reason that our
> clock isn't running etc. .. .
This is a classic dereferenced null pointer. The way to track this
down is to use gdb. Look at the memory at 0x0 and check it has the
correct contents. Then single step a few lines of code. Then check the
contents again. At some point the memory around 0x0 will change. Look
at the lines of code that caused the problem.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss