<?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: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772880#M46998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;In fact my K22 board takes a lot of time to execute the run (128ms) then enter to VLLS2, I expect lower time in run&amp;nbsp;&lt;/P&gt;&lt;P&gt;this my issue.&lt;/P&gt;&lt;P&gt;void cmd_alarm(uint8_t offsetSec)&lt;BR /&gt;{&lt;BR /&gt; uint32_t seconds = 0;&lt;BR /&gt; RTC_HAL_GetDatetimeInSecs(RTC_BASE_PTR, &amp;amp;seconds);&lt;BR /&gt; seconds += offsetSec;&lt;BR /&gt; RTC_HAL_SetAlarmReg(RTC_BASE_PTR, seconds);&lt;BR /&gt; RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call the&amp;nbsp;cmd_alarm(0) in the RTC handler (&lt;SPAN&gt;RTC_IRQHandler&lt;/SPAN&gt;) then my Board enter in VLSS2 and never wakeup,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void RTC_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, false); &lt;BR /&gt;blink_led(); //&amp;nbsp;&lt;BR /&gt; cmd_alarm(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I call the &lt;SPAN&gt;cmd_alarm(0) in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;VLSS2() function , I have the wakeup every second but in take time in run&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;void VLSS2(void)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;volatile unsigned int dummyread;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;gSecsFlag = false;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;cmd_alarm(0);&lt;BR /&gt;/* Write to PMPROT to allow VLLS2 power modes */&lt;BR /&gt;SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;&lt;BR /&gt;/* Set the VLLSM field to 0b100 for VLLSx(for MC1)&lt;BR /&gt;or STOPM field to 0b100 for VLLSx (for MC2)&lt;BR /&gt;- Retain state of LPWUI and RUNM */&lt;BR /&gt;SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK ;&lt;BR /&gt;SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;&lt;BR /&gt;/* set VLLSM = 0b10 in SMC_VLLSCTRL (for MC2) */&lt;BR /&gt;SMC_STOPCTRL &amp;amp;= ~SMC_STOPCTRL_LLSM_MASK;&lt;BR /&gt;SMC_STOPCTRL |=SMC_STOPCTRL_LLSM(0x2);&lt;BR /&gt;dummyread = SMC_STOPCTRL;&lt;BR /&gt;/* Set the SLEEPDEEP bit to enable deep sleep mode - enter stop mode*/&lt;BR /&gt;SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;__WFI();&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;void RTC_IRQHandler(void)&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, false);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;blink_led&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(); // 130MS&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;what can be the issue of this bigger time in run i?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;thank you for your help,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Nesrine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 09:57:00 GMT</pubDate>
    <dc:creator>nesrinemhiri</dc:creator>
    <dc:date>2017-12-11T09:57:00Z</dc:date>
    <item>
      <title>FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772877#M46995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to wake up my board from VLLS2 using RTC, I sart from power demo in SDK :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in main.c I do this:&lt;BR /&gt; SystemInit();&lt;BR /&gt; CLOCK_SYS_SetRtcOutSrc(kClockRtcoutSrc32kHz);&lt;BR /&gt; CLOCK_SYS_EnableRtcClock(0U);&lt;BR /&gt; RTC_HAL_Init(RTC_BASE_PTR);&lt;/P&gt;&lt;P&gt;if (!(RTC_HAL_IsOscillatorEnabled(RTC_BASE_PTR)))&lt;BR /&gt; {&lt;BR /&gt; BOARD_InitRtcOsc();&lt;BR /&gt; }&lt;BR /&gt; /* Enable the RTC Clock output */&lt;BR /&gt; RTC_HAL_SetClockOutCmd(RTC_BASE_PTR, true);&lt;BR /&gt; NVIC_ClearPendingIRQ(RTC_Seconds_IRQn);&lt;BR /&gt; INT_SYS_EnableIRQ(RTC_Seconds_IRQn);&lt;BR /&gt;INT_SYS_EnableIRQ(LLWU_IRQn);&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;VLSS2();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void VLSS2(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;volatile unsigned int dummyread; &lt;BR /&gt; gSecsFlag = false;&lt;BR /&gt; /* Write to PMPROT to allow VLLS2 power modes */&lt;BR /&gt; SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;&lt;BR /&gt; /* Set the VLLSM field to 0b100 for VLLSx(for MC1)&lt;BR /&gt; or STOPM field to 0b100 for VLLSx (for MC2)&lt;BR /&gt; - Retain state of LPWUI and RUNM */&lt;BR /&gt; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK ;&lt;BR /&gt; SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;&lt;BR /&gt; /* set VLLSM = 0b10 in SMC_VLLSCTRL (for MC2) */&lt;BR /&gt; SMC_STOPCTRL &amp;amp;= ~SMC_STOPCTRL_LLSM_MASK;&lt;BR /&gt; SMC_STOPCTRL |=SMC_STOPCTRL_LLSM(0x2);&lt;BR /&gt; dummyread = SMC_STOPCTRL;&lt;BR /&gt; /* Set the SLEEPDEEP bit to enable deep sleep mode - enter stop mode*/&lt;BR /&gt; SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk; &lt;BR /&gt; __WFI();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void RTC_Seconds_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; gSecsFlag = true;&lt;/P&gt;&lt;P&gt;//I try to blink led&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt; * @brief LLW_IRQHandler that would cover the same name's APIs in startup code&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;void LLWU_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;if (RTC_HAL_HasAlarmOccured(RTC))&lt;BR /&gt; {&lt;BR /&gt; RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, false);&lt;BR /&gt; }&lt;BR /&gt; LLWU_HAL_ClearExternalPinWakeupFlag(LLWU_BASE_PTR, (llwu_wakeup_pin_t)BOARD_SW_LLWU_EXT_PIN);&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that my board enter in VLLS2 and never wake-up , Could you please tel me about the issue in my handler configuration&lt;/P&gt;&lt;P&gt;Thank you for your support&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nesrine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 10:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772877#M46995</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2017-12-07T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772878#M46996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 13:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772878#M46996</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2017-12-07T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772879#M46997</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;Wake up from VLLS2 is via reset, so the handler will never be taken.&lt;BR /&gt;Is the problem that you expect the handler to be called (which is not possible) or that the processor never actually exits from VLLS2?&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;I think that you need to make the actual reset/initialisation visible otherwise you will not know when it is restarting and going back to the VLSS2 state again.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K22:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K22F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K22F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FBLAZE_K22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Low power and LLWU: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FLLWU.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/LLWU.html&lt;/A&gt;&lt;BR /&gt;Low power videos:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FkWNlsAoMly4" rel="nofollow" target="_blank"&gt;https://youtu.be/kWNlsAoMly4&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FiZEMRiDmHzw" rel="nofollow" target="_blank"&gt;https://youtu.be/iZEMRiDmHzw&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2Fv4UnfcDiaE4" rel="nofollow" target="_blank"&gt;https://youtu.be/v4UnfcDiaE4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional Kinetis support, one-on-one training and complete fast-track project solutions: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 23:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772879#M46997</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-12-08T23:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772880#M46998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;In fact my K22 board takes a lot of time to execute the run (128ms) then enter to VLLS2, I expect lower time in run&amp;nbsp;&lt;/P&gt;&lt;P&gt;this my issue.&lt;/P&gt;&lt;P&gt;void cmd_alarm(uint8_t offsetSec)&lt;BR /&gt;{&lt;BR /&gt; uint32_t seconds = 0;&lt;BR /&gt; RTC_HAL_GetDatetimeInSecs(RTC_BASE_PTR, &amp;amp;seconds);&lt;BR /&gt; seconds += offsetSec;&lt;BR /&gt; RTC_HAL_SetAlarmReg(RTC_BASE_PTR, seconds);&lt;BR /&gt; RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call the&amp;nbsp;cmd_alarm(0) in the RTC handler (&lt;SPAN&gt;RTC_IRQHandler&lt;/SPAN&gt;) then my Board enter in VLSS2 and never wakeup,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void RTC_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, false); &lt;BR /&gt;blink_led(); //&amp;nbsp;&lt;BR /&gt; cmd_alarm(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I call the &lt;SPAN&gt;cmd_alarm(0) in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;VLSS2() function , I have the wakeup every second but in take time in run&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;void VLSS2(void)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;volatile unsigned int dummyread;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;gSecsFlag = false;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;cmd_alarm(0);&lt;BR /&gt;/* Write to PMPROT to allow VLLS2 power modes */&lt;BR /&gt;SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;&lt;BR /&gt;/* Set the VLLSM field to 0b100 for VLLSx(for MC1)&lt;BR /&gt;or STOPM field to 0b100 for VLLSx (for MC2)&lt;BR /&gt;- Retain state of LPWUI and RUNM */&lt;BR /&gt;SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK ;&lt;BR /&gt;SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;&lt;BR /&gt;/* set VLLSM = 0b10 in SMC_VLLSCTRL (for MC2) */&lt;BR /&gt;SMC_STOPCTRL &amp;amp;= ~SMC_STOPCTRL_LLSM_MASK;&lt;BR /&gt;SMC_STOPCTRL |=SMC_STOPCTRL_LLSM(0x2);&lt;BR /&gt;dummyread = SMC_STOPCTRL;&lt;BR /&gt;/* Set the SLEEPDEEP bit to enable deep sleep mode - enter stop mode*/&lt;BR /&gt;SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;__WFI();&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;void RTC_IRQHandler(void)&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;RTC_HAL_SetAlarmIntCmd(RTC_BASE_PTR, false);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;blink_led&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(); // 130MS&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;what can be the issue of this bigger time in run i?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;thank you for your help,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Nesrine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772880#M46998</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2017-12-11T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772881#M46999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help is appreciated&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772881#M46999</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2017-12-20T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK22 VLLS2 RTC wakeup using RTC_Seconds_IRQHandler</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772882#M47000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nesrine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to set a new alarm time in the RTC interrupt handler (which is already in the RTC interrupt context and doesn't look to reset the interrupt flag) the new alarm may not work (being in the interrupt context won't stop it waking again but not clearing the flag and allowing a new one to be triggered will).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget that there is a solution that I have shown you in the uTasker project that does this - it is free and open source in case you need something working.&lt;/P&gt;&lt;P&gt;If you are a professional and your specification is to use the examples as project base you can get them fixed quickly by using the service at the support link given in the previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 01:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK22-VLLS2-RTC-wakeup-using-RTC-Seconds-IRQHandler/m-p/772882#M47000</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-12-21T01:07:54Z</dc:date>
    </item>
  </channel>
</rss>

