<?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>What is the recommended iROM &amp;amp; iRAM setup for S140 5.0.0-3.alpha?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23237/what-is-the-recommended-irom-iram-setup-for-s140-5-0-0-3-alpha</link><description>Hi, this is what I use to use for .s140_nrf52840_5.0.0-1.alpha_softdevice: 
 
 This doesn work for 5.0.0-3 alpha, as my app won&amp;#39;t even download when using keil, I suppose it&amp;#39;s overlapping with the 5.0.0-3 sd device. 
 And I looked up the migration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jul 2017 07:53:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23237/what-is-the-recommended-irom-iram-setup-for-s140-5-0-0-3-alpha" /><item><title>RE: What is the recommended iROM &amp; iRAM setup for S140 5.0.0-3.alpha?</title><link>https://devzone.nordicsemi.com/thread/91390?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 07:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db22ca8c-2302-4bf4-9cea-328e385f3917</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Very clear and detailed, thanks a whole bunch, although it does not help me at all, I tried all the values and none of them get me further in my progress...&lt;/p&gt;
&lt;p&gt;Anywho I really, really appreciate this detailed reply, I now know how they are calculated and it will sure help me in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the recommended iROM &amp; iRAM setup for S140 5.0.0-3.alpha?</title><link>https://devzone.nordicsemi.com/thread/91389?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abcb0223-bdf4-4bff-a7ac-17f02501597f</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/mem_usage/mem_resource_map_usage.html"&gt;infocenter.nordicsemi.com/.../mem_resource_map_usage.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the recommended iROM &amp; iRAM setup for S140 5.0.0-3.alpha?</title><link>https://devzone.nordicsemi.com/thread/91388?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd440da-b216-4a5c-ac29-e4ccccd3f195</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;###Settings for IROM1:&lt;br /&gt;
&lt;strong&gt;start&lt;/strong&gt; is where the softdevice ends and application starts&lt;br /&gt;
&lt;strong&gt;size&lt;/strong&gt; is what is left in flash for the application&lt;br /&gt;
&lt;strong&gt;start&lt;/strong&gt; and &lt;strong&gt;size&lt;/strong&gt; should then add up to the size of flash. (The size values below are based on a 1MB (0x100000 bytes) flash size, which is, at the time of writing, the only option for the nRF52840 chip)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;                       Start          Size
s140_5.0.0-1.alpha:    0x21000        0xDF000
s140_5.0.0-2.alpha:    0x22000        0xDE000
s140_5.0.0-3.alpha:    0x24000        0xDC000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;###Settings for IRAM1:
&lt;strong&gt;start&lt;/strong&gt; is where the softdevice RAM ends and application RAM starts&lt;br /&gt;
&lt;strong&gt;size&lt;/strong&gt; is what is left in RAM for the application&lt;br /&gt;
&lt;strong&gt;start&lt;/strong&gt; and &lt;strong&gt;size&lt;/strong&gt; should then add up to the size of RAM (+ RAM start address which is 0x2000000). (The size values below are based on a 256kB (0x40000 bytes) RAM size, which is, at the time of writing, the only option for the nRF52840 chip)&lt;/p&gt;
&lt;p&gt;To find the RAM usage of the softdevice set a breakpoint in &lt;code&gt;softdevice_enable()&lt;/code&gt; in &lt;strong&gt;softdevice_handler.c&lt;/strong&gt; to see the &lt;code&gt;app_ram_base&lt;/code&gt; return value after the &lt;code&gt;sd_ble_enable()&lt;/code&gt; call. Adjust the IRAM1 settings accordingly.&lt;/p&gt;
&lt;p&gt;When I ran the ble_app_hrs example in SDK13.0.0 with SD 3.alpha, the value of &lt;code&gt;app_ram_base&lt;/code&gt; was 0x20002670. Then settings will then be:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Start            Size
0x20002670       0x3D990  (0x20002670 + 0x3D990 = 0x20040000)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>