Hello Community,
1. what is the difference between core clock, system clock , bus clock and flash clock.
2. I configured the mcu with 48MHZ FIRC , 8 MHZ SIRC and 40 MHZ SOSC (RUN MODE). System clock selector (FIRC_CLK). SPLL is disabled . check the below screenshot.
3. Now in RUN mode (without SPLL), I can achieve upto 48 MHZ with FIRC. My question is If I want to achieve 80 MHZ what configuration I have to do.
4. SPLL CLK min is 90 MHZ and My MCU max clock is 80MHZ. So I disabled the SPLL.
Thanks in advance,
Sarwath
Solved! Go to Solution.
Hi @sarwath
The output frequency of the SPLL must be in range of 180 MHz - 320 MHz, the ones that can be configured in 80MHz are the SPLLDIV1_CLK and SPLLDIV2_CLK.
Refer to the image below which shows the settings I made:
Hi @sarwath
See section 27.3 Clock definitions of the S32K1xx MCU Family - Reference Manual.
Regarding to the configuration of the clocks I suggest you use the Cloks tool from ConfigTools included in S32DS 3.4, where you can try different configurations to obtain the desired values.
B.R.
VaneB
Hello @VaneB ,
Thanks for your response.
I read the section 27.3 and I configured the clock in processor expert.
My S32K144 part number (FS32K144HFT0MLLR), its max clock speed is 80 MHZ. Currently I am configured to 48MHZ by FIRC_CLK.
I tried to configure 80 MHZ with SPLL but I got warning due to SPLL min and max frequency. If I want achieve the 80 MHZ what configuration I have to do in processor expert clock settings.
Thanks in advance,
Sarwath
Hi @sarwath
The output frequency of the SPLL must be in range of 180 MHz - 320 MHz, the ones that can be configured in 80MHz are the SPLLDIV1_CLK and SPLLDIV2_CLK.
Refer to the image below which shows the settings I made:
Thanks @VaneB . I'm just curious which IDE you're using. I'm using the S32DS IDE, and I don't see any clock setting GUIs like yours.
Hi @VaneB,
Why are my S32DS options so different from yours? I have the processor expert instead of config tools.
Hi @sarwath
It is because the version is S32 Design Studio 3.4 – Windows/Linux
Hi @VaneB ,
S32k144 part number : FS32K144HAT0MLLT
I understood how to run my MCU @80Mhz. Now I want to change the system clock source because the FIRC is selected as the system clock source by default (48MHz).
how to modify the system clock source to select the SPLL as source.
I thought the below instruction will set SPLL as system clock source
//Configure the system clock source and dividers, depending on power mode
SCG->RCCR =
SCG_RCCR_SCS(6)|SCG_RCCR_DIVCORE(1)|SCG_RCCR_DIVBUS(1)|SCG_RCCR_DIVSLOW(2);
But I am not getting SPLL as system clock source.
In all examples they following instructions are used to set clocks,
If I use above code to set the clocks I am getting hard fault. I want to know why the above clock settings is not working for me.
Thanks in advance,
Sarwath