public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] [ecos]hanger in printf
@ 2009-02-27 10:57 Robert Brusa
  2009-02-27 11:19 ` Andrew Lunn
  2009-03-13 12:32 ` [ECOS] " Robert Brusa
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Brusa @ 2009-02-27 10:57 UTC (permalink / raw)
  To: ecos-discuss

Hi
Following a recent update (Jan 09) of ecos from V2.0 to the "unstable"  
version and migration to the new gnutools arm-eabi of codesourcery, I run  
into a hanger of a printf statement:

void IsInitMode(void)
{
	static bool first = true;
	static unsigned long int t1, t0 = 0;	// time in units of 10 ms
	t1 = cyg_current_time();
	if ( ( t1 - t0 > 600 * SEC2TICS ) || first) { // msg repeats every minute
		first = false;
		printf("\nstatus is INIT - manual help required");
		t0 = t1;
	}
} //end IsInitMode

No output appears on ser0 or ser1 and a breakpoint at t0 = is never  
reached.

When using diag_printf instead of printf, the message is output on ser1.  
My system is configured to use ser1 for diagnostics. In the earlier  
version, printf-output also appeared on ser1. I have digged somewhat into  
the problem, but no conclusion so far. I can see that the output (should?)  
go to stdiostream. Sometimes later it calls cyg_io_write, but the  
device-handle is zero. A configuration error? - but which? Thanks and  
regards
    Robert

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-13  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 10:57 [ECOS] [ecos]hanger in printf Robert Brusa
2009-02-27 11:19 ` Andrew Lunn
2009-02-27 15:40   ` Robert Brusa
2009-03-13 12:32 ` [ECOS] " Robert Brusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).