<?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>How to add bootloader to existing app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46411/how-to-add-bootloader-to-existing-app</link><description>I could run the examples like blinky just out of the box 
 But, I am clueless how to add a bootloader to this example. I just want to add a simple bootloader from Open Bootloader example to the blinky example 
 I get the point that in the bootloader I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Apr 2019 12:21:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46411/how-to-add-bootloader-to-existing-app" /><item><title>RE: How to add bootloader to existing app?</title><link>https://devzone.nordicsemi.com/thread/184303?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 12:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d66914-4f19-4eba-88d9-2ee0e4e535ab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. This way you program the onboard debugger via USB DFU, but it is not related to DFU of the nRF device itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add bootloader to existing app?</title><link>https://devzone.nordicsemi.com/thread/184214?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 07:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b64cf0-3233-4bcf-acc7-d170933e4ff0</guid><dc:creator>Aadishri GS</dc:creator><description>&lt;p style="padding-left:30px;"&gt;&lt;em&gt;It should not be possible to brick the DK (without doing something physical to it). If everything goes wrong, you could be able to recover from any issue using &amp;quot;nrfjprog.exe --recover&amp;quot;.&lt;/em&gt;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;
&lt;p&gt;I had to drag and drop the HLink related bin to fix this...&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46273/nrf-board-not-getting-detected"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46273/nrf-board-not-getting-detected&lt;/a&gt;&amp;nbsp;is the query-resolution. Still clueless why it happened&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add bootloader to existing app?</title><link>https://devzone.nordicsemi.com/thread/183042?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 08:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b598e62-e3cc-41f2-b52a-3fc486d0d72f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But, I am clueless how to add a bootloader to this example. I just want to add a simple bootloader from Open Bootloader example to the blinky example[/quote]
&lt;p&gt;The open bootloader example is only provided with USB transport, but you can adapt the secure bootloader to allow updates of application etc. without a signed image, for instances as mentionned in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38728/how-to-disable-bootloader-dfu-signature/149639#149639"&gt;this post&lt;/a&gt;.&amp;nbsp;I would think twice about skipping signed firmware updates for a real end product, though.&lt;/p&gt;
&lt;p&gt;You can use an unmodified application in the simple case where you don&amp;#39;t need buttonless DFU nor bond sharing. In that case, you just hold down a button (or assert a GPIO in another way) during reset to trigger DFU mode. If not, it will be a bit more complex and you should refer to the examples and documentation to see how it is done. You can always create questions here when you have specific issues.&lt;/p&gt;
[quote user=""]I get the point that in the bootloader I must provide the address for jumping to app start. But a lot of points like converting to hex file, merging and getting the memory layout right is intimidating. Can a simple set of steps be provided?[/quote]
&lt;p&gt;DFU is unfortunately quite complex, so you should spend some time understanding it. I recommend you refer to &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;this&amp;nbsp;guide&lt;/a&gt;&amp;nbsp;for a gentle introduction to DFU. Then you could move on to&amp;nbsp;the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples_bootloader.html?cp=5_0_4_4"&gt;DFU examples&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_bootloader_modules.html?cp=5_0_3_5"&gt;bootloader library documentation&lt;/a&gt;.&lt;/p&gt;
[quote user=""]I already almost bricked my nRF52840 DK. Hence want to go informed way[/quote]
&lt;p&gt;It should not be possible to brick the DK (without doing something physical to it). If everything goes wrong, you could be able to recover from any issue using &amp;quot;nrfjprog.exe --recover&amp;quot;.&lt;/p&gt;
[quote user=""]It was very hard to get the documentation with broken links everywhere[/quote]
&lt;p&gt;&amp;nbsp;We have some issues with the documentation platform, and just reverted to the old platform (Infocenter). This has resulted in dead links, but we will fix dead links going forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>