<?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中的主题 S32 Desgin Studio Tool Issue</title>
    <link>https://community.nxp.com/t5/S32K/S32-Desgin-Studio-Tool-Issue/m-p/728427#M1799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using S32 Design studio IDE for S32K144 Controller coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;imported the Nxp sample code of clock genaration for S32K144, Controller registers are not updated if i tried to write in to the registers. Embedded Reg window is not at all updating in S32 Design studio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you move the cursor on the variables, then it is showing updated values but in reg window ,it is not updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SOSC_init_8MHz(void) {&lt;BR /&gt; SCG-&amp;gt;SOSCDIV=0x00000101; /* SOSCDIV1 &amp;amp; SOSCDIV2 =1: divide by 1 */&lt;BR /&gt; SCG-&amp;gt;SOSCCFG=0x00000024; /* Range=2: Medium freq (SOSC betw 1MHz-8MHz)*/&lt;BR /&gt; /* HGO=0: Config xtal osc for low power */&lt;BR /&gt; /* EREFS=1: Input is external XTAL */&lt;BR /&gt; while(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_LK_MASK); /* Ensure SOSCCSR unlocked */&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;&lt;/P&gt;&lt;P&gt;void SPLL_init_160MHz(void) {&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); /* Ensure SPLLCSR unlocked */&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000000; /* SPLLEN=0: SPLL is disabled (default) */&lt;BR /&gt; SCG-&amp;gt;SPLLDIV = 0x00000302; /* SPLLDIV1 divide by 2; SPLLDIV2 divide by 4 */&lt;BR /&gt; SCG-&amp;gt;SPLLCFG = 0x00180000; /* PREDIV=0: Divide SOSC_CLK by 0+1=1 */&lt;BR /&gt; /* MULT=24: Multiply sys pll by 4+24=40 */&lt;BR /&gt; /* SPLL_CLK = 8MHz / 1 * 40 / 2 = 160 MHz */&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); /* Ensure SPLLCSR unlocked */&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000001; /* LK=0: SPLLCSR can be written */&lt;BR /&gt; /* SPLLCMRE=0: SPLL CLK monitor IRQ if enabled */&lt;BR /&gt; /* SPLLCM=0: SPLL CLK monitor disabled */&lt;BR /&gt; /* SPLLSTEN=0: SPLL disabled in Stop modes */&lt;BR /&gt; /* SPLLEN=1: Enable SPLL */&lt;BR /&gt; while(!(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_SPLLVLD_MASK)); /* Wait for SPLL valid */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void NormalRUNmode_80MHz (void) { /* Change to normal RUN mode with 8MHz SOSC, 80 MHz PLL*/&lt;BR /&gt; SCG-&amp;gt;RCCR=SCG_RCCR_SCS(6) /* PLL as clock source*/&lt;BR /&gt; |SCG_RCCR_DIVCORE(0b01) /* DIVCORE= 2, Core clock = 160/2 MHz = 80 MHz*/&lt;BR /&gt; |SCG_RCCR_DIVBUS(0b01) /* DIVBUS = 2, bus clock = 40 MHz*/&lt;BR /&gt; |SCG_RCCR_DIVSLOW(0b10); /* DIVSLOW = 4, SCG slow, flash clock= 20 MHz*/&lt;BR /&gt; if ((SCG-&amp;gt;CSR &amp;amp; SCG_CSR_SCS_MASK &amp;gt;&amp;gt; SCG_CSR_SCS_SHIFT ) != 6) {}&lt;BR /&gt; /* Wait for sys clk src = SPLL */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void WDOG_disable (void){&lt;BR /&gt; WDOG-&amp;gt;CNT=0xD928C520; /* Unlock watchdog */&lt;BR /&gt; WDOG-&amp;gt;TOVAL=0x0000FFFF; /* Maximum timeout value */&lt;BR /&gt; WDOG-&amp;gt;CS = 0x00002100; /* Disable watchdog */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help us .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ambarish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 17:24:43 GMT</pubDate>
    <dc:creator>ambarishhundeka</dc:creator>
    <dc:date>2017-10-27T17:24:43Z</dc:date>
    <item>
      <title>S32 Desgin Studio Tool Issue</title>
      <link>https://community.nxp.com/t5/S32K/S32-Desgin-Studio-Tool-Issue/m-p/728427#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using S32 Design studio IDE for S32K144 Controller coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;imported the Nxp sample code of clock genaration for S32K144, Controller registers are not updated if i tried to write in to the registers. Embedded Reg window is not at all updating in S32 Design studio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you move the cursor on the variables, then it is showing updated values but in reg window ,it is not updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SOSC_init_8MHz(void) {&lt;BR /&gt; SCG-&amp;gt;SOSCDIV=0x00000101; /* SOSCDIV1 &amp;amp; SOSCDIV2 =1: divide by 1 */&lt;BR /&gt; SCG-&amp;gt;SOSCCFG=0x00000024; /* Range=2: Medium freq (SOSC betw 1MHz-8MHz)*/&lt;BR /&gt; /* HGO=0: Config xtal osc for low power */&lt;BR /&gt; /* EREFS=1: Input is external XTAL */&lt;BR /&gt; while(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_LK_MASK); /* Ensure SOSCCSR unlocked */&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;&lt;/P&gt;&lt;P&gt;void SPLL_init_160MHz(void) {&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); /* Ensure SPLLCSR unlocked */&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000000; /* SPLLEN=0: SPLL is disabled (default) */&lt;BR /&gt; SCG-&amp;gt;SPLLDIV = 0x00000302; /* SPLLDIV1 divide by 2; SPLLDIV2 divide by 4 */&lt;BR /&gt; SCG-&amp;gt;SPLLCFG = 0x00180000; /* PREDIV=0: Divide SOSC_CLK by 0+1=1 */&lt;BR /&gt; /* MULT=24: Multiply sys pll by 4+24=40 */&lt;BR /&gt; /* SPLL_CLK = 8MHz / 1 * 40 / 2 = 160 MHz */&lt;BR /&gt; while(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_LK_MASK); /* Ensure SPLLCSR unlocked */&lt;BR /&gt; SCG-&amp;gt;SPLLCSR = 0x00000001; /* LK=0: SPLLCSR can be written */&lt;BR /&gt; /* SPLLCMRE=0: SPLL CLK monitor IRQ if enabled */&lt;BR /&gt; /* SPLLCM=0: SPLL CLK monitor disabled */&lt;BR /&gt; /* SPLLSTEN=0: SPLL disabled in Stop modes */&lt;BR /&gt; /* SPLLEN=1: Enable SPLL */&lt;BR /&gt; while(!(SCG-&amp;gt;SPLLCSR &amp;amp; SCG_SPLLCSR_SPLLVLD_MASK)); /* Wait for SPLL valid */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void NormalRUNmode_80MHz (void) { /* Change to normal RUN mode with 8MHz SOSC, 80 MHz PLL*/&lt;BR /&gt; SCG-&amp;gt;RCCR=SCG_RCCR_SCS(6) /* PLL as clock source*/&lt;BR /&gt; |SCG_RCCR_DIVCORE(0b01) /* DIVCORE= 2, Core clock = 160/2 MHz = 80 MHz*/&lt;BR /&gt; |SCG_RCCR_DIVBUS(0b01) /* DIVBUS = 2, bus clock = 40 MHz*/&lt;BR /&gt; |SCG_RCCR_DIVSLOW(0b10); /* DIVSLOW = 4, SCG slow, flash clock= 20 MHz*/&lt;BR /&gt; if ((SCG-&amp;gt;CSR &amp;amp; SCG_CSR_SCS_MASK &amp;gt;&amp;gt; SCG_CSR_SCS_SHIFT ) != 6) {}&lt;BR /&gt; /* Wait for sys clk src = SPLL */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void WDOG_disable (void){&lt;BR /&gt; WDOG-&amp;gt;CNT=0xD928C520; /* Unlock watchdog */&lt;BR /&gt; WDOG-&amp;gt;TOVAL=0x0000FFFF; /* Maximum timeout value */&lt;BR /&gt; WDOG-&amp;gt;CS = 0x00002100; /* Disable watchdog */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help us .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ambarish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 17:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32-Desgin-Studio-Tool-Issue/m-p/728427#M1799</guid>
      <dc:creator>ambarishhundeka</dc:creator>
      <dc:date>2017-10-27T17:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Desgin Studio Tool Issue</title>
      <link>https://community.nxp.com/t5/S32K/S32-Desgin-Studio-Tool-Issue/m-p/728428#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry - but I can't reproduce your issue. Did you double click on particular register to view current data? It may not be obvious on first look.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested your code - here is state before write divider data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11418i949BE94A2479308A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here step after:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11452iB6D285F24456D18F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register value is updated by new value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS for ARM v2.0. If you have older one - please update to v2.0. In older versions was some refresh issues (already fixed in v2.0).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32-Desgin-Studio-Tool-Issue/m-p/728428#M1800</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2017-10-31T08:47:26Z</dc:date>
    </item>
  </channel>
</rss>

