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.
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