<?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>buttonless DFU issue loading with jlink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53533/buttonless-dfu-issue-loading-with-jlink</link><description>Hello, 
 we are using the nRF52840-DK. 
 
 File: secure_bootloader_ble_s140_pca10056.emProject 
 File: ble_app_buttonless_dfu_pca10056_s140.emProject 
 
 In short, we are noticing when uploading through SES with Jlink, the uicr_bootloader_start_address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 14:53:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53533/buttonless-dfu-issue-loading-with-jlink" /><item><title>RE: buttonless DFU issue loading with jlink</title><link>https://devzone.nordicsemi.com/thread/216425?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 14:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3033d2f1-499f-4a53-944c-30792504c35e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The MBR data is included in the bootloader image and can easily get overwritten if you, for instance, flash the Softdevice after programming the bootloader. This is an unfortunate limitation in&amp;nbsp;&amp;nbsp;SDK 15.3.0. But it is fixed in the SDK 16.0.0. From the release notes:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;-Bootloader start address is now placed in UICR at compile time, and the MBR page is&lt;/em&gt;&lt;br /&gt;&lt;em&gt; populated at runtime. This is to mitigate problems with flashing&lt;/em&gt;&lt;br /&gt;&lt;em&gt; where the MBR was erased.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The SES projects will load the Softdevice hex along with the project by default.&amp;nbsp;So this is probably why the data gets overwritten in this case. I suggest removing the Softdevice load option for the application project. That should fix the problem.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1571841340745v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttonless DFU issue loading with jlink</title><link>https://devzone.nordicsemi.com/thread/216424?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 14:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd49c60-533b-4385-a715-06b16ec83e4d</guid><dc:creator>BEplane</dc:creator><description>&lt;p&gt;Thank you Belenie for posting this for me, I was having difficulty posting and have since figured out a solution to posting.&lt;/p&gt;
&lt;p&gt;I have created a post, which makes this post a duplicate. My post with updated information can be found,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53531/nrf52840-ble-buttonless-dfu-sdk-15-3-0-example-memory-issue"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53531/nrf52840-ble-buttonless-dfu-sdk-15-3-0-example-memory-issue&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttonless DFU issue loading with jlink</title><link>https://devzone.nordicsemi.com/thread/216262?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 03:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdadd15a-58df-400d-a5a3-58de196b2c5f</guid><dc:creator>Belenie</dc:creator><description>&lt;p&gt;I will say It is not clear to me what is being written to the MBR page when the app is being loaded. I am under the impression that I do not want to be writing anything to the MBR page while flashing the app.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the application, or softdevice writting to the MBR?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why would I want to change the addresses to the alternative UICR addressed, instead of removing the writing happening to the MBR page? it seems that the writing should not be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttonless DFU issue loading with jlink</title><link>https://devzone.nordicsemi.com/thread/216208?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 14:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:493eef93-fb21-44c2-9e73-a43f8049c095</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="71257" url="~/f/nordic-q-a/53533/buttonless-dfu-issue-loading-with-jlink"]Question: Why is the project writing to 0x0 – 0xfff?[/quote]
&lt;p&gt;Because these are documented locations for bootloader address. I think you are supposed to write to the MBR page &lt;em&gt;without a&lt;/em&gt; page erase, but have no idea how to tell SES to do that.&lt;/p&gt;
&lt;p&gt;Fixed this problem by changing these addresses in the linker script to the alterative UICR addresses (NRFFW[0] and NRFFW[1] in UICR).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For LD this looks like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
 uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>