Time function return always -1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Time function return always -1

426 Views
jiteshka
Contributor I

I am using the "time" function, But it always returns as -1.

static time_t (*timePtr)(time_t *t) = time;

I am running the setup in debug mode. Please support what can be the issue.

0 Kudos
1 Reply

417 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this was already discussed here, for example:

https://community.nxp.com/t5/MPC5xxx/using-clock-function-time-h/m-p/735801

The best way is to do own implementation based on internal timers or you can use external real time clock circuit.

Regards,

Lukas

 

 

0 Kudos