Hello,
On sections 28.3.9, 28.3.12, 28.3.15 and 28.3.18 I have found an inconsistency regarding the contents of the S32K1XX.h library provided through S32DesignStudio.
The sections refer to the SOSCDIV, SIRCDIV, FIRCDIV and SPLLDIV register maps. The error is consistent in all of them: the definitions are missing for the xxxxDIV1 bit fields, although they are present in both the S32k libraries and S32DS IDE debug/trace register definitions.
This caused issues when configuring the device (S32K148) as we had to experiment with the configurations of the divisions until we found this error.
As you can see, the bit field from 3:0 does not have a name, nor a definition/explanation of its configuration. We had assumed this was a reserved space and so it was left unused, however the IDE and libraries showed the opposite.
There is also an inconsistency between the cookbook and reference manuals, where the EREFS bitfield in the SOSCCFG register is defined to be:
0 - External reference clock selected
1 - Internal crystal oscillator of OSC selected
Where as the opposite is true for the cookbook. I have confirmed the RM is incorrect, given that the processor does not trigger SOSCVLD flag when configured according to reference manual, but works when configured following the Cookbook's instruction.
I hope this can be helpful for others. Greetings!