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


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


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