<?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>OTA on nrf52840 via button mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80951/ota-on-nrf52840-via-button-mode</link><description>I want to test OTA in button mode. I have configured the button in DFU project. Now I upload the files in my device in the following pattern:- 
 1)Bootloader hex file 
 2)Softdevice file 
 3)Firmware file. 
 Now I switch off the device and turn it on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Oct 2021 11:13:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80951/ota-on-nrf52840-via-button-mode" /><item><title>RE: OTA on nrf52840 via button mode.</title><link>https://devzone.nordicsemi.com/thread/336168?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 11:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a7700f7-ba4f-4b41-85b9-44607f13ee2a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You need to provide a bootloader settings file also.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The entire procedure is documented &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_settings_generate_display.html&amp;amp;cp=10_7_6"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA on nrf52840 via button mode.</title><link>https://devzone.nordicsemi.com/thread/335920?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 10:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81c3ceaa-7806-4c2f-b882-c7f42e27391c</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Thank you for your response. I read the post which you shared. So basically I will have to mergehex all files and then create a package and do OTA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The command used for merging will be as follows:-&amp;nbsp;&lt;/p&gt;
&lt;p&gt;mergehex --merge s140_nrf52_7.2.0_softdevice.hex ble300.hex nrf52840_xxaa_s140.hex --output out.hex&lt;/p&gt;
&lt;p&gt;Here in the above command&lt;/p&gt;
&lt;p&gt;bootloader file -&amp;nbsp;&lt;span&gt;nrf52840_xxaa_s140.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;softdevice file -&amp;nbsp;&lt;span&gt;s140_nrf52_7.2.0_softdevice.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;application file -&amp;nbsp;&lt;span&gt;ble300&lt;/span&gt;&lt;span&gt;.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and the output after merging will be out.hex.&lt;/p&gt;
&lt;p&gt;please correct me if I am wrong. Also do I have to change any settings of loaction or just merging will help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA on nrf52840 via button mode.</title><link>https://devzone.nordicsemi.com/thread/335496?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 12:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42cd23ee-e634-427d-bce6-2b0b672d5662</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This is discussed in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27006/how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Essentially, if you program the application without using the bootloader the bootloader won&amp;#39;t know that there is a valid application there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still can&amp;#39;t get it to work after reading through the old case let me know, and I will do my best to help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>