<?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 MicrocontrollersのトピックK10 RTC Configuration</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-RTC-Configuration/m-p/559888#M33809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm a newbie to kinetis MCUs and CW too. I'm trying to configure RTC on MK10DX64VLH5 which will display the time on LCD and print the date and time at some pre-defined intervals on an APS thermal printer. I have 2 crystals of 32.768Mhz each for SOSCI SOSCO - Connected to PTA18 and PTA19 respectively and OSCI, OSCO - Connected to XTAL32, EXTAL32. VBAT is also charged up to 3 Volts&lt;/P&gt;&lt;P&gt;For this i've been trying to configure RTC but every time I debug the debug gets halted in:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */&lt;/P&gt;&lt;P&gt;&amp;nbsp; PE_DEBUGHALT();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;and if I try to step over it goes and gets stuck in:&lt;/P&gt;&lt;P&gt;SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;--&amp;gt;&amp;nbsp; if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */&lt;/P&gt;&lt;P&gt;I found a similar discussion &lt;A _jive_internal="true" href="https://community.nxp.com/thread/302968?q=k10%20rtc" title="https://community.nxp.com/thread/302968?q=k10%20rtc"&gt;https://community.nxp.com/thread/302968?q=k10%20rtc&lt;/A&gt;&amp;nbsp;&amp;nbsp; and tried to resolve as suggested there but failed. I'm sure im missing some smal details in the clock configuration.&lt;/P&gt;&lt;P&gt;PFB my MCu's clock configurations and suggest me what to do and how to go about this particular issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60588iF557FBA096D64E45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration1.jpg" alt="Clock Configuration1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60598iDFCCBF0633A1FA93/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration2.jpg" alt="Clock Configuration2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60603iD848E36557D2AF02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration3.jpg" alt="Clock Configuration3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PFB The RTC component configuration too...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RTC Configuration.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60604iDB19B206B6E7FBF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="RTC Configuration.jpg" alt="RTC Configuration.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feel Free to ask any further questions.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prafful Sagar:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 08:43:39 GMT</pubDate>
    <dc:creator>psjhawer</dc:creator>
    <dc:date>2016-06-22T08:43:39Z</dc:date>
    <item>
      <title>K10 RTC Configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-RTC-Configuration/m-p/559888#M33809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm a newbie to kinetis MCUs and CW too. I'm trying to configure RTC on MK10DX64VLH5 which will display the time on LCD and print the date and time at some pre-defined intervals on an APS thermal printer. I have 2 crystals of 32.768Mhz each for SOSCI SOSCO - Connected to PTA18 and PTA19 respectively and OSCI, OSCO - Connected to XTAL32, EXTAL32. VBAT is also charged up to 3 Volts&lt;/P&gt;&lt;P&gt;For this i've been trying to configure RTC but every time I debug the debug gets halted in:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */&lt;/P&gt;&lt;P&gt;&amp;nbsp; PE_DEBUGHALT();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;and if I try to step over it goes and gets stuck in:&lt;/P&gt;&lt;P&gt;SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;--&amp;gt;&amp;nbsp; if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */&lt;/P&gt;&lt;P&gt;I found a similar discussion &lt;A _jive_internal="true" href="https://community.nxp.com/thread/302968?q=k10%20rtc" title="https://community.nxp.com/thread/302968?q=k10%20rtc"&gt;https://community.nxp.com/thread/302968?q=k10%20rtc&lt;/A&gt;&amp;nbsp;&amp;nbsp; and tried to resolve as suggested there but failed. I'm sure im missing some smal details in the clock configuration.&lt;/P&gt;&lt;P&gt;PFB my MCu's clock configurations and suggest me what to do and how to go about this particular issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60588iF557FBA096D64E45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration1.jpg" alt="Clock Configuration1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60598iDFCCBF0633A1FA93/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration2.jpg" alt="Clock Configuration2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Configuration3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60603iD848E36557D2AF02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Configuration3.jpg" alt="Clock Configuration3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PFB The RTC component configuration too...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RTC Configuration.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60604iDB19B206B6E7FBF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="RTC Configuration.jpg" alt="RTC Configuration.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feel Free to ask any further questions.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prafful Sagar:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-RTC-Configuration/m-p/559888#M33809</guid>
      <dc:creator>psjhawer</dc:creator>
      <dc:date>2016-06-22T08:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: K10 RTC Configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-RTC-Configuration/m-p/559889#M33810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prafful,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You said:"I have 2 crystals of &lt;SPAN style="color: #e23d39;"&gt;32.768Mhz&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you add 32.768Mhz? not 32.768Khz in your external circuit?&amp;nbsp; You need to use 32.768Khz crystal and connect it in the EXTAL32 and XTAL32 pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp; For the codewarrior RTC PE code, please refer to this TWR-K21D50M and configure your code again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I already attached it, please refer to it at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 02:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-RTC-Configuration/m-p/559889#M33810</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-06-23T02:38:48Z</dc:date>
    </item>
  </channel>
</rss>

