2370200_en-US

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

2370200_en-US

2370200_en-US

S32k312 Eval board - Get frequency API issue

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.

Re: S32k312 Eval board - Get frequency API issue

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

Tags (1)
No ratings
Version history
Last update:
‎05-30-2026 05:49 AM
Updated by: