From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Farine To: Andre Sebastien Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Question about Hello World eCos example Date: Wed, 25 Jul 2001 07:38:00 -0000 Message-id: <86y9pd9iq7.fsf@halftrack.hq.acn-group.ch> References: <9860C773D04D834D83FD6FAD00A61E930F2040@gctsemi.gctsemi.com> <3B5ED469.4A25761B@sxb.bsf.alcatel.fr> X-SW-Source: 2001-07/msg00782.html Andre Sebastien 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