Hello, NXP support team
Our system have a s32k148 mcu and a SoC, MCU and SoC communication by SPI, SoC is master and MCU is slave.
Now we open MCU internal RTC and assign the clock as 1Khz LPO, but the clock is not accuracy, so we "runtime" adjust the trim value of LPO.
If the MCU need to adjust the trim value, it will call CLOCK_SYS_UpdateConfiguration
clockMan1_InitConfig0.pmcConfig.lpoClockConfig.trimValue = lpo_clock_trim_value;
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
Sometimes after the MCU update the trim value, the SoC's SPI driver will crash.
MCU is SPI slave, so it will use the clock from master, why the MCU change LPO clock will let SPI crash?
What relationship between LPO clock and SPI?