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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

178件の閲覧回数
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.png

 

 

himonkoch_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 返信

148件の閲覧回数
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 件の賞賛
返信