<?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 RTC Problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/RTC-Problem/m-p/924764#M4841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the external crystal oscillator (32768HZ) for the real-time clock experiment, but I found that my read time is always 0:0:0 on January 1, 2016. I feel that the real-time clock is not counting.&lt;/P&gt;&lt;P&gt;The following is my configuration, can you help check if there is a problem?&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246451(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34246iFABC66621C725F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246451(1).jpg" alt="1563246451(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246393(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34519i9BB353FAE817DC6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246393(1).jpg" alt="1563246393(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246370(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34554iD41DDC61A432F7E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246370(1).jpg" alt="1563246370(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246426(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34853i694CA6D87E1828CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246426(1).jpg" alt="1563246426(1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my program configuration and initialization&lt;/P&gt;&lt;P&gt;RTC_DRV_Init(RTCTIMER1, &amp;amp;rtcTimer1_Config0);&lt;BR /&gt; RTC_DRV_ConfigureSecondsInt(RTCTIMER1, &amp;amp;rtcTimer1_SecIntConfig0);&lt;BR /&gt; RTC_DRV_SetTimeDate(RTCTIMER1, &amp;amp;rtcTimer1_StartTime0);&lt;BR /&gt; RTC_DRV_StartCounter(RTCTIMER1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Key_Test==1)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Key_Test = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;RTC_DRV_GetCurrentTimeDate(RTCTIMER1, &amp;amp;currentTime)；&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;Finally, I found out that it was read on January 1, 2016, 0:00, 0:00.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2019 03:13:59 GMT</pubDate>
    <dc:creator>ywjack</dc:creator>
    <dc:date>2019-07-16T03:13:59Z</dc:date>
    <item>
      <title>RTC Problem</title>
      <link>https://community.nxp.com/t5/S32K/RTC-Problem/m-p/924764#M4841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the external crystal oscillator (32768HZ) for the real-time clock experiment, but I found that my read time is always 0:0:0 on January 1, 2016. I feel that the real-time clock is not counting.&lt;/P&gt;&lt;P&gt;The following is my configuration, can you help check if there is a problem?&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246451(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34246iFABC66621C725F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246451(1).jpg" alt="1563246451(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246393(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34519i9BB353FAE817DC6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246393(1).jpg" alt="1563246393(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246370(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34554iD41DDC61A432F7E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246370(1).jpg" alt="1563246370(1).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1563246426(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34853i694CA6D87E1828CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1563246426(1).jpg" alt="1563246426(1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my program configuration and initialization&lt;/P&gt;&lt;P&gt;RTC_DRV_Init(RTCTIMER1, &amp;amp;rtcTimer1_Config0);&lt;BR /&gt; RTC_DRV_ConfigureSecondsInt(RTCTIMER1, &amp;amp;rtcTimer1_SecIntConfig0);&lt;BR /&gt; RTC_DRV_SetTimeDate(RTCTIMER1, &amp;amp;rtcTimer1_StartTime0);&lt;BR /&gt; RTC_DRV_StartCounter(RTCTIMER1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Key_Test==1)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Key_Test = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;RTC_DRV_GetCurrentTimeDate(RTCTIMER1, &amp;amp;currentTime)；&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;Finally, I found out that it was read on January 1, 2016, 0:00, 0:00.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 03:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTC-Problem/m-p/924764#M4841</guid>
      <dc:creator>ywjack</dc:creator>
      <dc:date>2019-07-16T03:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: RTC Problem</title>
      <link>https://community.nxp.com/t5/S32K/RTC-Problem/m-p/924765#M4842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yang wei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the Demo code that is included in the SDK? I saw that you have the same configuration that the example code, does this example work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt; &lt;SPAN class="comment token"&gt;/* Initialize RTC instance
     *  - See RTC configuration component for options
     */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;RTC_DRV_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;RTCTIMER1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;rtcTimer1_Config0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;/* Configure RTC Time Seconds Interrupt */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;RTC_DRV_ConfigureSecondsInt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;RTCTIMER1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;rtcTimer1_SecIntConfig0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;/* Set APIS to allow usermode access to RTC Memory Space */&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;/* Clear bit position to grant usermode access level */&lt;/SPAN&gt;
    AIPS&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;OPACR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;regIdx&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;~&lt;/SPAN&gt;AIPS_OPACR_SP5_MASK&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;/* Switch to user mode */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;swUserMode&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;/* Set the time and date */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;RTC_DRV_SetTimeDate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;RTCTIMER1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;rtcTimer1_StartTime0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;/* Start the RTC counter */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;RTC_DRV_StartCounter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;RTCTIMER1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTC-Problem/m-p/924765#M4842</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-07-19T18:13:31Z</dc:date>
    </item>
  </channel>
</rss>

