<?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: Problem wakeup LLWU RTC</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-wakeup-LLWU-RTC/m-p/556733#M33722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniele,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;I was wondering if you can tell what the chip you use, then I can find some sample code for you to refer to.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Wed, 22 Jun 2016 01:22:30 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-06-22T01:22:30Z</dc:date>
    <item>
      <title>Problem wakeup LLWU RTC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-wakeup-LLWU-RTC/m-p/556732#M33721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello i have a problem to wakeup the device with the RTC. I put this in VLLS1 with this command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14665271623022665 jive_text_macro" data-renderedposition="107_50_798_175" jivemacro_uid="_14665271623022665"&gt;&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;POWER_SYS_SetWakeupPin(kPowerManagerWakeupPin14, kLlwuExternalPinRisingEdge, &amp;amp;PLUVIOMETRO_GPIO_InpConfig0[0].config);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;POWER_SYS_SetWakeupModule(kPowerManagerWakeupModule5, TRUE);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#ifdef DEBUG&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;debug_printf("GOING IN LOW POWER\r\n");&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;error = CLOCK_SYS_UpdateConfiguration(2, kClockManagerPolicyAgreement);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;i = CLOCK_SYS_GetCoreClockFreq();&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;POWER_SYS_SetMode(2, kPowerManagerPolicyAgreement);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the POWER_SYS_SetMode(2, kPowerManagerPolicyAgreement); set the VLLS1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/60126iD0AA733A30449435/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the llwu interrupt is written as is:&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14665272515318322 jive_text_macro" data-renderedposition="576_50_798_352" jivemacro_uid="_14665272515318322"&gt;&lt;P&gt;void PWR_Man_llwuIRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; POWER_SYS_SetMode(0, kPowerManagerPolicyAgreement);&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLOCK_SYS_UpdateConfiguration(0, kClockManagerPolicyAgreement);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(POWER_SYS_GetWakeupPinFlag(kLlwuWakeupPin14)){&lt;/P&gt;&lt;P&gt;&amp;nbsp; POWER_SYS_ClearWakeupPinFlag(kLlwuWakeupPin14);&lt;/P&gt;&lt;P&gt;&amp;nbsp; flag_pioggia = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; impulsi_pioggia++;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(POWER_SYS_GetWakeupModuleFlag(kLlwuWakeupModule5)){&lt;/P&gt;&lt;P&gt;&amp;nbsp; NVIC_ClearPendingIRQ(RTC_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_DRV_GetDatetime(RTCTimer_IDX, &amp;amp;DataTime);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(!(DataTime.minute % 15)){&lt;/P&gt;&lt;P&gt;&amp;nbsp; flag_transmit = TRUE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; flag_newdata = TRUE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }else{&lt;/P&gt;&lt;P&gt;&amp;nbsp; flag_newdata = TRUE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; PMC_REGSC = PMC_REGSC_ACKISO(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; //NVIC_SystemReset();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the Pin14 i don't have problem to wake-up before the RTC allarm was execute but with the RTC it crash and i can't wake-up the device. I don't understand why.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-wakeup-LLWU-RTC/m-p/556732#M33721</guid>
      <dc:creator>danielecortella</dc:creator>
      <dc:date>2020-11-02T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem wakeup LLWU RTC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-wakeup-LLWU-RTC/m-p/556733#M33722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniele,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;I was wondering if you can tell what the chip you use, then I can find some sample code for you to refer to.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Wed, 22 Jun 2016 01:22:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-wakeup-LLWU-RTC/m-p/556733#M33722</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-06-22T01:22:30Z</dc:date>
    </item>
  </channel>
</rss>

