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
This is the sequence I used for clock init,
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
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:
BR, VaneB