<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wake up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80840/wake-up</link><description>I am advertising some data, my hardware is minimum and there are no external interrupts. 
 1. How do I wake up after entering power save mode with __WFE(); ? 
 2. I also want to change the advertising interval, the default settings of advertisement is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 15:42:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80840/wake-up" /><item><title>RE: Wake up</title><link>https://devzone.nordicsemi.com/thread/334937?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 15:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70017801-3bbe-49d7-99d7-027d3e7f4f26</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]1.&amp;nbsp; How do I wake up&amp;nbsp;&amp;nbsp;after entering power save mode with&amp;nbsp; __WFE();&amp;nbsp; ?&amp;nbsp;[/quote]
&lt;p&gt;The CPU will wake up from this state whenever an event is generated. If you are advertising, the SoftDevice will generate events and wake up the CPU in time to meet its timing-critical deadlines, so you do not need to manually wake up the CPU before every advertising takes place - the SoftDevice takes care of this.&lt;/p&gt;
[quote user=""]2. I also want to change the advertising interval, the default settings of advertisement is flooding my gateway aggregator&amp;nbsp;[/quote]
&lt;p&gt;The advertising interval is set as part of the initialization. Most of the BLE peripheral examples from the SDK sets this with their&amp;nbsp;APP_ADV_INTERVAL define, which is later used in the configuration of the advertisements.&lt;/p&gt;
[quote user="consulting99"]I don&amp;#39;t see a way to adjust the Timer ,&amp;nbsp; say I want to wake up device after 1 minute , where do I specify this[/quote]
&lt;p&gt;You may not specify the time in which the CPU will stay in __WFE exactly - the CPU will wake from __WFE as soon as an event is generated.&lt;br /&gt;What is the reason you would like it to wake at a particular interval?&lt;br /&gt;Normally, you would not have to time the wake ups of the CPU when you have a task-and-event system. You could then just have the CPU go to SYSTEM_ON sleep (__WFE) as the only operation of the main loop, and then use the events from the different peripherals to have the CPU be awake and ready when it needs to be, and in SYSTEM_ON sleep as soon as there is nothing else that needs doing.&lt;br /&gt;Most of our BLE examples demonstrate this behavior - calling only the&amp;nbsp;&lt;em&gt;idle_state_handler&amp;nbsp;&lt;/em&gt;function in the main loop.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up</title><link>https://devzone.nordicsemi.com/thread/334914?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 13:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a661cb-986e-42bb-a36e-e9879ec7be0f</guid><dc:creator>consulting99</dc:creator><description>&lt;p&gt;also, in function ret_code_t nrf_pwr_mgmt_init(void)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see PWR_MGMT_TIMER_CREATE();&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see a way to adjust the Timer ,&amp;nbsp; say I want to wake up device after 1 minute , where do I specify this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>