<?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: External RTC Not Saving Time (i.MX6SX) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/External-RTC-Not-Saving-Time-i-MX6SX/m-p/1096852#M160620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems this is known &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;MCP79400&lt;/SPAN&gt; issue as described on microchip forums&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.microchip.com/forums/m1084666.aspx" title="https://www.microchip.com/forums/m1084666.aspx"&gt;https://www.microchip.com/forums/m1084666.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can post issue on that forum, as rtc was developed and supported by microchip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Tue, 14 Apr 2020 23:24:52 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-04-14T23:24:52Z</dc:date>
    <item>
      <title>External RTC Not Saving Time (i.MX6SX)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/External-RTC-Not-Saving-Time-i-MX6SX/m-p/1096851#M160619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've implemented an external RTC (MCP79400) on to a system that is using an i.MX6 Solo X chip. The system is also using Linux L4.14.98 (Yocto Sumo).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I successfully implemented the driver (ds1307) to talk to the device via i2c. I've disabled the imx6 rtc (SNVS) to not drain the battery.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The issue that i'm seeing is that the external rtc is not saving the time between power cycles. It resets if completely powered off for more than 10 seconds.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've confirmed when the main board power is off that the battery is powering the external RTC with a voltmeter.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've confirmed that the chip is holding time when continuously powered by performing the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Boot system with ds1307 talking to the external rtc&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;External rtc is set (confirmed with hwclock command).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Reboot system and detach ds1307 from talking to external rtc&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;Changed device tree blob in uboot to one without the external rtc attached&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Using i2cget on device, I see the values of the addresses are incrementing every second.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The registers OSCRUN and ST are 1 which confirm the&amp;nbsp;oscillator is running.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;To reiterate, I was only able to confirm this because the power was continuous between reboot. The time registers on the external rtc are reset to 0 when power is off for more than 10 seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt; Is there another flag i need to set for it to save the time when main board power is off?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What am I missing? Is the ds1307 driver resetting it for the model of the device?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've attached the external RTC datasheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/External-RTC-Not-Saving-Time-i-MX6SX/m-p/1096851#M160619</guid>
      <dc:creator>neuro</dc:creator>
      <dc:date>2020-04-14T21:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: External RTC Not Saving Time (i.MX6SX)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/External-RTC-Not-Saving-Time-i-MX6SX/m-p/1096852#M160620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems this is known &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;MCP79400&lt;/SPAN&gt; issue as described on microchip forums&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.microchip.com/forums/m1084666.aspx" title="https://www.microchip.com/forums/m1084666.aspx"&gt;https://www.microchip.com/forums/m1084666.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can post issue on that forum, as rtc was developed and supported by microchip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Tue, 14 Apr 2020 23:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/External-RTC-Not-Saving-Time-i-MX6SX/m-p/1096852#M160620</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-04-14T23:24:52Z</dc:date>
    </item>
  </channel>
</rss>

