<?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>Kinetis MicrocontrollersのトピックRe: Use RTC Alarm to wakeup K64 from VLLSx</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421604#M24166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also create one KDS bare board project abut RTC alarm wake up the VLLS3 mode , please see the attachment .&lt;/P&gt;&lt;P&gt;And for after VLLS3 wake up , the chip will be reset , so when you use the it be wake up,&amp;nbsp; it will run to main , it run to the VLLS3 mode again, then .....loop..&lt;/P&gt;&lt;P&gt;(for in my project , i did nothing after wake up , so i will loop). If you check the current , you will see it also loop from low to high ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Aice&lt;/P&gt;&lt;P&gt;&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>Tue, 27 Oct 2015 11:37:47 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-10-27T11:37:47Z</dc:date>
    <item>
      <title>Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421585#M24147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Helvetica;"&gt;I'm having a hard time using the RTC Alarm as a wakeup source from VLLS0/1/2/3 on the K64 and&amp;nbsp; wondering if anyone here can be of help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;SPAN style="font-size: 14px;"&gt;I'm setting bit 5 of the LLWU_ME to enable the RTC Alarm as a wakeup module. I can go into VLLS successfully but never leave and reset using RTC Alarm. The alarm I’m setting is just 30 seconds in the future. So I read the current time from RTC_TSR and increment it by 30. I'm able to use the LPTMR to wake up from VLLS1 but RTC Alarm never works from any of the VLLS levels. So the VLLS part is fine but having the RTC Alarm trigger a LLWU is not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;Here's some snippets of the relevant parts of the code. Any help would be greatly appreciated!&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;SPAN style="font-size: 14px;"&gt;The RTC is initialized in the following way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="color: #000000; font-family: Helvetica; font-size: 12px; margin-left: 40px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;void rtc_init(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; // Check Oscillator Enable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; if((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK; // Enable Oscillator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay_us(RTC_OSC_STARTUP_DELAY_US); // Wait for oscillator to startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; SIM_SOPT1 |= SIM_SOPT1_OSC32KSEL(3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; RTC_CR &amp;amp;= ~RTC_CR_CLKO_MASK; // The 32kHz clock is output to other peripherals&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; SIM_SOPT2 |= SIM_SOPT2_RTCCLKOUTSEL_MASK; // Output the 32kHz RTC to RTC_CLKOUT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; RTC_IER |= RTC_IER_TAIE_MASK; // Enable Alarm Interrupt&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; RTC_IER |= RTC_IER_TOIE_MASK; // Enable overflow interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; RTC_IER |= RTC_IER_TIIE_MASK; // Enable time invalid interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; enable_int_vector(INT_RTC, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;SPAN style="font-size: 14px;"&gt;Before going to VLLS we do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-left: 40px; font-family: Helvetica; color: #000000; font-size: 12px;"&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt;LLWU_ME |= LLWU_ME_WUME5_MASK&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Clear external pin LLWU flags&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_F1 = 0xFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_F2 = 0xFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #000000; font-family: Helvetica; font-size: 12px;"&gt;&lt;/P&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;P style="font-size: 14px;"&gt;The LLWU IRQ handler is:&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE class="jive-quote" style="color: #000000; font-family: Helvetica; font-size: 12px; margin-left: 40px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;__sysfunc void LLWU_IRQHandler(void)&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; // Clear external pin LLWU flags&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; LLWU_F1 = 0xFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;#ifdef LLWU_F2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; LLWU_F2 = 0xFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; // Clear any filters&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; if(LLWU_FILT1 &amp;amp; LLWU_FILT1_FILTF_MASK) {&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_FILT1 |= LLWU_FILT1_FILTF_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; if(LLWU_FILT2 &amp;amp; LLWU_FILT2_FILTF_MASK) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_FILT2 |= LLWU_FILT2_FILTF_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 01:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421585#M24147</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T01:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421586#M24148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;SPAN style="font-size: 14px;"&gt;RTC Alarm as a wakeup module , the wakeupt flag is&amp;nbsp; LLWU_F3 - &amp;gt; MWUF5 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;and for the internal wakeup source caused the flag , it is cleared follow the internal peripheral flag clearing mechanism, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;that it to say , clear the flag on&amp;nbsp; RTC interrupt function .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hope it help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&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, 22 Oct 2015 03:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421586#M24148</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-22T03:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421587#M24149</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;Can you clarify which flag exactly needs to be cleared in the RTC interrupt function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm already clearing the the corresponding bit in the RTC status register by writing 0 to the RTC_TAR register:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14454959039958790 jive_macro_code jive_text_macro" data-renderedposition="134_8_1232_128" jivemacro_uid="_14454959039958790"&gt;&lt;P&gt;void RTC_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; ISR_ENTER();&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(RTC_SR &amp;amp; RTC_SR_TAF_MASK)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Alarm flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Clear by writing to the RTC_TAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_TAR = 0;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 06:39:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421587#M24149</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T06:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421588#M24150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , you are right , the RTC interrupt flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Which VLLSx mode do you run, if VLLS0, In reference manual, the LPO is off , so you can not use LPO here :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp; SIM_SOPT1 |= SIM_SOPT1_OSC32KSEL(3);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp; You can change to “RTC 32.768KHZ oscillator” ot test , and the LPO is power on on VLLS1 VLLS2 VLLS3 mode , so you can test these mode .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;-If it still can not work ,&amp;nbsp; you can set a breakpoint to check if RTC alarm interrupt happen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- And i recommend you one DOC &lt;A href="http://cache.freescale.com/files/rf_if/doc/app_note/AN4857.pdf" title="http://cache.freescale.com/files/rf_if/doc/app_note/AN4857.pdf"&gt;http://cache.freescale.com/files/rf_if/doc/app_note/AN4857.pdf&lt;/A&gt; &lt;SPAN style="font-size: 14px;"&gt; , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt; although the chip is different , while the procedure is the same :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&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/26940i11B81ADA603E5661/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&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, 22 Oct 2015 08:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421588#M24150</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-22T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421589#M24151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't find a quick fix you can also get complete RTC/LLWU support for the K64 in the uTasker project - see inks below. I have attached a FRDM-K64F image which includes the uTasker Time Keeper module (maintains all time functions including SNTP for the K64, Gregorian time, daylight-saving and various alarms) and the LLWU module (which works together with it allow timed wakeup from low power modes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command line shell is on the its virtual COM port at 115'200 Baud and the time and low power interface is in the "Administrator" menu:&lt;/P&gt;&lt;PRE&gt;Hello, world... KINETIS

Serial number: 00
Software version V1.4.010
Device identification: KINETIS

&amp;nbsp;&amp;nbsp; Admin. menu
===================
up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; go to main menu
show_config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Show configuration
save&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save configuration to FLASH
reject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reset non-saved changes
restore&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Restore factory settings
show_time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display date/time
set_time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set time hh:mm:ss
set_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Date dd:mm:yyyy
show_alarm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display alarm d/t
set_alarm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set alarm (date)(+)[time]
del_alarm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete alarm
show_lp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Show low power mode and options
set_lp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [option] Set low power mode
reset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reset device
last_rst&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reset cause
help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help
quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode

#show_time
22.10.2015 15:29:30

set_alarm +5
New alarm set
22.10.2015 15:29:50

#RTC Alarm fired
set_alarm +5
New alarm set
22.10.2015 15:29:58

#set_lp 6


Hello, world... KINETIS

&lt;/PRE&gt;&lt;P&gt;Here an alarm can be set using "set_alarm +" or with a time and/or data. set_lp allows various low power modes to be set:&lt;/P&gt;&lt;PRE&gt;#show_lp
0 = RUN
1 = WAIT [active]
2 = STOP
3 = VLPR
4 = VLPS
5 = LLS
6 = VLLS0
7 = VLLS1
8 = VLLS2
9 = VLLS3&lt;/PRE&gt;&lt;P&gt;whereby I used 6 above (VLLS0) and the alarm wakes this a few seconds later via a reset (shown by the "Hello, world... KINETIS").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- LLUW module: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/LLWU.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/kinetis/LLWU.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- Time Keeper: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_Time.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;:smileyinfo: Out-of-the-box support for 47 Kinetis boards and 10 IDEs (&lt;EM&gt;470 combinations from a single code source with no porting required&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421589#M24151</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-10-22T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421590#M24152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no luck Alice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SIM_SOPT1 |= SIM_SOPT1_OSC32KSEL(3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SIM_SOPT1 |= SIM_SOPT1_OSC32KSEL(2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;doesn't make a difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 19:49:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421590#M24152</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T19:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421591#M24153</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;&lt;/P&gt;&lt;P&gt;I'm not sure how what you sent is helpful. The attachment is just a binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 20:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421591#M24153</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421592#M24154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The binary allows checking the operation on a standard board - also, by viewing register settings it may be possible to identify a difference that can explain why it works but yours doesn't.&lt;/P&gt;&lt;P&gt;In addition, the links are to full source code of a complete solution in case you were interested in avoiding the need to solve example difficulties.&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, 22 Oct 2015 21:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421592#M24154</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-10-22T21:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421593#M24155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which code are you referring to? I don't see any links to code in the uTasker LLWU Support page?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 21:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421593#M24155</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T21:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421594#M24156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LLWU is a technical document. Try clicking on the navigation menu to find other things.&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, 22 Oct 2015 23:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421594#M24156</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-10-22T23:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421595#M24157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure where you're trying to point me to. The website has no valuable code to look at.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 23:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421595#M24157</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-22T23:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421596#M24158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry that you can't find anything - it is probably easier to stay with what you have and try to solve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few tips:&lt;/P&gt;&lt;P&gt;1. The default clock to the RTC is the 32kHz oscillator, which continues oscillating in VLLSx&lt;/P&gt;&lt;P&gt;2. You don't need to supply the clock to other peripherals - it is always supplied to the RTC, irrespective of &lt;SPAN style="font-size: 14px;"&gt;RTC_CR_CLKO_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. SIM_SOPT1 and SIM_SOPT2 are not required to be set/modified - the first controls the clock to the LPTRM and so doen't affect the RTC or waking from VLLSx. The second contros the RTC_CLKOUT to other peripherals and is not needed for this funtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&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>Fri, 23 Oct 2015 00:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421596#M24158</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-10-23T00:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421597#M24159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the VLLS1 , does it can be wake up ?&lt;/P&gt;&lt;P&gt; And have test check whether it can run into the &lt;SPAN style="font-size: 14px;"&gt;RTC alarm interrupt ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421597#M24159</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-23T03:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421598#M24160</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 alarm cannot wake up K64 from any VLLS level (VLLS1/2/3).&lt;/P&gt;&lt;P&gt;- RTC alarm can fire normally in regular operation. I already verified that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 05:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421598#M24160</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-23T05:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421599#M24161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code does what you recommended but still no luck. Any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help Mark!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 05:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421599#M24161</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-23T05:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421600#M24162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Measure the 32kHz quarz to ensure that it is still oscillating in the VLLSx mode.&lt;/P&gt;&lt;P&gt;- If you have a FRDM-K64F board load the binary that I posted to it and check that it operates correctly. With a debugger check the register settings and compare to those that you have (or use the memory debugger in I/O menu to read the values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If your work is commerical I can also offer a solution if you send me your complete code so that I can correct it accordingly. You can request such a service at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/support.html" rel="nofollow"&gt;http://www.utasker.com/support.html&lt;/A&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;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;:smileyinfo: Out-of-the-box support for 47 Kinetis boards and 10 IDEs (&lt;EM&gt;460 combinations from a single code source with no porting required&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 14:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421600#M24162</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-10-23T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421601#M24163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to verify that the 32KHz oscillator is still oscillating in VLLSx mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I narrowed down the problem to something in the wakeup procedure that happens when the RTC alarm fires. This is because I have 2 LLWU sources defined: the RTC alarm and a switch connected to PTC1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_ME |= LLWU_ME_WUME5_MASK; // RTC Alarm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_PE2 |= LLWU_PE2_WUPE6(3); // Button switch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging purposes, my RTC alarm is set to 30 seconds in the future. When the K64 goes into VLLS, I can press the button at any point within those 30 seconds and it will wake up from sleep and go through reset as expected. However, if I wait 30 seconds, the RTC alarm never wakes up the K64 and any button presses have no effect. So I'm guessing that the alarm fires but something is messed during the wakeup and the K64 gets stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2015 00:17:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421601#M24163</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2015-10-25T00:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421602#M24164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok , i will create on project refer to your requirement , then will send it to you , while please wait .&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>Tue, 27 Oct 2015 03:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421602#M24164</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-27T03:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421603#M24165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a KSDK1.3 sample code about RTC-alarm&amp;nbsp; vake up k64 from any VLLSx model :&lt;/P&gt;&lt;P&gt;...\KSDK_1.3.0\examples\twrk64f120m\demo_apps\power_manager_hal_demo\kds&lt;/P&gt;&lt;P&gt;I have test the sample , it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you install KSDK ? if not , i recommend you install it , please download it here :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/tools/embedded-software-and-tools/run-time-software/kinetis-software-and-tools/development-platforms-with-mbed/software-development-kit-for-kinetis-mcus:KINETIS-SDK?tid=redKINETIS_SDK" title="http://www.freescale.com/tools/embedded-software-and-tools/run-time-software/kinetis-software-and-tools/development-platforms-with-mbed/software-development-kit-for-kinetis-mcus:KINETIS-SDK?tid=redKINETIS_SDK"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 08:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421603#M24165</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-27T08:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use RTC Alarm to wakeup K64 from VLLSx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421604#M24166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also create one KDS bare board project abut RTC alarm wake up the VLLS3 mode , please see the attachment .&lt;/P&gt;&lt;P&gt;And for after VLLS3 wake up , the chip will be reset , so when you use the it be wake up,&amp;nbsp; it will run to main , it run to the VLLS3 mode again, then .....loop..&lt;/P&gt;&lt;P&gt;(for in my project , i did nothing after wake up , so i will loop). If you check the current , you will see it also loop from low to high ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Aice&lt;/P&gt;&lt;P&gt;&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>Tue, 27 Oct 2015 11:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-RTC-Alarm-to-wakeup-K64-from-VLLSx/m-p/421604#M24166</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-27T11:37:47Z</dc:date>
    </item>
  </channel>
</rss>

