I'm using S32KDS to config the clock of S32K144.
I tried to set SOSC frequency to 4 MHz when SOSC range is selected as medium. However an error exists (as is shown in the picture). It says 'Output frequency must in the range: 8 MHz ~ 40 MHz (See constraint 1)' (translated from chinese). So, can 4 MHz oscillator be used as SOSC, or why shouldn't it be used?
Also, when I set 'External reference select' to 'External reference clock', the error disappears. But I didn't find any related limits in reference manual (S32K1XXRM Rev. 14, 09/2021) or datasheet (S32K1xx Data Sheet Rev. 14, 08/2021).
S32DS version: 3.5.2 230226 (Update 2)
Package version(not sure whether this package is used): S32K1xx development package 1.0.0
Solved! Go to Solution.
This seems to be a bug in S32K1XX SDK RTM 4.0.1. In S32DS 3.4 + S32K1XX SDK RTM 4.0.3, this error doesn't exist. Attention, S32K1XX SDK RTM 4.0.3 can NOT be used in S32DS 3.5. So S32DS 3.4 is recommanded to use S32DS 3.4 instead.
Thanks to Shen for help.
This seems to be a bug in S32K1XX SDK RTM 4.0.1. In S32DS 3.4 + S32K1XX SDK RTM 4.0.3, this error doesn't exist. Attention, S32K1XX SDK RTM 4.0.3 can NOT be used in S32DS 3.5. So S32DS 3.4 is recommanded to use S32DS 3.4 instead.
Thanks to Shen for help.
Hi zhaoxinping,
Do you need PLL?
If PLL is used, then oscillator needs to be in high range only, SCG_SOSCCFG[RANGE] on 11 as used in reference clock.
When SCG_SOSCCFG[RANGE]=11 , frequency of selected crystal oscillator should be 8 MHz to 40 MHz.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------