<?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>Wireless MCU中的主题 Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869451#M6095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I eventually figured out how to get the FR interrupts to fire on the last 2.2.0 SDK.&amp;nbsp; There were differences between the two 2.2.0 released that I overlooked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to tell the PWRLib to allow the timer and interrupts to work:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Enable RTC_FR clock and interrupt wakeup from PD0 */&lt;BR /&gt;#define cPWR_EnableLpTmrRunning&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;#define cPWR_EnablePD0RtcInterrupt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will tick at at least this interval:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Default wakeup interval from PD0&lt;BR /&gt;#define cPWR_DeepSleepDurationMs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2u * 1000u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to set the RTC_FR interrupt priority to 0 prior to entering PD0.&amp;nbsp; Refer to the file (power_mode_switch.c) in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/525956"&gt;this &lt;/A&gt;thread for a simplified example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2020 23:24:02 GMT</pubDate>
    <dc:creator>joseraffucci</dc:creator>
    <dc:date>2020-03-11T23:24:02Z</dc:date>
    <item>
      <title>QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869437#M6081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble getting the RTC Free-Run interrupt to wake up the MCU when I go into DS0.&amp;nbsp;&amp;nbsp; Seems to work ok when just sleeping.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; I am using a digital clock as my XTAL32K source which I suspect may be a factor.&amp;nbsp; Clock input is on pin XTAL32_IN/PB01.&amp;nbsp; XTAL32_OUT/PB02 is floating.&amp;nbsp;&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 src="https://community.nxp.com/t5/image/serverpage/image-id/78970iB1580A13E4469DD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set up a test that sets up an LP timer that toggles an led at 10Hz.&amp;nbsp; BLE is disabled and all other tasks are shut down.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78795i12E6B069FCC98761/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callback:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78837i803D6C52D31EDFFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything about the architecture that would cause this behavior for a digital 32K clock source?&amp;nbsp; I'm going to switch over to use the internal oscillator to see if I can get my test to work with it next.&amp;nbsp; One thing I noticed today is that this is occurring while I have the debugger active so it may be a stack/setup issue rather than a hardware one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The freerun timer is enabled and the interrupt and wakeup bits are set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78895i5AF6885FB5D59B62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a wakeup event, the reason correctly identifies that a TMR event occurred:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78936iCF2AD32993162A04/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the wakeup is actually coming from the BLE_LLTimer and not the TMR.&amp;nbsp; The MCU wakes up roughly every 10s and not 100ms as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what might be going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869437#M6081</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-05T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869438#M6082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Retesting using the internal 32k oscillator and the results are the same.&amp;nbsp; It looks like the digital clock isn't the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:28:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869438#M6082</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-05T18:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869439#M6083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started poking around and saw that BLE was not disabled in PMU_CTRL0:&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 src="https://community.nxp.com/t5/image/serverpage/image-id/79223i28109C0F5E32CE48/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I flip this bit on, my led starts to blink as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there's some sort of conflict with the low power timer and the BLE hardware somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869439#M6083</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-05T18:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869440#M6084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more data point for today...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that I do in fact get FR interrupts.&amp;nbsp; They're just not getting handled the way I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TMR_Init, a call is made ot StackTimer_Init which should override the vector for FR interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78975iC7F46B605BC34BED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StackTimer_Init:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79188i76B2256EF8452562/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a hunch, I created a default handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79226iB86A4AB9364EAEE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And found that after a wakeup from DS, it gets called!&amp;nbsp; It is not getting overwritten by StackTimer_ISR.&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 src="https://community.nxp.com/t5/image/serverpage/image-id/79055i080EDF8E3A3937B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I don't create the default handler, the MCU doesn't know who to call after a wakeup!&lt;/P&gt;&lt;P&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/78976i219B34B13C697F25/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The RTC FR count is well above the threshold so it's clearly not responding to that as a wakeup trigger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79056i6269426552AE7C06/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm left with 2 slightly more specific questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Why on earth is my interrupt vector getting trashed when I wake up from DS?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Why is the FR interrupt not waking up the MCU?&amp;nbsp; (see previous posts for RTC config, I believe it's set up correctly).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 01:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869440#M6084</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-06T01:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869441#M6085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jose,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will strongly recommend the flow of the code in our available examples&amp;nbsp;and use them as a base, you can check there that you need to add the handlers, please verify in the board.c file and look for the&amp;nbsp;&lt;EM style="color: #0000ff; "&gt;RTC_FR_IRQHandler&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the RTC free running, again, I will ask you to check the available demos as the timer manager already sets and configures that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869441#M6085</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-08T01:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869442#M6086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found an answer to one of my questions.&amp;nbsp; The MCU gets lost when I don't define the handler because the ram and flash vectors are getting mixed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples do in fact set up &lt;EM style="color: #0000ff;"&gt;RTC_FR_IRQHandler&lt;/EM&gt;&amp;nbsp; because of a bug in the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the system is coming up, the timers are initialized in TMR_Init():&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75228i18004EE6D0B3B052/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;StackTimer_Init() overrides and enables the RTC_FR interrupt so that the stack timer handler is used:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75308iCB2742430FDBA870/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The abstraction layer eventually calls InstallIRQHandler where the new handler is installed.&amp;nbsp; Note that the vector table is then moved to RAM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75354iC632FF0C371A09AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After initialization, I eventually go into DS(0) in POWER_EnterPowerDown().&amp;nbsp; On my very first wakeup event,&amp;nbsp; the vector table pointer is restored&amp;nbsp; to _Vectors:&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 src="https://community.nxp.com/t5/image/serverpage/image-id/75236i52B1AA93DBF3D88A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, you can see that in startup_QN908XC.s _Vectors is defined as the flash vector table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75212i05E63D7BDD2F797E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;STRONG&gt;oops&lt;/STRONG&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing what's needed is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Index: fsl_power.c&lt;BR /&gt;===================================================================&lt;BR /&gt;--- fsl_power.c&amp;nbsp;&amp;nbsp; &amp;nbsp;(revision 20178)&lt;BR /&gt;+++ fsl_power.c&amp;nbsp;&amp;nbsp; &amp;nbsp;(working copy)&lt;BR /&gt;@@ -352,9 +352,30 @@&lt;BR /&gt;&amp;nbsp;#if ((__FPU_PRESENT == 1) &amp;amp;&amp;amp; (__FPU_USED == 1)) || (defined(__VFP_FP__) &amp;amp;&amp;amp; !defined(__SOFTFP__))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;CPACR |= ((3UL &amp;lt;&amp;lt; 10 * 2) | (3UL &amp;lt;&amp;lt; 11 * 2)); /* set CP10, CP11 Full Access */&lt;BR /&gt;&amp;nbsp;#endif&lt;BR /&gt;+#if defined(__CC_ARM)&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t Image$$VECTOR_ROM$$Base[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t Image$$VECTOR_RAM$$Base[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t Image$$RW_m_data$$Base[];&lt;BR /&gt;&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;VTOR = (uint32_t)&amp;amp;__Vectors;&lt;BR /&gt;+#define __VECTOR_TABLE Image$$VECTOR_ROM$$Base&lt;BR /&gt;+#define __VECTOR_RAM Image$$VECTOR_RAM$$Base&lt;BR /&gt;+#define __RAM_VECTOR_TABLE_SIZE (((uint32_t)Image$$RW_m_data$$Base - (uint32_t)Image$$VECTOR_RAM$$Base))&lt;BR /&gt;+#elif defined(__ICCARM__)&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __RAM_VECTOR_TABLE_SIZE[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __VECTOR_TABLE[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __VECTOR_RAM[];&lt;BR /&gt;+#elif defined(__GNUC__)&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __VECTOR_TABLE[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __VECTOR_RAM[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __RAM_VECTOR_TABLE_SIZE_BYTES[];&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t __RAM_VECTOR_TABLE_SIZE = (uint32_t)(__RAM_VECTOR_TABLE_SIZE_BYTES);&lt;BR /&gt;+#endif /* defined(__CC_ARM) */&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; //SCB-&amp;gt;VTOR = (uint32_t)&amp;amp;__Vectors;&lt;BR /&gt;&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Point the VTOR to the position of vector table */&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;VTOR = (uint32_t)__VECTOR_RAM;&lt;BR /&gt;+&lt;BR /&gt;+&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* All registers in NVIC are lost, restore from backup values */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC-&amp;gt;ISER[0U] = backISER[0U];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC-&amp;gt;ISER[1U] = backISER[1U];&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any event, this still does not answer why I'm not waking up when the RTC fires.&amp;nbsp; It doesn't really have anything to do with the vector table, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 15:45:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869442#M6086</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-14T15:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869443#M6087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've narrowed down the problem using only demo code so hopefully someone at NXP can shed some light.&amp;nbsp; This test uses the power_profiling sample project and a QN9080-DK 1.2 board. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a low power millisecond interval timer with a 200ms interval.&amp;nbsp; The timer callback toggles the blue LED. The timer is started when the button is pressed so that PD0 is active.&amp;nbsp; I bumped the number of timers in app_config.h to make sure I wasn't running out of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect the MCU to go into PD0 and wake up periodically to toggle the LED.&amp;nbsp; &lt;STRONG&gt;This does not happen.&lt;/STRONG&gt;&amp;nbsp; The MCU goes into power down and stays there, even with the debugger connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My changes to power_profiling.c:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;169,178d168&lt;BR /&gt;&amp;lt; static tmrTimerID_t mLedTimerId = gTmrInvalidTimerID_c;&lt;BR /&gt;&amp;lt; static void LedTimerCallback(void * pParam);&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt; static void LedTimerCallback(void * pParam)&lt;BR /&gt;&amp;lt; {&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void) pParam;&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Led3Toggle(); // blue&lt;BR /&gt;&amp;lt; }&lt;BR /&gt;&amp;lt; &lt;BR /&gt;188,189d177&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLedTimerId = TMR_AllocateTimer();&lt;BR /&gt;&amp;lt; &lt;BR /&gt;222,223d209&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TMR_StopTimer(mLedTimerId);&lt;BR /&gt;&amp;lt; &lt;BR /&gt;234,242c220,221&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; //Blink Blue LED when in PD0.&amp;nbsp; Interrupt toggles.&lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; TMR_StartLowPowerTimer(mLedTimerId,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gTmrLowPowerIntervalMillisTimer_c,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LedTimerCallback,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL);&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; mPowerState = 1;&lt;BR /&gt;---&lt;BR /&gt;&amp;gt;&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;&amp;nbsp;&amp;nbsp; Led3On(); // blue&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; &amp;nbsp;&lt;BR /&gt;&amp;gt;&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;&amp;nbsp;&amp;nbsp; mPowerState = 1;&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; &amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869443#M6087</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-14T20:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869444#M6088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The timer works as I expect it to when I disable the BLE stack initialization.&amp;nbsp; LED blinks and I can see that the MCU is going in and out of DS mode.&amp;nbsp; Unfortunately BLE_Init() is behind the library interface and I can't debug any further.&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 src="https://community.nxp.com/t5/image/serverpage/image-id/75311i4A500B3B7686B242/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you kick this back to your developers?&amp;nbsp; I need a workaround soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 21:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869444#M6088</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-14T21:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869445#M6089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the information you are sharing and the procedure you are following with the screenshots shared, The structure of the software you are using, seems to be of an old one. Are you using the latest SDK?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;BR /&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/65783iA103D531E9482A60/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&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;If I leave the BLE_Init and BleApp_Init in the code, it works as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 18:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869445#M6089</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-25T18:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869446#M6090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code is straight out of examples in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKD_2.2_QN90X&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 18:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869446#M6090</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-25T18:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869447#M6091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But which&amp;nbsp;date release of the MCUXpresso SDK are you using ?&amp;nbsp;You can check as well the version of the library you are using in the information of the release notes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 20:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869447#M6091</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-25T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869448#M6092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is more than one 2.2 SDK released?&lt;/P&gt;&lt;P&gt;This is the only date I could find in the release notes document.&amp;nbsp; It makes no mention of an SDK version past 2.0.0.&lt;/P&gt;&lt;P&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/73071iE5F7719C127D292F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 17:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869448#M6092</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2019-03-27T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869449#M6093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK 2.2 refers mostly to the driver packages, you need to check and compare the information regarding the Bluetooth LE libraries and version.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869449#M6093</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-27T20:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869450#M6094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am resurrecting this issue.&amp;nbsp;&amp;nbsp; A &lt;EM&gt;&lt;STRONG&gt;year&lt;/STRONG&gt; &lt;/EM&gt;later and using the latest 2.2.1 SDK (bluetooth_1.5.5 / framework_5.6.5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is still an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the LP Timer not fire when in PD0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Using the power_profiling free rtos wireless example project in IAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slightly simpler code changes attached:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;146,154d145&lt;BR /&gt;&amp;lt; static tmrTimerID_t mLedTimerId = gTmrInvalidTimerID_c;&lt;BR /&gt;&amp;lt; static void LedTimerCallback(void * pParam);&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt; static void LedTimerCallback(void * pParam)&lt;BR /&gt;&amp;lt; {&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void) pParam;&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Led3Toggle(); // blue&lt;BR /&gt;&amp;lt; }&lt;BR /&gt;&amp;lt; &lt;BR /&gt;167,168d157&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLedTimerId = TMR_AllocateTimer();&lt;BR /&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;216,222d204&lt;BR /&gt;&amp;lt; &lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; //Blink Blue LED when in PD0.&amp;nbsp; Interrupt toggles.&lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; TMR_StartLowPowerTimer(mLedTimerId,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gTmrLowPowerIntervalMillisTimer_c,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LedTimerCallback,&lt;BR /&gt;&amp;lt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL);&lt;BR /&gt;226d207&lt;BR /&gt;&amp;lt;&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;&amp;nbsp;&amp;nbsp; TMR_StopTimer(mLedTimerId);&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869450#M6094</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2020-02-13T21:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869451#M6095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I eventually figured out how to get the FR interrupts to fire on the last 2.2.0 SDK.&amp;nbsp; There were differences between the two 2.2.0 released that I overlooked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to tell the PWRLib to allow the timer and interrupts to work:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Enable RTC_FR clock and interrupt wakeup from PD0 */&lt;BR /&gt;#define cPWR_EnableLpTmrRunning&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;#define cPWR_EnablePD0RtcInterrupt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will tick at at least this interval:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Default wakeup interval from PD0&lt;BR /&gt;#define cPWR_DeepSleepDurationMs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2u * 1000u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to set the RTC_FR interrupt priority to 0 prior to entering PD0.&amp;nbsp; Refer to the file (power_mode_switch.c) in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/525956"&gt;this &lt;/A&gt;thread for a simplified example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 23:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869451#M6095</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2020-03-11T23:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869452#M6096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I meet the same issue about how to trigger FR&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;interrupts at PD0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;"You also need to set the RTC_FR interrupt priority to 0 prior to entering PD0" is mean to set&amp;nbsp;NVIC_SetPriority(RTC_FR_IRQn,0) before entering PD0?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2020 09:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869452#M6096</guid>
      <dc:creator>wang_barry</dc:creator>
      <dc:date>2020-03-28T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: QN908X Stack Timer/RTC FR not waking MCU from Deep Sleep (0)</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869453#M6097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.&amp;nbsp; Set it to 0 prior to entering PD0 and restore to the correct priority on wakeup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2020 20:46:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908X-Stack-Timer-RTC-FR-not-waking-MCU-from-Deep-Sleep-0/m-p/869453#M6097</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2020-03-29T20:46:37Z</dc:date>
    </item>
  </channel>
</rss>

