This is the mail archive of the ecos-discuss@sourceware.org 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: ecos-discuss Digest 3 May 2006 14:26:26 -0000 Issue 2208


Probably you have to disable the GDB mangler (see "Mangler used on diag output" in HAL options).



HTH,
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2@dave-tech.it


Subject:
printf or diag_printf prints $O48656c6c6f2c20776f726c64210a#75
From:
"Ram Sudhir Tadavarthi" <ram.tadavarthi@netco.de>
Date:
Wed, 3 May 2006 16:26:04 +0200
To:
<ecos-discuss@ecos.sourceware.org>

To:
<ecos-discuss@ecos.sourceware.org>


Hello all,


AIM:
To print "hello world\n" on console with eCos kernel in the project.


WHAT I DID:
I am a beginner to embedded world. I tried to bring up eCos on Motorola
pq2fads(MPC 8260 powerpc) evaluation board. I used vads HAL as starting
point and mostly finished the porting and was able to bring up the redboot
ROM monitor. Serial and network interfaces are functional from redboot.

PROBLEM DESCRIPTION:
Redboot console messages are displayed properly. I have created an eCos
image with hello world example(hello.c) and downloaded it over TFTP through
redboot "load" command and had given the "go" command.

I have seen the following message as output instead of "Hello, world!\n"
$O48656c6c6f2c20776f726c64210a#75


After searching in google, I understood this message is some gdb response to
hello world message. But I did not use the debugger to download the image
nor to run it. I did not understand why gdb came into picture when we try to
execute the image from redboot.


This is the first time I have ever created an eCos Image. I hope it is not a
configuration error in my project.

I am surprised why redboot which uses the same HAL works but the eCos Image
doesn't.

I did not get how to proceed further from this point. I will be obliged if
some one can give me pointers/suggestions/references to solve the problem.

For reference, I have enclosed the hello.c file. Please let me know If I
miss to provide any important message.

Thank you very much,
Ram
PS: tried to enclose ".ecc" file ezmlm-reject: fatal: Sorry, I don't accept messages larger than 128000 bytes
(#5.2.3)


hello.c
#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("Hello, world!\n");
    exit(0);
}



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


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