<?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>Thingy52 sleep_mode_enter() Runs Bootloader Instead of Restarting Program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39354/thingy52-sleep_mode_enter-runs-bootloader-instead-of-restarting-program</link><description>Hi, when my program calls sleep_mode_enter(), it enters system off (deep sleep) as expected. However, when I press the button on the Thingy52 to wake up, the bootloader starts running instead of my program restarting. 
 
 Below is my sleep_mode_enter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Oct 2018 23:51:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39354/thingy52-sleep_mode_enter-runs-bootloader-instead-of-restarting-program" /><item><title>RE: Thingy52 sleep_mode_enter() Runs Bootloader Instead of Restarting Program</title><link>https://devzone.nordicsemi.com/thread/152563?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 23:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821e2009-905b-43e6-8579-345e669878c5</guid><dc:creator>dlim</dc:creator><description>&lt;p&gt;I see, I figured it out. Thank you very much for your help!&lt;/p&gt;
&lt;p&gt;The problem was that the button I was using to toggle wakeup is the same button that is used to request DFU mode. Perhaps it would be good to add a debouncing of the button in the bootloader to sense between wakeup and DFU request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 sleep_mode_enter() Runs Bootloader Instead of Restarting Program</title><link>https://devzone.nordicsemi.com/thread/152480?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 11:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076ac10e-c4de-4c0c-9854-25df56047121</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you have a bootloader then the bootloader will always start on reset. Normal behavior of the bootloader is to start the application immediately. The exception to this is if DFU mode is requested. In that case it will enter DFU mode. It will also enter DFU mode if no valid application is found. Can you&amp;nbsp; confirm that it enters DFU mode?&lt;/p&gt;
&lt;p&gt;In order to give more advice on how to move forward on this one, I need to know the versions of bootloader, firmware, etc. that you are using.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>