<?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>DFU wakeup the app once a second</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60611/dfu-wakeup-the-app-once-a-second</link><description>Hi, 
 I have added the Buttonless Secure DFU service to my application so that the app can be updated over BLE. It seems working. However, the power management module must be enabled and set NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY to 1. This sets up a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2020 17:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60611/dfu-wakeup-the-app-once-a-second" /><item><title>RE: DFU wakeup the app once a second</title><link>https://devzone.nordicsemi.com/thread/246602?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 17:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df68954-20c0-4d71-96c2-219b9aec3032</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hi Edvin&lt;/p&gt;
&lt;p&gt;I did something similar to what you suggested, I start the pwr_mgmt_timer in app_shutdown_handler() because it doesn&amp;#39;t hit the&amp;nbsp;buttonless_dfu_sdh_state_observer( with&amp;nbsp;NRF_SDH_EVT_STATE_DISABLED ). My idle current goes back to before without the 1 second wakeup and the DFU still works.&lt;/p&gt;
&lt;p&gt;I need to figure out a way to maintain a special version of nrf_pwr_mgmt.c&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU wakeup the app once a second</title><link>https://devzone.nordicsemi.com/thread/246526?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 12:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56f5b773-0c77-4e28-b85d-35756b950826</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It looks like the reason for this timer is to allow the device to shut down gracefully when the connected device requests a DFU session.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you didn&amp;#39;t have this timer running earlier, since you bring it up. Perhaps you can modify the code to not start the timer in:&lt;/p&gt;
&lt;p&gt;power_management_init() -&amp;gt;&amp;nbsp;nrf_pwr_mgmt_init() -&amp;gt;&amp;nbsp;PWR_MGMT_TIMER_CREATE() -&amp;gt;&amp;nbsp;pwr_mgmt_timer_create() -&amp;gt;&amp;nbsp;app_timer_start() (but keep app_timer_create())&lt;/p&gt;
&lt;p&gt;But rather start it in the timer in&amp;nbsp;buttonless_dfu_sdh_state_observer(), before the call to:&lt;/p&gt;
&lt;p&gt;nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try it, and check that it doesn&amp;#39;t mess up anything in the DFU procedure.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>