Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS/AM5728: AM5728 RTOS clock is faster than the real time

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

my board is EVMam5728 ,CCS is v6.13 ,SDK is 1_0_4

now I use the "seconds"just  following  the help :

Usage example with run-time support library:
  #include <ti/sysbios/hal/Seconds.h>
  #include <time.h>

  time_t t;
  struct tm *ltm;
  char *curTime;

  Seconds_set(STARTTIME);

  t = time(NULL);
  ltm = localtime(&t);
  curTime = asctime(ltm);
  System_printf("Time(GMT): %s\n", curTime);

and I can get the time,but it will faster about 2s than the real time.

Why I ? What should  I  do to fix it?


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>