<?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>Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62729/merging-ota-dfu-example</link><description>Hi, 
 I am setting a nrf52832 for an OTA DFU using BLE. I am on windows. 
 After managing to run the Secure DFU Bootloader following the getting started , I am trying to merge the Secure DFU Bootloader&amp;#39;s content to my main application. 
 I was wondering</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2020 21:04:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62729/merging-ota-dfu-example" /><item><title>RE: Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/thread/255854?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 21:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120614ac-947f-42f1-9614-46c3ab5e8aa2</guid><dc:creator>JayLynkz</dc:creator><description>&lt;p&gt;Thanks for your help! I got other questions regarding buttonless DFU for which I started another post&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62776/buttonless-dfu"&gt;here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/thread/255845?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 17:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f4ae8f-51bc-4cf9-8fcd-2546c1f77202</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;My suggestion above is a bit off topic from your question. My suggestions&amp;nbsp;was how to support code development and flash programming using SES.&lt;/p&gt;
&lt;p&gt;With your Bootloader / Softdevice installed, you should be able to DFU over BLE.&lt;/p&gt;
&lt;p&gt;But you do need to consider a way to &amp;quot;enter&amp;quot; DFU mode ...&lt;/p&gt;
&lt;p&gt;If no Application is programmed in the device, the Bootloader will stay in DFU mode automatically.&lt;/p&gt;
&lt;p&gt;If a valid Application is programmed into flash, then you need to know how you will enter DFU mode.&lt;/p&gt;
&lt;p&gt;You may need to modify/configure Bootloader to support a button press entry method upon power up.&amp;nbsp; If you want to&amp;nbsp;allow a running Application to exit to the Bootloader/DFU, you need to support that process within your application. This could coded to be via a button operation, or via Nordic&amp;#39;s &amp;quot;buttonless&amp;quot; DFU BLE service.&lt;/p&gt;
&lt;p&gt;Documents don&amp;#39;t give a lot of bottom-line info, but they are there. It&amp;nbsp;all works nicely once it is up an running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/thread/255844?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 17:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3800ccd2-0f25-4ba0-af42-61058d56ede7</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;Much more complicated process to support what you want to do ... mostly thinly mentioned/documented.&lt;/p&gt;
&lt;p&gt;I would recommend just using nrfjprog to program in the Bootloader and Softdevice, since you presumably will not be changing that too much.&lt;/p&gt;
&lt;p&gt;Instead of having the SES project do an additional load of the Softdevice, you would change it to load a CRC settings.hex file.&amp;nbsp;You need to create this settings.hex file on the fly via a post-linker operation. This put&amp;#39;s the newly built Application CRC calculation into a specific area that the Bootloader reads.&lt;/p&gt;
&lt;p&gt;Lastly if you are using SES versions &amp;gt; 4.18 you have to do the workaround mentioned in this issue:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39261/nrfutil-generates-wrong-crc/253607#253607"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39261/nrfutil-generates-wrong-crc/253607#253607&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/thread/255794?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 13:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1f77c9-4e0e-4f3e-ba5d-33f361aab097</guid><dc:creator>JayLynkz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer! I didn&amp;#39;t mention in the first post that I am using SES.&lt;/p&gt;
&lt;p&gt;I now understand that it should remain a different project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Want I want is to be able to perform DFU over BLE whenever needed. For that, I cannot be flashing the bootloader manually like I did for the example. That raises me the following questions :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Should I include the Bootloader in my project as an additionnal load file (like it is done for the SoftDevice) ?&lt;/p&gt;
&lt;p&gt;Should I include&amp;nbsp;it as a .hex the same way we do for a softdevice ?&lt;/p&gt;
&lt;p&gt;Do I have to attribute a specific memory segment ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any documentation that support the procedure ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jerome&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging OTA DFU example</title><link>https://devzone.nordicsemi.com/thread/255647?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 01:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68630c5-bf91-4a05-baf4-c0bc9897b73c</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;Normally the Secure DFU Bootloader is set up as a completely different project to your own Application.&lt;/p&gt;
&lt;p&gt;The Bootloader would manage safely updating your separate Application project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>