Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi all,
I'm using TI-RTOS for Tiva C, CCS7, compiler 16.9.1, XDC 3.32.1.22.
I need to save the date and time in my program. I use the following code :
In my .cfg file, I add:
var Seconds = xdc.useModule('ti.sysbios.hal.Seconds');
In your application .c code, include:
#include <ti/sysbios/hal/Seconds.h>
#include <time.h>
and I add the following code:
time_t ts; /* Set the current time in seconds since epoch */ Seconds_set(1432145807); ts = time(NULL); System_printf("%s", ctime(&ts));
My problem is that the
time
doesn
't update, It seems the function ti_sysbios_hal_Seconds_get() using by time() doesn'
t give the
new
seconds.
Can someone give me some advises to solve
this
problem ?
Thanks in advance,
Cheers,
Pierre Gogendeau