<?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>guide to allocate the amount of ram/rom I need</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41386/guide-to-allocate-the-amount-of-ram-rom-i-need</link><description>HW: nrf52840 
 SW: nRF5_SDK_15.2.0_9412b96 
 
 Hi, 
 I would like to learn how allocate Flash, RAM and SRAM setting and how do I find out the total RAM/ROM my application needed via Segger. 
 Q1: 
 There are something I dunno why, according to the nrf52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Dec 2018 06:52:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41386/guide-to-allocate-the-amount-of-ram-rom-i-need" /><item><title>RE: guide to allocate the amount of ram/rom I need</title><link>https://devzone.nordicsemi.com/thread/161335?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 06:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10945682-62da-4e81-a93e-9a1a18acdd53</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: guide to allocate the amount of ram/rom I need</title><link>https://devzone.nordicsemi.com/thread/161014?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 14:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d1e32b-b59d-4ba4-bb15-f342d76dd3cf</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just posted a tutorial on how to adjust the FLASH and RAM memory, you can find it &lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I suggest you read that tutorial on how you can set the start addresses.&lt;/p&gt;
&lt;p&gt;To answer quick:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;FLASH_START: The value you choose here is dependent on which SoftDevice you use. The SoftDevice does somethings when you start your Application, and then points to the start address of the Application, which is this address. If you don&amp;#39;t use a SoftDevice then the start address is 0x0, if you use only a MBR, then the start address is &lt;strong&gt;0x1000&lt;/strong&gt;.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;FLASH_SIZE: This is the size of the available FLASH, this size should not exceed FLASH_PH_SIZE&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;RAM_START: This value is also dependent on which SoftDevice you use. This value is the minimum value you can use and still run the Application. It may not perform as expected with this value if your SoftDevice uses many features.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;RAM_SIZE: This is the size of the available RAM, &lt;strong&gt;(&lt;/strong&gt;&lt;strong&gt;RAM_SIZE + RAM_START)&lt;/strong&gt; should not be larger than (&lt;strong&gt;RAM_PH_START + RAM_PH_SIZE).&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;FLASH_SIZE and RAM_PH_SIZE is the size of the FLASH and RAM available on your chip.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;Q3:&lt;/p&gt;&lt;p&gt;&lt;span&gt;And what is the different between the SRAM(0x20000000-0x40000000) vs RAM(0x60000000-0xA0000000) on the&amp;nbsp;Memory map? when I allocate the&amp;nbsp;RAM_PH and RAM_START should I use the SRAM or RAM?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The section &lt;span&gt;RAM(0x60000000-0xA0000000) is not used by anything, I think its in the memory map to display how a memory map looks, as you cant find it in the instantiation table below. For allocating the RAM, just look at the tutorial.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Best regards,&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>