<?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>Booloader remap</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61603/booloader-remap</link><description>Hello, 
 I need to remap ble bootloader because I want to use nrf52832_AB instead of nrf52832_AA found in dev kits. 
 I wish I could have this memory mapping in embedded flash : 
 0x00000000 - 0x00001000 MBR 
 0x00001000 - 0x00026000 softdevice 
 0x00026000</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2020 21:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61603/booloader-remap" /><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/251326?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 21:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63745815-6ebc-4b7f-86f4-d5ab678bee09</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;The problem stands in &lt;span&gt;nrf_dfu_types.h, because I&amp;#39;ve made a project copied from secure bootloader. In the Keil project settings, nrf52832_AA was still defined so that bootlodaer settings address was not set correctly.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Othewise, I had to reduce the project size in flash, by setting off the log module, which was not important because debug is made whithout bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In short, when you want to have a bootloader from AA to AB type you have to :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- set ROM start to 0x00036000&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- set ROM size to 0x8000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- use the RAM not used by softdevice&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- set booloader settings address to&amp;nbsp;0x0003F000UL&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;App&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- set ROM start to softdevice end (see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory?CommentId=e1745ea4-7bd9-447f-8e13-c75495204fe1"&gt;this post&lt;/a&gt;&amp;nbsp;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- set RAM accordingly&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-&amp;nbsp;be sure that app ROM size doesn&amp;#39;t exceed the space between softdevice and bootloader&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/250991?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 12:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76f74f10-3557-4514-9b9c-72de9fa75346</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The memory layout looks ok. Have you tried to see if you can debug the application or bootloader after completing the DFU? Maybe it is going in a reset/boot loop? Or is the device going back to DFU mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/250961?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 12:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07676224-1355-4708-bfa4-c395bbf74bf2</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;Hi, that&amp;#39;s what I was thinking : I don&amp;#39;t use FDS so it&amp;#39;s not the problem. Could it be a problem in restart&amp;nbsp;settings? How can I check that mdr&amp;nbsp;parameter storage and bootloader settings are good?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/250956?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 12:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cddc05c-b362-488a-82a6-1ca5ee8cbfad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That explains why you had to set NRF_DFU_APP_DATA_AREA_SIZE to zero. But app data is usually not included in the DFU image. Does it have to be included in this case? Also, are you using FDS? As I mentioned, it will fail to initialize if the allocated flash pages become corrupted during DFU.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/250952?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 11:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c6786b-0081-4021-8345-8c538f7ebb66</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;Hi, the size is&amp;nbsp;0x10000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Booloader remap</title><link>https://devzone.nordicsemi.com/thread/250942?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 11:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18880578-bf23-4926-8e00-6197a20ee5fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Iv&amp;#39;e set&amp;nbsp;NRF_DFU_APP_DATA_AREA_SIZE to 0 and the bootloader transfert process is going on, but the application never starts. The application has been validated on an AB and the whole process has been tested on a AA[/quote]
&lt;p&gt;It sounds like the new application may be too large to fit in the area between Softdevice end and application data start (see&amp;nbsp;&lt;span&gt;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;&lt;/span&gt;). FDS will fail to initialize if the flash pages get overwritten during the DFU process which is a possibility when&amp;nbsp; NRF_DFU_APP_DATA_AREA_SIZE&amp;nbsp; == 0.&lt;/p&gt;
&lt;p&gt;What is the size of application binary file you do DFU with?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>