<?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>NRF52832 doesn&amp;#39;t enter sleep when using secure bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52479/nrf52832-doesn-t-enter-sleep-when-using-secure-bootloader</link><description>Our BLE app (based on ble_app_uart, example) on NRF52832 normally enters sleep by sd_power_system_off(). So this works as expected. 
 
 However, if we load the app by secure_bootloader_ble_s132_pca10040 the app will run but not enter sleep after call</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2019 08:52:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52479/nrf52832-doesn-t-enter-sleep-when-using-secure-bootloader" /><item><title>RE: NRF52832 doesn't enter sleep when using secure bootloader</title><link>https://devzone.nordicsemi.com/thread/211988?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 08:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae4ecce-1a7f-4445-bf69-b66dcf49f68a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see, I first assumed that the program entered system OFF, but woke up immediately because of bootloader pin. Page 0x7e is reserved to the MBR params page inside the bootloader and should not be accessed by the application. I would suggest storing application data right below the bootloader as&amp;nbsp;our flash modules do (fds and fstorage). Typical memory layout with the bootloader is shown here:&amp;nbsp;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_bootloader.html?cp=5_5_2_3_5_0_1#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 doesn't enter sleep when using secure bootloader</title><link>https://devzone.nordicsemi.com/thread/211974?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 08:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0213fe0-cf90-4295-9ad4-6f8a46bca7ac</guid><dc:creator>Rikard</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. We have already disabled the&amp;nbsp;&lt;span&gt;BOOTLOADER_BUTTON so in our case this shouldn&amp;#39;t be an issue. However we have good news:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have tested to write to another flash page i.e: 0x5e instead of 0x7e. Then the device works as expected meaning it enters sleep after call to&amp;nbsp;sd_power_system_off(). So writing to 0x5e was only a &amp;quot;qualified&amp;quot; guess that did the trick.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As this&amp;nbsp;merely was a&amp;nbsp; guess we really need to know where it is ok to write when using the secure bootloader? Is there any docs describing this, because we haven&amp;#39;t been able to find it&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your support&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 doesn't enter sleep when using secure bootloader</title><link>https://devzone.nordicsemi.com/thread/211266?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 12:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd721ee6-6008-48d2-b7ce-14ad7e047e95</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suspect the unexpected wake-up might be caused by the&amp;nbsp;BOOTLOADER_BUTTON which is initialized in the bootloader code. The button&amp;nbsp;is configured with sense on transitions from high to low by default. Do you see the same if&amp;nbsp;remove the button configuration in bootloader main.c-&amp;gt;buttons_init() and change&amp;nbsp;nrf_dfu_button_enter_check() to always return false?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>