<?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 Re: RTC Initialization issue with LPC4367 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891292#M35731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gaurav More,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If the project can work well on demo board, while failed on your custom board,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I&amp;nbsp; think you need check your hardware, also I will use a LPClink2 to debug your project, will &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;tell you the result .ASAP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 10:06:59 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-05-14T10:06:59Z</dc:date>
    <item>
      <title>RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891290#M35729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am LPC4367 and I am testing internal RTC with my customize development board of my project. I am facing issue with RTC init . Follwing is the initialization sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_RTCEnable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 2-Second delay after enabling RTC clock */&lt;BR /&gt; LPC_ATIMER-&amp;gt;DOWNCOUNTER = 2048;&lt;BR /&gt; while (LPC_ATIMER-&amp;gt;DOWNCOUNTER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable RTC */&lt;BR /&gt; Chip_RTC_Enable(pRTC, DISABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable Calibration */&lt;BR /&gt; Chip_RTC_CalibCounterCmd(pRTC, DISABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Reset RTC Clock */&lt;BR /&gt; Chip_RTC_ResetClockTickCounter(pRTC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear counter increment and alarm interrupt */&lt;BR /&gt; pRTC-&amp;gt;ILR = RTC_IRL_RTCCIF | RTC_IRL_RTCALF;&lt;BR /&gt; while (pRTC-&amp;gt;ILR != 0) {}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear all register to be default */&lt;BR /&gt; pRTC-&amp;gt;CIIR = 0x00;&lt;BR /&gt; pRTC-&amp;gt;AMR = 0xFF;&lt;BR /&gt; pRTC-&amp;gt;CALIBRATION = 0x00;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i runt the code in debug mode using LPClink2 ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The program was unable to run through the do-while loop after the LPC_RTC-&amp;gt;CCR |= RTC_CCR_CTCRST statement inside "&lt;SPAN style="color: #3d3d3d;"&gt;Chip_RTC_ResetClockTickCounter(pRTC);"&lt;/SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Then it crashed eventually. What is the problem? Please help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But the same code when I run with the evaluation board OM13088 then it work fine. I have attached the project for your reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I also refered&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/438393"&gt;https://community.nxp.com/thread/438393&lt;/A&gt;&amp;nbsp;but there also no such solution found.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2019 09:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891290#M35729</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-11T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891291#M35730</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;Any input regarding the query ?. Please share the same since it is required in my project&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891291#M35730</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-13T10:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891292#M35731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gaurav More,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If the project can work well on demo board, while failed on your custom board,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I&amp;nbsp; think you need check your hardware, also I will use a LPClink2 to debug your project, will &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;tell you the result .ASAP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 10:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891292#M35731</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-05-14T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891293#M35732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;I checked the hardware of OM13088 with respect to the RTC Circuit and also compared it with the customized the board circuit. Check for the attached schematic for the same.&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/81149i74D392968F0F959A/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;the controller used in the eval board is LPC4367JET100 and programming is done using the LPClink2 debugger.&lt;/P&gt;&lt;P&gt;Also the schematic of the customize board given below&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/81150i63DA6379B4EEC532/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;The controller used is&amp;nbsp;LPC4367JBD208E. But the same code is working fine with the eval board. also i tried to chec by shorting the crystal Y2 and checked whether it stuck in the code but it worked fine and I am able to reset the RTC using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPC_RTC-&amp;gt;CCR |= RTC_CCR_CTCRST this statement while the same code stuck in thei line and the code crashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Let me know if I am missing any initialization routine. also one more thing I am using LPCLink2 debugger of OM13088 to debug my customize board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Waiting for your reply.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 03:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891293#M35732</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-15T03:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891294#M35733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTC Issue resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the hardware the compare it with eval board the problem was related to the crystal. It was connected in reverse. made the modification and checked. it is working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 06:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891294#M35733</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-16T06:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Initialization issue with LPC4367</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891295#M35734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Gaurav More&lt;/SPAN&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;OK，thanks for your sharing, I have test your code on my side, it can work well.&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, 17 May 2019 01:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Initialization-issue-with-LPC4367/m-p/891295#M35734</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-05-17T01:57:37Z</dc:date>
    </item>
  </channel>
</rss>

