Time function return always -1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Time function return always -1

433件の閲覧回数
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 返信

424件の閲覧回数
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 件の賞賛