Hi!!!
OSIF_TimeDelay seems to be "freeze" when my program called into to it. I'm suspecting the issue is in clock setting in OSIF component. Currently, the clock setting in OSIF is "default". What did I do wrong here?????
Thanks
James
Hi,
take a look at this thread:
https://community.nxp.com/t5/MPC5xxx/stuck-in-OSIF-TimeDelay/m-p/1348191#M19273
It's known issue in S32 Design Studio. It's not a problem when using another debugger (like Lauterbach mentioned in the thread) or in standalone mode without debugger.
Regards,
Lukas
Hi Lukas:
In one of sample examples "adc_pal_mpc5748g", OSIF_TimeDelay is actually returned accordingly by "stepping over" in debug mode. I stepped through OSIF_TimeDelay in this sample code. PIT_MCR freeze actually set set to 1 in function "osif_UpdateTickConfig":
#if FEATURE_OSIF_PIT_FRZ_IN_DEBUG
base->MCR |= PIT_MCR_FRZ(1u); /* stop the timer in debug */
#endif /* FEATURE_OSIF_PIT_FRZ_IN_DEBUG */
But, when I set up my own project, "stepping over" in debugging on "OSIF_TimeDelay" won't be returned. Is there any other setting or component being missed in my project?
For my setup:
Thanks
James
By the way, the application is in debug mode.