<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32KのトピックRe: S32k118 operating on external clock</title>
    <link>https://community.nxp.com/t5/S32K/S32k118-operating-on-external-clock/m-p/2356007#M58188</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260942"&gt;@Luke_John&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There seems to be some confusion regarding CLKOUT. CLKOUT does not output the raw source clock frequency directly; instead, it depends on the following configuration fields:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SIM_CHIPCTL[CLKOUTSEL]&lt;/LI&gt;
&lt;LI&gt;SIM_CHIPCTL[CLKOUTDIV]&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Additionally, CLKOUT is limited to a maximum frequency of 20 MHz, as stated in Section 7.5.7 of the S32K1xx Data Sheet, Rev. 15.&lt;/P&gt;
&lt;P&gt;Regarding OCU, as you may know, it relies on the FTM module. The FTM supports three clock source options:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;System clock (SYS_CLK): for S32K11x devices, this clock can operate at up to 48 MHz in RUN mode.&lt;/LI&gt;
&lt;LI&gt;Fixed-frequency clock: provided by RTC_CLK.&lt;/LI&gt;
&lt;LI&gt;External clock: selectable from SOSCDIV1_CLK, SIRCDIV1_CLK, FIRCDIV1_CLK, SPLLDIV1_CLK, or other available external clock sources.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As for the configuration itself, there is an OCU example project provided with the RTDs. I recommend taking a look at that example as a reference for the correct setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2026 20:15:05 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2026-04-24T20:15:05Z</dc:date>
    <item>
      <title>S32k118 operating on external clock</title>
      <link>https://community.nxp.com/t5/S32K/S32k118-operating-on-external-clock/m-p/2355734#M58165</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am configuring an NXP S32K118 to operate from an external clock source using the S32K118 LQFP48 EVB. According to the board schematic, the EVB provides a 40 MHz external oscillator. I configured the EXTAL and XTAL pins to use this external clock source.&lt;/P&gt;&lt;P&gt;To verify the system clock frequency, I enabled a timer and routed the system clock to a CLKOUT pin. Based on the reference manual, CLKOUT is expected to reflect the system/core clock. However, when measuring the CLKOUT signal using a PicoScope, the observed frequency is 10 MHz instead of the expected 40 MHz.&lt;/P&gt;&lt;P&gt;Additionally, I configured an OCU (Output Compare Unit) peripheral to generate periodic interrupts using OCU_EXTERNAL_CLOCK as its clock source. Assuming a 40 MHz clock, the expected tick period is 25 ns, so 65,530 ticks should correspond to approximately 1.6 ms. However, no interrupts are fired when using OCU_EXTERNAL_CLOCK. When switching the clock source to OCU_SYSTEM_CLOCK, the OCU operates correctly and interrupts are triggered as expected.&lt;/P&gt;&lt;P&gt;This suggests either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The external clock is not being used as intended,&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The system clock is being divided (e.g., by a factor of 4, explaining the 10 MHz observation), or&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The OCU external clock source is not properly configured or routed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you clarify:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Whether CLKOUT directly reflects the core/system clock or a divided version of it.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The correct configuration steps required to ensure the MCU runs at 40 MHz from the external oscillator.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The correct usage and clock source mapping for OCU_EXTERNAL_CLOCK, and why it does not fire interrupts in this configuration.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have attached the project for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 08:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k118-operating-on-external-clock/m-p/2355734#M58165</guid>
      <dc:creator>Luke_John</dc:creator>
      <dc:date>2026-04-24T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32k118 operating on external clock</title>
      <link>https://community.nxp.com/t5/S32K/S32k118-operating-on-external-clock/m-p/2356007#M58188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260942"&gt;@Luke_John&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There seems to be some confusion regarding CLKOUT. CLKOUT does not output the raw source clock frequency directly; instead, it depends on the following configuration fields:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SIM_CHIPCTL[CLKOUTSEL]&lt;/LI&gt;
&lt;LI&gt;SIM_CHIPCTL[CLKOUTDIV]&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Additionally, CLKOUT is limited to a maximum frequency of 20 MHz, as stated in Section 7.5.7 of the S32K1xx Data Sheet, Rev. 15.&lt;/P&gt;
&lt;P&gt;Regarding OCU, as you may know, it relies on the FTM module. The FTM supports three clock source options:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;System clock (SYS_CLK): for S32K11x devices, this clock can operate at up to 48 MHz in RUN mode.&lt;/LI&gt;
&lt;LI&gt;Fixed-frequency clock: provided by RTC_CLK.&lt;/LI&gt;
&lt;LI&gt;External clock: selectable from SOSCDIV1_CLK, SIRCDIV1_CLK, FIRCDIV1_CLK, SPLLDIV1_CLK, or other available external clock sources.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As for the configuration itself, there is an OCU example project provided with the RTDs. I recommend taking a look at that example as a reference for the correct setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 20:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k118-operating-on-external-clock/m-p/2356007#M58188</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-04-24T20:15:05Z</dc:date>
    </item>
  </channel>
</rss>

