This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How can I use diag_printf() in ecos ram application? thanks


Thanks a lot Jonathan, but could you give me a little detail how I can use
the diag_printf(). I changed it to following:

void cyg_user_start(void)
{
	diag_printf("Hello everyone\n");
}

but still no output from the console window (in Insight)

but when I load the program via hyperterminal as:
load -m xmodem

go 0x040000


then I can see the output from the hyperterminal.  Did I miss anything for
the mangler?


screen dump from the HyperTerminal


RedBoot(tm) bootstrap and debug environment [REDBOOT]
Non-certified release, version UNKNOWN - built 16:24:21, Feb 18 2003

Platform: EPXA1 system (ARM9)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x00002000-0x01f21000 available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
RedBoot> load -m xmodem
Entry point: 0x00040040, address range: 0x00040000-0x0004dc1c
xyzModem - CRC mode, 1177(SOH)/0(STX)/0(CAN) packets, 5 retries
RedBoot> go 0x040000
Hello everyone


Thank you very much.

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Jonathan Larmour
Sent: 18 February 2003 16:31
To: Qiang Huang
Cc: Ecos-Discuss
Subject: Re: [ECOS] How can I use diag_printf() in ecos ram application?
thanks


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


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]