This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: serial console output problem
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "hua liu" <rongye_liu at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 22 Jul 2004 16:15:09 +0100
- Subject: Re: [ECOS] serial console output problem
- References: <BAY2-F36riCTVuy16xs000025f7@hotmail.com>
"hua liu" <rongye_liu@hotmail.com> writes:
> think you for your reply.
> I load and run the hello.c program (using /dev/tty0 console).Follow is
> the gdb output information:
> -------------------------------------------------------------------------------
>
> (gdb) target remote com1
> Remote debugging using com1
> 0x01003318 in ?? ()
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x40000
> Loading section .text, size 0x13bb4 lma 0x40040
> Loading section .rodata, size 0x3cc lma 0x53bf4
> Loading section .data, size 0x4a0 lma 0x53fc0
> Start address 0x40040, load size 83040
> Transfer rate: 27680 bits/sec, 304 bytes/write.
> (gdb) continue
> Continuing.
> [New Thread 2]
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to Thread 2]
> 0xe3ff0000 in ?? ()
> (gdb)
> ------------------------------------------------------------------------
>
> What is the error? How can I do?
>
Use GDB and debug the program. Follow the call graph down from the
printf() in hello.c and see where it goes wrong. You probably have
something misconfigured, or there is a bug somewhere in your HAL
port.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss