This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting Problem with stdout


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]