How to switch between different clock configrations during runtime in S32k312?

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

How to switch between different clock configrations during runtime in S32k312?

1,060 次查看
himonkoch
Contributor III

I need to switch between different Clock configurations during runtime in a S32K312-Q172 EVB.

The Various Clock Configurations were made using the S32 Design Studio Clock Functional Group Settings as shown below:

himonkoch_1-1727263151338.pnghimonkoch_1-1727263151338.png

 

 

himonkoch_0-1727262392694.pnghimonkoch_0-1727262392694.png

Any given Clock config can be initialized using the Clock_Ip_Init() function. My question is: can I switch between different Clock configurations using only Clock_Ip_Init()? There is no Clock_Ip_Deinit() function that will make sure that the previous clock config is de-activated.

 

S32K312EVB-Q172 

标记 (1)
0 项奖励
回复
1 回复

1,030 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@himonkoch

yes, you can use "Clock_Ip_Init" to switch to differenct clock settings. 

This API will first switch the MCU clock to a safe state, and then switch the clock configuration

0 项奖励
回复