We are in the process of migrating from the S32K344 environment to the S32K314.
(Using SW32K3_RTD_R21-11_3.0.0_P07)
During GPT initialization, a core power-down occurs.
We identified that one of the differences between the S32K344 and the S32K314 is the generation of STM1_CLK (STMB_CLK).
(S32K344 successfully generates STMB_CLK.)
In the generated file Clock_Ip_PBcfg.c from the S32K314 environment, we modified the configuration to forcibly change the STMA_CLK to STMB_CLK and recompiled.
After this change, the GPT initialization proceeds normally, and the system boots up without any issues.
However, according to the RM.pdf, STM1_CLK (STMB_CLK) does not seem to exist in the S32K314.
How is it possible that the S32K314 operates with STM1_CLK (STMB_CLK), even though this clock is not documented as existing in the S32K314?
What is the correct way to configure the GPT module to use STM0_CLK instead of STM1_CLK as its clock source?
It looks like this question is a duplicate of S32k314 STM Clock question. Let's discuss there.