<?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>Secure bootloader timeout not working on S132 15.3 SDK with logging disabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50846/secure-bootloader-timeout-not-working-on-s132-15-3-sdk-with-logging-disabled</link><description>I am running into a strange issue. I want the bootloader to start automatically when I power on the device and then start the application if there is no activity after 30 seconds. 
 To do that I&amp;#39;ve done the following changes: 1. Change NRF_BL_DFU_INACTIVITY_TIMEOUT_MS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 10 Aug 2019 18:24:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50846/secure-bootloader-timeout-not-working-on-s132-15-3-sdk-with-logging-disabled" /><item><title>RE: Secure bootloader timeout not working on S132 15.3 SDK with logging disabled</title><link>https://devzone.nordicsemi.com/thread/203435?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2019 18:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22038818-2d29-4f3d-bc81-c479723d020f</guid><dc:creator>nemik</dc:creator><description>&lt;p&gt;I&amp;#39;ve solved this by checking the NRF_POWER-&amp;gt;RESETREAS register in dfu_check. If it&amp;#39;s 0 it means it work up from total system off and I&amp;#39;ll start the bootloader. For anything else I&amp;#39;d want application to start, which includes the reset issued by the bootloader after its inactivity timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader timeout not working on S132 15.3 SDK with logging disabled</title><link>https://devzone.nordicsemi.com/thread/203432?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2019 15:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29b81130-b7cf-4188-8ec3-5a8f6e1f6199</guid><dc:creator>nemik</dc:creator><description>&lt;p&gt;Thank you for this information. I switched to use Segger Studio and was able to debug a bit easier. I think the problem I&amp;#39;m running into is that when I try to do &amp;#39;&lt;span&gt;nrf_bootloader_app_start();&amp;#39; inside the activity timeout handler, after dfu_check already returned true, that it does not jump to the application code&amp;nbsp;properly and encounters some errors. However I can&amp;#39;t seem to hit breakpoints within the code that does that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m still stuck but hopefully will figure this out. I&amp;#39;m surprised starting bootloader on power up then timing out to the app isn&amp;#39;t a more common use case. I really did not expect this to be so difficult.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader timeout not working on S132 15.3 SDK with logging disabled</title><link>https://devzone.nordicsemi.com/thread/203399?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 18:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513dd122-a912-4f96-ac51-5764803cd789</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;One possible problem might be code with side effects inside an NRF_LOG_xxx statement - this would be eliminated in the release build.&lt;/p&gt;
&lt;p&gt;You CAN debug release code by turning on debugging symbols.The optimizer will shuffle the code around quite a bit, but GDB is still somewhat usable. Oh, and being able to read the disassembly helps a lot.&lt;/p&gt;
&lt;p&gt;Just remember to put breakpoints before you enable and after you disabled the softdevice, as a running SD must not be halted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>