<?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 set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25910/how-to-set-the-ram-start-sddress-of-app-and-bootloader</link><description>I am working on OTA DFU about nRF52810.
My refernece project are ble_app_uart\pca10040\s132 and bootloader_secure_ble\pca10040 
I find that the RAM start address between are different.
This is the start RAM address of APP: 
 
This is the start RAM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Oct 2017 13:47:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25910/how-to-set-the-ram-start-sddress-of-app-and-bootloader" /><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102054?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 13:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbba201f-ef29-4dcf-a09c-b952c26a347d</guid><dc:creator>Stayhungry</dc:creator><description>&lt;p&gt;Thank you very much, your help is very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102053?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 13:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8432089b-9709-481a-a5b0-61e53e8372b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Legacy bootloader is the bootloader we supported from SDK v6 until SDK v11. It won&amp;#39;t be compatible with your current application+softdevice if you are using newer SDK.&lt;/p&gt;
&lt;p&gt;But you can port it to the latest SDK. I don&amp;#39;t see any big issue porting that example to newer SDK (and newer Softdevice).&lt;/p&gt;
&lt;p&gt;Yes, I simply calculate application size as what you wrote. It could be smaller if you want to reserver application data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102055?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 12:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e51aa89-85f0-4f92-b198-10a614cc00d7</guid><dc:creator>Stayhungry</dc:creator><description>&lt;p&gt;Thanks，Hung Bui.&lt;/p&gt;
&lt;p&gt;Where can I find the legacy bootloader information?&lt;/p&gt;
&lt;p&gt;If I use single bank update, it means that the risk of damage to the firmware in the DFU process is considered?&lt;/p&gt;
&lt;p&gt;How to calculate the APP space is 36KB?
192 (flash size) - 140 (softdevice) - 12 (legacy bootloader) - 4 (bootloader setting) = 36KB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102056?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 07:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f69a1345-5389-4cf7-86c9-2ff6c9d8c54d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@stayhungry: You may want to reduce the size of the bootloader by using our legacy bootloader instead of using the secured one. Of course, you will lose the signing feature of the bootloader. But the legacy one is only about 12kB.&lt;/p&gt;
&lt;p&gt;In addition, you can do single bank update (automatically selected in the bootloader, if the image size is larger than max dual bank limit) instead of dual bank.&lt;/p&gt;
&lt;p&gt;This mean you can have about 36kB for the application. And can update 36kB new image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102052?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 02:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21260ab-16a5-46f9-8fbf-32a1bc2eb8bd</guid><dc:creator>Stayhungry</dc:creator><description>&lt;p&gt;Thanks,guy.
I have also considered S112, but it removed the function of the DLE, which makes me very embarrassing situation, because my needs must be high-speed, it seems that I can only give up the OTA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102051?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 02:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04bc1dcc-7ec2-4aa3-8e47-0bc60e44e716</guid><dc:creator>piepie</dc:creator><description>&lt;p&gt;Hi Stayhungry, I thinke you can use S112 itstead of S132, which will save you quite much flash space. It is a alpha version for now and you can find it on the infocenter. Hope it helps :&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102050?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 02:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85235754-8963-409f-8ec4-47a8ba3774d7</guid><dc:creator>Stayhungry</dc:creator><description>&lt;p&gt;HI,piepie,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m doing something like you. But there is a place plagued me, nrf52810 the flash enough?&lt;/p&gt;
&lt;p&gt;s132: 140kB&lt;/p&gt;
&lt;p&gt;bootloader: 28KB (24KB dfu bootloader + 4kB bootloader setting)&lt;/p&gt;
&lt;p&gt;ble_app_uart: 25KB&lt;/p&gt;
&lt;p&gt;total:140+28+25 &amp;gt; 192KB&lt;/p&gt;
&lt;p&gt;Do OTA also need double the app space, how do you solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102049?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 10:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e0b4cd-e70f-4061-8718-882d5f3d8a69</guid><dc:creator>piepie</dc:creator><description>&lt;p&gt;thanks, Hung Bui.I got it. I do see the log. Now I understand. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the RAM start sddress of app and bootloader</title><link>https://devzone.nordicsemi.com/thread/102048?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 09:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f92210-8a9c-4ca8-b4bf-8586a503fbe1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The start address of RAM varied depends on the application. Basically, we need to allocate enough RAM for the softdevice base on the configuration of the application, for example the number of vendor defined UUID, the number of connections it would support, the bandwidth of the connections. This result in different RAM start configuration of different application.&lt;/p&gt;
&lt;p&gt;If you open log output when running application, you can find the recommended RAM start for each application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>