From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Sebastien To: egcs@cygnus.com Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Question about Hello World eCos example Date: Wed, 25 Jul 2001 08:14:00 -0000 Message-id: <3B5EE227.825CF6F9@sxb.bsf.alcatel.fr> References: <9860C773D04D834D83FD6FAD00A61E930F2040@gctsemi.gctsemi.com> <3B5ED469.4A25761B@sxb.bsf.alcatel.fr> <86y9pd9iq7.fsf@halftrack.hq.acn-group.ch> X-SW-Source: 2001-07/msg00784.html Thanks a lot Robin Farin and Rob Jansen !! So now it s work nice !!! but Robin Farin what is exactly this component CYDBG_HAL_DIAG_TO_DEBUG_CHAN ??? it seems to disable the GDB PROTOCOLS for the SERIAL ports ? How can i know the behaviour of these components ? thx. Sebastien. Robin Farine wrote: > 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