<?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>topic s32k144 clock setting plz , first time in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767055#M29220</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I will be introduced to the process of S32K144 for the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing the numbers in the example code in the cookbook, but there was an error, so there is no way to check it. Are there a lot of things that went wrong? help me plz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "S32K144.h"&lt;/P&gt;&lt;P&gt;void SOSC_init_8MHz(void) {&lt;BR /&gt;SCG-&amp;gt;SOSCDIV=0x00000101; //분주1는 분주비1 분주2는 분주비 1&lt;BR /&gt;SCG-&amp;gt;SOSCCFG=0x00000024; //클럭 1MHz-8MHz, 외부말고 내부 크리스탈, LOW GAIN 오실레이터 선택&lt;BR /&gt;while(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_LK_MASK);&lt;BR /&gt;SCG-&amp;gt;SOSCCSR=0x00000001; /* LK=0: SOSCCSR can be written */&lt;BR /&gt;/* SOSCCMRE=0: OSC CLK monitor IRQ if enabled */&lt;BR /&gt;/* SOSCCM=0: OSC CLK monitor disabled */&lt;BR /&gt;/* SOSCERCLKEN=0: Sys OSC 3V ERCLK output clk disabled */&lt;BR /&gt;/* SOSCLPEN=0: Sys OSC disabled in VLP modes */&lt;BR /&gt;/* SOSCSTEN=0: Sys OSC disabled in Stop modes */&lt;BR /&gt;/* SOSCEN=1: Enable oscillator */&lt;BR /&gt;while(!(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_SOSCVLD_MASK)); /* Wait for sys OSC clk valid */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void SPLL_init_112MHz(void) {&lt;BR /&gt;while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //&lt;BR /&gt;SCG-&amp;gt;SPLLCSR = 0x00000000; //SPLL오프&lt;BR /&gt;SCG-&amp;gt;SPLLDIV = 0x00000201; // 분주2는 분주비4(1+3) 분주1은 분주비2(1+1)&lt;BR /&gt;SCG-&amp;gt;SPLLCFG = 0x000C0000; // MULT (기본16) + 12 28배&lt;BR /&gt;while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //&lt;BR /&gt;SCG-&amp;gt;SPLLCSR = 0x00000001; //SPLL 온&lt;BR /&gt;while(!(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_SPLLVLD_MASK)); //&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void HighSpeedRUNmode_112MHz(void) {&lt;BR /&gt;SCG-&amp;gt;HCCR=SCG_HCCR_SCS(6) //소스는 SPLL로 받는다.&lt;BR /&gt;|SCG_HCCR_DIVCORE(0b00) // 분주비1 112MHz&lt;BR /&gt;|SCG_HCCR_DIVBUS(0b01) // 분주비 1+1 해서 56MHz&lt;BR /&gt;|SCG_HCCR_DIVSLOW(0b11); // 분주비 1+3 해서 28MHz&lt;BR /&gt;while (((SCG-&amp;gt;CSR &amp;amp; SCG_CSR_SCS_MASK) &amp;gt;&amp;gt; SCG_CSR_SCS_SHIFT ) != 6) {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="클.jpg" style="width: 870px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252450iE7C8AE80F0D649A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="클.jpg" alt="클.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;클.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 07:39:20 GMT</pubDate>
    <dc:creator>Oido</dc:creator>
    <dc:date>2023-12-01T07:39:20Z</dc:date>
    <item>
      <title>s32k144 clock setting plz , first time</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767055#M29220</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I will be introduced to the process of S32K144 for the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing the numbers in the example code in the cookbook, but there was an error, so there is no way to check it. Are there a lot of things that went wrong? help me plz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "S32K144.h"&lt;/P&gt;&lt;P&gt;void SOSC_init_8MHz(void) {&lt;BR /&gt;SCG-&amp;gt;SOSCDIV=0x00000101; //분주1는 분주비1 분주2는 분주비 1&lt;BR /&gt;SCG-&amp;gt;SOSCCFG=0x00000024; //클럭 1MHz-8MHz, 외부말고 내부 크리스탈, LOW GAIN 오실레이터 선택&lt;BR /&gt;while(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_LK_MASK);&lt;BR /&gt;SCG-&amp;gt;SOSCCSR=0x00000001; /* LK=0: SOSCCSR can be written */&lt;BR /&gt;/* SOSCCMRE=0: OSC CLK monitor IRQ if enabled */&lt;BR /&gt;/* SOSCCM=0: OSC CLK monitor disabled */&lt;BR /&gt;/* SOSCERCLKEN=0: Sys OSC 3V ERCLK output clk disabled */&lt;BR /&gt;/* SOSCLPEN=0: Sys OSC disabled in VLP modes */&lt;BR /&gt;/* SOSCSTEN=0: Sys OSC disabled in Stop modes */&lt;BR /&gt;/* SOSCEN=1: Enable oscillator */&lt;BR /&gt;while(!(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_SOSCVLD_MASK)); /* Wait for sys OSC clk valid */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void SPLL_init_112MHz(void) {&lt;BR /&gt;while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //&lt;BR /&gt;SCG-&amp;gt;SPLLCSR = 0x00000000; //SPLL오프&lt;BR /&gt;SCG-&amp;gt;SPLLDIV = 0x00000201; // 분주2는 분주비4(1+3) 분주1은 분주비2(1+1)&lt;BR /&gt;SCG-&amp;gt;SPLLCFG = 0x000C0000; // MULT (기본16) + 12 28배&lt;BR /&gt;while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); //&lt;BR /&gt;SCG-&amp;gt;SPLLCSR = 0x00000001; //SPLL 온&lt;BR /&gt;while(!(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_SPLLVLD_MASK)); //&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void HighSpeedRUNmode_112MHz(void) {&lt;BR /&gt;SCG-&amp;gt;HCCR=SCG_HCCR_SCS(6) //소스는 SPLL로 받는다.&lt;BR /&gt;|SCG_HCCR_DIVCORE(0b00) // 분주비1 112MHz&lt;BR /&gt;|SCG_HCCR_DIVBUS(0b01) // 분주비 1+1 해서 56MHz&lt;BR /&gt;|SCG_HCCR_DIVSLOW(0b11); // 분주비 1+3 해서 28MHz&lt;BR /&gt;while (((SCG-&amp;gt;CSR &amp;amp; SCG_CSR_SCS_MASK) &amp;gt;&amp;gt; SCG_CSR_SCS_SHIFT ) != 6) {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="클.jpg" style="width: 870px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252450iE7C8AE80F0D649A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="클.jpg" alt="클.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;클.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 07:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767055#M29220</guid>
      <dc:creator>Oido</dc:creator>
      <dc:date>2023-12-01T07:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 clock setting plz , first time</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767479#M29248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226367"&gt;@Oido&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try by&amp;nbsp;indenting the code and adding the following lines to the beginning of the .c file:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#include "device_registers.h"	/* include peripheral declarations S32K144 */
#include "clocks_and_modes.h"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 21:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767479#M29248</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-12-01T21:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 clock setting plz , first time</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767589#M29254</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, first of all, thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would there be no big problems with the rest of the part except for the header file?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 09:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1767589#M29254</guid>
      <dc:creator>Oido</dc:creator>
      <dc:date>2023-12-02T09:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 clock setting plz , first time</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1768419#M29291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226367"&gt;@Oido&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code looks correct. I am attaching a .c file that you can also use as a reference for your code, and I suggest you look at the examples provided in the following link. They might be useful for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K-Examples/ta-p/1108990" target="_blank" rel="noopener"&gt;S32K Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 17:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-clock-setting-plz-first-time/m-p/1768419#M29291</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-12-04T17:48:45Z</dc:date>
    </item>
  </channel>
</rss>

