[ECOS] how to print timestamp in ecos

Andrew Lunn andrew@lunn.ch
Fri Apr 3 10:01:00 GMT 2009


On Fri, Apr 03, 2009 at 02:49:11AM -0700, gaurang wrote:
> 
> Hi,   
>      Any test code of wallclock and how to make makefile.I insert Wallclock
> I/O package
> (CYGPKG_IO_WALLCLOCK) and the ISO C date and time package
> (CYGPKG_LIBC_TIME) in my ecos and I use time() function,but I am not getting
> time.

Are you getting 1 Jan 1970? 

Does your board actually know the time? 
Does it have a battery backed up real time clock?
Do you have the drivers necessary to access it? This often means I2C
drivers and a specific driver for the RTC hardware.

        Andrew

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



More information about the Ecos-discuss mailing list