OSIF_TimeDelay freeze

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

OSIF_TimeDelay freeze

1,803件の閲覧回数
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,793件の閲覧回数
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,787件の閲覧回数
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,802件の閲覧回数
karma_JC
Contributor I

By the way, the application is in debug mode.

0 件の賞賛
返信