public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: printf does not work in helloworld.c
@ 2001-11-14  0:17 Jonathan Larmour
  2001-11-14  0:32 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 2001-11-14  0:17 UTC (permalink / raw)
  To: ahgu, eCos discussion





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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] Re: printf does not work in helloworld.c
  2001-11-14  0:17 [ECOS] Re: printf does not work in helloworld.c Jonathan Larmour
@ 2001-11-14  0:32 ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-11-14  0:32 UTC (permalink / raw)
  To: ahgu, eCos discussion





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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] Re: printf does not work in helloworld.c
       [not found] <20011115153315.40854.qmail@web14605.mail.yahoo.com>
@ 2001-11-13 20:58 ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-11-13 20:58 UTC (permalink / raw)
  To: ahgu, eCos discussion

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-22  5:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-14  0:17 [ECOS] Re: printf does not work in helloworld.c Jonathan Larmour
2001-11-14  0:32 ` Jonathan Larmour
     [not found] <20011115153315.40854.qmail@web14605.mail.yahoo.com>
2001-11-13 20:58 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).