<?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>Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64613/impact-on-secure-serial-dfu-if-there-is-change-in-flash-and-ram-address</link><description>Hello, 
 
 I am using nRF52840 S140 v7.0.1 and using ble_app_blinky. I have a query on Secure Serial DFU if there is a change in Flash and Ram address. 
 In original example code below are the macros. 
 
 FLASH_START=0x27000 
 FLASH_SIZE=0xd9000 
 RAM_START</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Aug 2020 18:38:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64613/impact-on-secure-serial-dfu-if-there-is-change-in-flash-and-ram-address" /><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263685?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 18:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80507f14-5472-40dd-97ff-4d21e7b92061</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Than a lot for correcting me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263684?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 14:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90bb214-e497-418e-8acd-7cfbc5b3800d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I believe Bjørn meant&amp;nbsp;&lt;span&gt;FLASH_START&amp;nbsp;+&amp;nbsp;FLASH_SIZE &lt;strong&gt;&amp;lt;=&lt;/strong&gt; the Bootloader start address,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It can be 0xD1000 if you don&amp;#39;t have any application data, but if you want to reserve 3 pages for that you need to take that into account , so the correct flash size is 0xCE000.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263683?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 09:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a3e785-4372-4612-9a4d-694e993f18da</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Reason behind change&amp;nbsp;&lt;span&gt;FLASH_SIZE=0xd1000 is because of below my other query link.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61106/analyzing-flash_start-ram_start-and-corresponding-linker-macros"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61106/analyzing-flash_start-ram_start-and-corresponding-linker-macros&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Yes, you need to set the&amp;nbsp;&lt;/span&gt;&lt;span&gt;FLASH_SIZE&amp;nbsp;in the application so that&amp;nbsp;FLASH_START&amp;nbsp;+&amp;nbsp;FLASH_SIZE&amp;nbsp;=&amp;gt; the Bootloader start address, otherwise you risk overwritting the bootloader.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vishnu Beema&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263682?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 09:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c596f46d-d8a2-433c-9122-65069e2800c0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vishnu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at the memory layout here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Usually the bootloader for S140 nRF52840 is located at 0xF8000 (unless you change this). If you have 3&amp;nbsp;reserved applicatoin pages =12kB, then the space left for application is&lt;/p&gt;
&lt;p&gt;0xF8000 - 0x3000 - 0x27000 = 0xCE000.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Note that if you use more than half of the application flash space you can&amp;#39;t do dual bank DFU update and need to do single bank update (erase old application before receiving new application)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263681?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 12:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6694cf19-54f4-4b2f-9872-11523c1561fb</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your inputs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes we are using bootloader. Can you please let me know any macro which indicate maximum flash size.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In our application, we are using&amp;nbsp;FDS_VIRTUAL_PAGES as 3.&amp;nbsp;If FDS_VIRTUAL_PAGES macro is changed, we will make sure it is same even in Bootloader macro NRF_DFU_APP_DATA_AREA_SIZE, so that FDS_VIRTUAL_PAGES = (NRF_DFU_APP_DATA_AREA_SIZE / (1024 * 4) = 3&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Impact on Secure Serial DFU if there is change in Flash and Ram address</title><link>https://devzone.nordicsemi.com/thread/263680?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 11:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2764e3-80b7-4271-be94-95e3cd025ed0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hei Vishnu,&amp;nbsp;&lt;br /&gt;The RAM modification wouldn&amp;#39;t have anything to do with the DFU because the application won&amp;#39;t run at the same time as the bootloader.&amp;nbsp;&lt;br /&gt;Regarding the FLASH modification , so in your application you reduce the Flash size ? Do you have any reason to do so ?&amp;nbsp;&lt;br /&gt;Changing that wouldn&amp;#39;t affect the DFU process neither, but I&amp;#39;m not very certain why you want to change the flash size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Note that if you plan to have the bootloader you need to recalculate the maximum flash size to avoid that the application area overlap the bootloader area.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>