OSIF_TimeDelay freeze

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

OSIF_TimeDelay freeze

1,753 次查看
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 项奖励
回复
3 回复数

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

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

1,752 次查看
karma_JC
Contributor I

By the way, the application is in debug mode.

0 项奖励
回复