<?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>Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73697/device-enters-and-stays-in-bootloader-mode-on-start</link><description>Hi Team, I am prototyping a product that includes DFU OTA using nRF52832. To get familiar with the topic, I am experimenting with the buttonless DFU example. 
 It is working fine with the pre-compiled test-image sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_with_bonds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Apr 2021 12:58:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73697/device-enters-and-stays-in-bootloader-mode-on-start" /><item><title>RE: Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/thread/304024?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 12:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769cf3d0-9f5c-4422-b5a7-09f586495178</guid><dc:creator>Tibor Kakonyi</dc:creator><description>&lt;p&gt;Thank you very much, Einar! Using&amp;nbsp;&lt;span&gt;--bl-settings-version 2 solved the problem :)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/thread/304002?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 12:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94eabb42-de2c-4d70-bb46-3451eed7dbcd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Tibor,&lt;/p&gt;
&lt;p&gt;It is odd that you see a difference between the debug and normal bootloader. However, this printout makes me spot a detail I did not see before. You specify&amp;nbsp;--bl-settings-version 1, but the current version is 2 and based on the SoftDevice version I assume you are using a recent SDK version. Can you specify&amp;nbsp;--bl-settings-version 2 instead when you generate the setting page?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/thread/303935?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 09:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7091014-023c-4f56-a0f1-d06c58b6fbf8</guid><dc:creator>Tibor Kakonyi</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Einar, &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;First, I simply tried adding separate hex files to nRF Connect Programmer instead of using mergehex, but the problem still existed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Then, as you proposed, I changed to the debug bootloader project to get more info - and for some strange reason, the process is working correctly with it. I don&amp;#39;t know what&amp;#39;s happening, everything else (firmware app, bootloader settings page,&amp;nbsp;SoftDevice) is the same, do you have any idea?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;However, the non-working bootloader version has some basic RTT logging too, let me copy-paste its output here, might be useful:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Old settings page detected. Upgrading info.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;warning&amp;gt; app: Boot validation failed. App is invalid.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Tibor&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/thread/303629?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 05:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d40f933-8ae1-4422-b46f-1729843b9fce</guid><dc:creator>Tibor Kakonyi</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks a lot for your reply!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Do you include the settings page in your merged hex file? I do not see it listed where you copy--pasted the mergehex commands. If not, then it would explain what you are seeing.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Sorry, I accidentally copy-pasted the same command twice. It should look like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;mergehex --merge s132_nrf52_7.2.0_softdevice.hex ble_app_buttonless_dfu_pca10040_s132 secure_bootloader_ble_s132_pca10040.hex --output temp_merg.hex&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;mergehex --merge temp_merg.hex bl_settings_page.hex --output dfu_target_firmware.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mergehex broken into 2 parts, including the&amp;nbsp;bootloader settings page too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ll try out the proposed solutions as soon as I can.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Tibor&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device enters and stays in bootloader mode on start</title><link>https://devzone.nordicsemi.com/thread/303577?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 15:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c8523f-b727-4b6e-a8b6-111026a4d3eb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Tibor,&lt;/p&gt;
&lt;p&gt;Do you include the settings page in your merged hex file? I do not see it listed where you copy--pasted the mergehex commands. If not, then it would explain what you are seeing.&lt;/p&gt;
&lt;p&gt;If the above is not the problem, then perhaps you are seeing a known issue with the latest mergehex (10.12.1) where it can create corrupt images. Can you revert to an older version and see if the issue persist? Alternatively add all separate hex files to nRF Connect Programmer instead of using mergehex?&lt;/p&gt;
&lt;p&gt;If the issue persists then it would be good if you can test with the debug bootloader project (suffixed _debug) which includes RTT logging and upload the log here. In most cases the RTT log gives a good indication of where to look.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>