OSIF_TimeDelay freeze

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

OSIF_TimeDelay freeze

659 Views
karma_JC
Contributor I

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

0 Kudos
Reply
3 Replies

649 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

643 Views
karma_JC
Contributor I

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:

  1. MPC5748 EVB
  2. PEMirco Multilink Universal
  3. SDK PA RTM V3.0.3

Thanks

James

0 Kudos
Reply

658 Views
karma_JC
Contributor I

By the way, the application is in debug mode.

0 Kudos
Reply