S32k312 Eval board - Get frequency API issue

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

S32k312 Eval board - Get frequency API issue

165 Views
Thalapushpam1
Contributor I

Dear Sir/Madam,

Using S32k312 Mini Eval board for our application.  SW32K3_S32M27x_RTD_R21-11_5.0.0 RTD version used.

Wnen get clock frequency called getting hard fault error,  

Mcu_GetClockFrequency(SCS_CLK); - hard fault error

Mcu_GetClockFrequency(AIPS_PLAT_CLK); - hard fault error

Mcu_GetClockFrequency(CORE_CLK); - hard fault error

Mcu_GetClockFrequency(CLKOUT_RUN_CLK);  - working fine

Thalapushpam1_0-1779452196078.png

This is the sequence I used for clock init,

Thalapushpam1_1-1779452432930.png

 

Added some delay after Mcu_SetMode(McuModeSettingConf_0); & tried still got the same issue. Is it PLL stabilization take time? if yes how long?

I want to set the systick based on the core clock frequency using 

OsIf_Timer_System_Internal_Init() API. can you support. 
 
Thanks.

 

0 Kudos
Reply
1 Reply

54 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Thalapushpam1 

Could you please compare your configuration with the attached .mex file? I have created a simple test on my side, calling Mcu_GetClockFrequency for some of the clocks you mentioned, and I did not encounter any issues. For your reference, I am also attaching my main file.

Regarding the OsIf TimerClockRef, I believe the following thread could be a helpful reference:

Delay function using OSIF

 

BR, VaneB

0 Kudos
Reply