Error switching the clock from FIRC to PLL in s32k3

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

Error switching the clock from FIRC to PLL in s32k3

1,825 Views
vusal
Contributor III

Hi,

I am trying to manually (bare-metal) switch the clock from FIRC to PLL; however, I am getting the following error in the status register. For clock switching, I used MC_CGM registers.

"010b - Switch after the request failed because of an inactive target clock and the current clock is FIRC."

Does that mean PLL needs to be turned on somewhere first before switching? If so, where?

I tried setting up PLL registers such as PLLCR and PLLFM; however, any access to PLL registers generates hard fault. Any idea why?

Thanks!
Vusal

0 Kudos
Reply
2 Replies

1,800 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Vusal,

Sorry, I was a little busy so I didn't reply to you in time.
This question seems to be related to your previous question How to switch clock source from FIRC to PLL_PHI0 for S32K3?. Let's continue the discussion over there.


Best Regards,
Robin

0 Kudos
Reply

1,759 Views
vusal
Contributor III
Hi Shen,

No worries. Sounds good.

Thanks,
Vusal
0 Kudos
Reply