This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How can I use diag_printf() in ecos ram application? thanks
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Qiang Huang <jameshq at liverpool dot ac dot uk>
- Cc: Ecos-Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 18 Feb 2003 16:31:04 +0000
- Subject: Re: [ECOS] How can I use diag_printf() in ecos ram application? thanks
- References: <BDEPKKELILOKGOAOMONOIEILCBAA.jameshq@liv.ac.uk>
Qiang Huang wrote:
> Hi all:
> I have made a port for EPXA1 altera board(ARM9) (RedBoot as well), but
> when I launched my ram startup ecos application, and run to
> diag_printf("hello everyone") there is no output from the console (I used
> Insight GDB and I can't see any output from the console windows).
>
> void cyg_user_start(void)
> {
> diag_printf("Hello everyone!!");
> }
You forgot the trailing \n. The GDB 'O' packet (in the remote protocol)
output is line oriented.
> BTW how can I download the srec file by redboot into the system RAM by using
> the hyperterminal not by using the Insight GDB?
load -m srec and then send the file using hyperterminal's send file
functionality. There's a timeout so don't hang around though! However we
did sometimes find hyperterminal to be unreliable in the past.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss