From: Andre Sebastien <sebastien.andre@sxb.bsf.alcatel.fr>
To: egcs@cygnus.com
Cc: ecos-discuss@sources.redhat.com
Subject: [ECOS] Question about Hello World eCos example
Date: Wed, 25 Jul 2001 07:16:00 -0000 [thread overview]
Message-ID: <3B5ED469.4A25761B@sxb.bsf.alcatel.fr> (raw)
In-Reply-To: <9860C773D04D834D83FD6FAD00A61E930F2040@gctsemi.gctsemi.com>
Hi everybody
I build Hello example et run it on an PID board !!!
I use GCC 2.95.3 for arm-lib and eCos
For load the ELF i use a LAUTERBACH and JTAG link !!!
The software is T32
I connect the serial port A on a PC with an HYPER-TERMINAL
configured with 38400 bauds, 8bits,NO PARITY,NO CONTROL
i execute the program i receive on the HYPER-TERMINAL this :
$O48656C6C6F2C2065436F7320776F726C64212035200A#BB
if we interprets it as HEX CODE it be :
$0
0x48 0x65 0x6C 0x6C 0x6F 0x2C 0x20 = Hello, (+ a backspace)
0x65 0x43 0x6F 0x73 0x20 = eCos (+ a backspace)
0x77 0x6F 0x72 0x6C 0x64 0x21 0x20 = world! (+ a backspace)
0x35 0x20 0x0A = 5 \n
#BB
It s exactly that i try to print : printf("Hello, eCos world! %d \n",5);
PS: what is $0 and #BB at the beginning and the end of output ?
But never the program go out the function "printf", it seems to go in a
infinite loop !!!!!
What does it wrong ?
best regards.
Seb.
next prev parent reply other threads:[~2001-07-25 7:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 6:09 [ECOS] question about stack assign for interrupt service routine Tony Ko
2001-07-25 7:16 ` Andre Sebastien [this message]
2001-07-25 7:38 ` [ECOS] Question about Hello World eCos example Robin Farine
2001-07-25 8:14 ` Andre Sebastien
2001-07-25 8:45 ` Robin Farine
2001-07-25 9:11 ` David Airlie
2001-07-25 11:26 ` [ECOS] question about stack assign for interrupt service routine Jonathan Larmour
2001-07-25 13:59 ` [ECOS] question about GCC for Arm Installation Grant Whitacre
2001-07-25 14:53 ` Jonathan Larmour
2001-07-25 7:52 [ECOS] Question about Hello World eCos example rob.wj.jansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B5ED469.4A25761B@sxb.bsf.alcatel.fr \
--to=sebastien.andre@sxb.bsf.alcatel.fr \
--cc=ecos-discuss@sources.redhat.com \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).