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

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

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

661 Views
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 

Tags (1)
0 Kudos
Reply
1 Reply

631 Views
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 Kudos
Reply