<?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: why RTC interrupts occurred only several times although rtc is set to interrupt in endless loop in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/why-RTC-interrupts-occurred-only-several-times-although-rtc-is/m-p/728047#M44519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;hung,&lt;/P&gt;&lt;P&gt;It seems the &lt;A _jive_internal="true" href="https://community.nxp.com/thread/428468"&gt;bug of RTC&lt;/A&gt; in SDK1.3, please try to modify the &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;RTC_DRV_AlarmIntAction&lt;/SPAN&gt; in fsl_rtc_driver.c.&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.3.0\platform\drivers\src\rtc\fsl_rtc_driver.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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, 28 Dec 2017 08:28:00 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2017-12-28T08:28:00Z</dc:date>
    <item>
      <title>why RTC interrupts occurred only several times although rtc is set to interrupt in endless loop</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/why-RTC-interrupts-occurred-only-several-times-although-rtc-is/m-p/728046#M44518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tested the RTC of the FRDM-64. I used ksdk 1.3 with processor expert. All initial settings were carried out using PE. The code I used can be seen below. All it should do is to interrupt every minute in an endless loop. However, somehow interrupts occurred only several times and then the program hanged. Nothing happened after that. Anyone who can help? I would appreciate very much! Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// events.c&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;extern volatile bool alarm;&lt;/P&gt;&lt;P&gt;void rtcTimer1_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; RTC_DRV_AlarmIntAction(rtcTimer1_IDX);&lt;BR /&gt; alarm = true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;BR /&gt;// main.c&lt;/P&gt;&lt;P&gt;volatile bool alarm=false;&lt;BR /&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; &lt;BR /&gt;rtc_repeat_alarm_state_t alrm_state;&lt;BR /&gt;rtc_datetime_t zeit_now =&lt;BR /&gt; {&lt;BR /&gt; zeit_now.year = 2017U,&lt;BR /&gt; zeit_now.month =12U,&lt;BR /&gt; zeit_now.day = 17U,&lt;BR /&gt; zeit_now.hour = 11U,&lt;BR /&gt; zeit_now.minute = 40U,&lt;BR /&gt; zeit_now.second = 0U,&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;rtc_datetime_t alrmRepTime =&lt;BR /&gt;{&lt;BR /&gt; zeit_now.year = 0U,&lt;BR /&gt; zeit_now.month =0U,&lt;BR /&gt; zeit_now.day = 0U,&lt;BR /&gt; zeit_now.hour = 0U,&lt;BR /&gt; zeit_now.minute = 1U,&lt;BR /&gt; zeit_now.second = 0U,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt; PE_low_level_init();&lt;BR /&gt; /*** End of Processor Expert internal initialization. ***/&lt;/P&gt;&lt;P&gt;/* Write your code here */&lt;BR /&gt; /* For example: for(;;) { } */&lt;BR /&gt;RTC_DRV_InitRepeatAlarm(rtcTimer1_IDX,&amp;amp;alrm_state);&lt;BR /&gt;RTC_DRV_SetDatetime(rtcTimer1_IDX,&amp;amp;zeit_now);&lt;BR /&gt;RTC_DRV_SetAlarmRepeat(rtcTimer1_IDX,&amp;amp;zeit_now,&amp;amp;alrmRepTime);&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt; while(!alarm) {}&lt;BR /&gt; GPIO_DRV_TogglePinOutput(J2_4); //LED connected to PIN J2_4&lt;BR /&gt; alarm=false;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/why-RTC-interrupts-occurred-only-several-times-although-rtc-is/m-p/728046#M44518</guid>
      <dc:creator>hunglam</dc:creator>
      <dc:date>2017-12-18T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: why RTC interrupts occurred only several times although rtc is set to interrupt in endless loop</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/why-RTC-interrupts-occurred-only-several-times-although-rtc-is/m-p/728047#M44519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;hung,&lt;/P&gt;&lt;P&gt;It seems the &lt;A _jive_internal="true" href="https://community.nxp.com/thread/428468"&gt;bug of RTC&lt;/A&gt; in SDK1.3, please try to modify the &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;RTC_DRV_AlarmIntAction&lt;/SPAN&gt; in fsl_rtc_driver.c.&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.3.0\platform\drivers\src\rtc\fsl_rtc_driver.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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, 28 Dec 2017 08:28:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/why-RTC-interrupts-occurred-only-several-times-although-rtc-is/m-p/728047#M44519</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-12-28T08:28:00Z</dc:date>
    </item>
  </channel>
</rss>

