<?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>Kinetis Software Development KitのトピックRe: Clock configuration on K64 using KDS</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423881#M2285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kewal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , Jorge Gonzalez is right , you can refer to the demo aboard FRDM-K4:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28336i28C5878EDCEB62C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And i recommend you after enable the oscillator , delay some time to wait to all the 32KHZ to stabilize as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Enable the oscillator*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Wait to all the 32 kHz to stabilize, refer to the crystal startup time in the crystal datasheet*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(i=0;i&amp;lt;0x60000;i++);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 07:35:48 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-10-30T07:35:48Z</dc:date>
    <item>
      <title>Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423875#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying very hard to do the clock configuration. However after doing the required changes on the clock manager and importing all the generated files to the IAR project. We are still not able to get the required clock working or atleast not able to get any value when we call out &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint32_t TEMP = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; TEMP = CLOCK_SYS_GetSystemClockFreq();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so should we do any clock Init by calling out CLOCK_SYS_SetConfiguration() actually got to see that CLOCK_SYSupdateconfiguration is never called nor the clock init. Any hints about getting out of this problem The clock configuration was done as shown in snapshots below.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="90543_90543.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120724i3A9A36E9659F6186/image-size/large?v=v2&amp;amp;px=999" role="button" title="90543_90543.JPG" alt="90543_90543.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26728iE3453E02759F1AA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="90544_90544.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120725iB8D1BD768E0AFD58/image-size/large?v=v2&amp;amp;px=999" role="button" title="90544_90544.JPG" alt="90544_90544.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26943i43C81211C72C3650/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="90545_90545.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120726i74CB89097873C489/image-size/large?v=v2&amp;amp;px=999" role="button" title="90545_90545.JPG" alt="90545_90545.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture3.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27286i220E5B11FBA69C68/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.JPG" alt="Capture3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 19:37:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423875#M2279</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-10-22T19:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423876#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kewal,&lt;/P&gt;&lt;P&gt;- What's the version of KDS and KSDK ?&lt;/P&gt;&lt;P&gt;- Do you want copy the code generated on KDS to IAR ? Does it can work well on&amp;nbsp; KDS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423876#M2280</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-23T02:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423877#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS 3.0 with KSDK 1.2.0 with EWARM 7.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i am stuck with a hardfault error, as I am trying to use the same startup file generated by KDS (PE), So I am not sure where exactly or how to find the cause of the error. any inputs on this direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kewal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423877#M2281</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-10-26T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423878#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kewal,&lt;/P&gt;&lt;P&gt;- What hardfault error ? could you please screenshot it and show me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- About the clock of SDK , after configure it on PE,&amp;nbsp; generate code , the function&amp;nbsp; SystemInit (void) of code will&lt;/P&gt;&lt;P&gt;configure the clock&amp;nbsp; refer to the configuration on PE , you can set on breakpoint before download the project , you can see &lt;/P&gt;&lt;P&gt; it run to this function :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25841i7CF01C6DD818A52B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; You can still use those with the clock_manager APIs&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;CLOCK_SYS_Init()&lt;/STRONG&gt;, &lt;STRONG&gt;CLOCK_SYS_SetConfiguration()&lt;/STRONG&gt;, &lt;STRONG&gt;CLOCK_SYS_UpdateConfiguration()&lt;/STRONG&gt;, etc) to configure the clock .&lt;/P&gt;&lt;P&gt;- About the clock&amp;nbsp; of sdk , you can also refer to here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/520241"&gt;Clock configuration with KDS3.0/KSDK1.2.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 03:00:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423878#M2282</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-27T03:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423879#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those links were of help to me.&lt;/P&gt;&lt;P&gt;I sort of fixed the problem and but sort of not fixed the problem as well. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the RTC osc enabled as you could see and the hardfault error is coming right when it hits the if condition(below in bold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef CLOCK_SETUP&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((RCM-&amp;gt;SRS0 &amp;amp; RCM_SRS0_WAKEUP_MASK) != 0x00U)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((PMC-&amp;gt;REGSC &amp;amp; PMC_REGSC_ACKISO_MASK) != 0x00U)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC-&amp;gt;REGSC |= PMC_REGSC_ACKISO_MASK; /* Release hold with ACKISO:&amp;nbsp; Only has an effect if recovering from VLLSx.*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;#ifdef SYSTEM_RTC_CR_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0x00U) { /* Only if the OSCILLATOR is not already enabled */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR = (uint32_t)((RTC_CR &amp;amp; (uint32_t)~(uint32_t)(RTC_CR_SC2P_MASK | RTC_CR_SC4P_MASK | RTC_CR_SC8P_MASK | RTC_CR_SC16P_MASK)) | (uint32_t)SYSTEM_RTC_CR_VALUE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR |= (uint32_t)RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR &amp;amp;= (uint32_t)~(uint32_t)RTC_CR_CLKO_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to me everything is fine on the hardware side. I am able to run the same configuration on the other hardware with almost same configuration. &lt;/P&gt;&lt;P&gt;Can you direct to understand how exactly the RTC works of there is something missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 20:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423879#M2283</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-10-29T20:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423880#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kewal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is VBAT pin powered in your custom hardware? Otherwise the execution will enter a hardfault when trying to access any RTC register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 22:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423880#M2284</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-10-29T22:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423881#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kewal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , Jorge Gonzalez is right , you can refer to the demo aboard FRDM-K4:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28336i28C5878EDCEB62C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And i recommend you after enable the oscillator , delay some time to wait to all the 32KHZ to stabilize as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Enable the oscillator*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Wait to all the 32 kHz to stabilize, refer to the crystal startup time in the crystal datasheet*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(i=0;i&amp;lt;0x60000;i++);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 07:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423881#M2285</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-30T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Clock configuration on K64 using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423882#M2286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks that helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was actually the VBAT which was actually not connected to the 3.3V and the RTC register was being accessed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clock-configuration-on-K64-using-KDS/m-p/423882#M2286</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-10-30T18:24:11Z</dc:date>
    </item>
  </channel>
</rss>

