Error switching the clock from FIRC to PLL in s32k3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error switching the clock from FIRC to PLL in s32k3

1,822 次查看
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 项奖励
回复
2 回复数

1,797 次查看
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 项奖励
回复

1,756 次查看
vusal
Contributor III
Hi Shen,

No worries. Sounds good.

Thanks,
Vusal
0 项奖励
回复