This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: printf does not work in helloworld.c
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: ahgu at yahoo dot com, eCos discussion <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 21 Nov 2001 18:15:41 +0000
- Subject: [ECOS] Re: printf does not work in helloworld.c
Andrew Xiang wrote:
>
> I am trying to make the helloworld program to work.
>
> I tried 2 ways.
> I compiled the program use the :
> arm-elf-gcc hello.c -Ipath -Lpath -Ttarget.ld nostdio
> I notice the program is 1.3MB, just for a little
> printf.
That'll be mostly debugging info, don't worry about that - your actual
program is much smaller.
> arm-elf-gdb -nw a.out
> run
Shouldn't that be "continue"? Or more specifically it should (potentially)
be something like:
set remotebaud 38400
target remote com1
load
continue
The baud rate to use may be different; or you might be using network
instead of serial.
> 2: arm-elf-gdb launches insight.
> attached target, saw it downloaded the program,
> tried to run, I don't the helloworld get printed
> anywhere. and redboot is stuck!(why)
Have you looked at the console? As in View->console
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine