This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about Hello World eCos example
Andre Sebastien <sebastien.andre@sxb.bsf.alcatel.fr> writes:
[...]
> 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 ?
Not $0, but $O (O packet). The GDB protocol uses such packets to output text
non-related to GDB itself (e.g. your printf). The protocol also appends a
checksum to every packet, the #BB in your case.
> But never the program go out the function "printf", it seems to go in a
> infinite loop !!!!! What does it wrong ?
It's waiting for an ack from the remote side of a GDB connection !!!!!
Try to set the option below in your ecos.ecc:
cdl_component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN {
user_value 0
};
[...]
Robin