Time function return always -1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Time function return always -1

427 次查看
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 项奖励
1 回复

418 次查看
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 项奖励