About S32K312 clock switching requirements
Currently our TBOX developed based on S32K312 needs low power consumption, we plan to use 120MHZ and 750KHZ clocks, where the 750KHZ clock will be used for low power scenarios:

my clock configurations and Power mode configurations are as follows.
1. Very low speed run mode clock config

2. RUN MODE POWER config

3. Very Low speed run mode power config

4. PIN Config

My requirement is how to switch from 120MHZ to 750KHZ or 750KHZ to 120MHZ?
Currently for RUNMODE and VERY LOW SPEED RUN MODE, there are 2 different configurations for GPIO, POWER, and CLOCK, for the modes. Can I switch the clock this way:
(1) Power-on clock configuration
```
statusInitClock = Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
if (statusInitClock != CLOCK_IP_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_CLOCK_INIT_FAIL;
}
statusInitPort = Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
if (statusInitPort != SIUL2_PORT_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_PORT_INIT_FAIL;
}
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]);
```
(2) Switch from 120MHZ to 750KHZ
```
statusInitClock = Clock_Ip_Init(&Clock_Ip_aClockConfig[1]);
if (statusInitClock != CLOCK_IP_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_CLOCK_INIT_FAIL;
}
statusInitPort = Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS1, g_pin_mux_InitConfigArr1);
if (statusInitPort != SIUL2_PORT_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_PORT_INIT_FAIL;
}
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[1]);
```
(3) from 750KHZ back to 120MHZ
```
statusInitClock = Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
if (statusInitClock != CLOCK_IP_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_CLOCK_INIT_FAIL;
}
statusInitPort = Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
if (statusInitPort != SIUL2_PORT_SUCCESS) {
return E_POWER_MODE_TYPE_ERROR_PORT_INIT_FAIL;
}
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]);
```
Before switching, do I need to turn off the PIN, LPUART, ADC that are already turned on, and then turn them back on after the clock is switched?
Please help me to confirm the above information, currently my test keeps going to HardFault_Handler。
Best Wishes.