<?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>nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46425/nrf9160-sram-partition-changes</link><description>Hello, 
 I would like to modify the current default SRAM partition from 64k (secure), 64k (bsd), 128k (non-secure). I would like to change it as follows; 8 k (secure), 8k (bsd), 240k (non-secure). The secure_boot application is only using around 4k now</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2019 08:07:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46425/nrf9160-sram-partition-changes" /><item><title>RE: nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/thread/186574?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 08:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8685792b-e31f-45d3-91f5-811b34970213</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Please see the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45750/nrf9160-software-architecture-boot-bsd-app-and-partitioning/186481#186481" rel="noopener noreferrer" target="_blank"&gt;updated answer to that thread.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/thread/186487?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 01:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a57c2ae-0aa8-4cfc-b597-9a4a844720bf</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;&lt;strong&gt;I stronly would suggest that Nordic builds/releases another bsd library that only uses 8k or 16k of memory.&lt;/strong&gt;&lt;br /&gt;Following the sugested SAM partition of 64kb secure, 64kbkb bsd that leaves you only 128kb for the application.&lt;/p&gt;
&lt;p&gt;For example: I am porting an appliction that used to access an ublox cellular modem and uses at most 2kb of RAM. Why should I waste the other 62kb of RAM?&lt;/p&gt;
&lt;p&gt;The secure memory can easily be reclaimed but not the BSD memory.&lt;br /&gt;&lt;br /&gt;And I think it implies from the original question that JL just wanted to increase the available memory for the non-secure application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/thread/185738?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 12:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f57a0ebf-2407-44b0-905e-7d57ad8bab2a</guid><dc:creator>gonzalezjl</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Is it possible then to have discontiguous Non-Secure areas in SRAM to be used by the application?&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0 {&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;reg = &amp;lt;0x20000000 DT_SIZE_K(8)&amp;gt;;&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0_ns {&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;reg = &amp;lt;0x20002000 DT_SIZE_K(56)&amp;gt;;&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0_bsd {&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;reg = &amp;lt;0x20010000 DT_SIZE_K(64)&amp;gt;;&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;sram1_ns {&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;reg = &amp;lt;0x20020000 DT_SIZE_K(128)&amp;gt;;&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;JL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/thread/185613?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 07:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6634f867-e227-4688-90d8-df5d48c04eea</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi JL,&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Update 20.01.2020:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Check the updated &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/bsdlib/doc/ug_bsdlib_porting_os.html#memory" rel="noopener noreferrer" target="_blank"&gt;BSDLIB documentation &lt;/a&gt;for the latest information.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;The secure domain memory is divided into segments of 8 KB RAM blocks. Because the size of the BSD library block is 0xC020 bytes, it is not aligned to full 8 KB blocks. It occupies six blocks and a small part of a seventh block.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The leftover memory in that seventh block (8160 bytes, starting at address 0x2001 c020) is configured as non-secure, but it can be used by the application.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Old answer:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;The BSD Library has an absolute position and is fixed at starting address 64K and size of 64K&amp;nbsp;(0x20010000 &amp;ndash; 0x2001FFFF).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This cannot be moved.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, all other partitions might be moved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The BSD memory &lt;span style="text-decoration:underline;"&gt;always&lt;/span&gt; has to be &lt;strong&gt;Non-Secure configured.&lt;/strong&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;You can&amp;nbsp;find the &amp;quot;Default flash planning&amp;quot;&amp;nbsp; in the file: [/&lt;em&gt;ncs/zephyr/boards/arm/nrf9160_pca10090/&lt;strong&gt;nrf9160_pca10090_partition_conf.dts&lt;/strong&gt;&lt;/em&gt;]&lt;/p&gt;
&lt;p&gt;There it&amp;#39;s also documented that &amp;quot;&lt;em&gt;64 kB SRAM reserved for and used by the BSD socket&amp;nbsp;library.&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SRAM Partition changes</title><link>https://devzone.nordicsemi.com/thread/183107?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 12:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1729686-467d-43cd-9f4d-16a02e3c487d</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;Me too.&lt;br /&gt;I have a similar (more general)&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45750/nrf9160-software-architecture-boot-bsd-app-and-partitioning"&gt;question&lt;/a&gt;&amp;nbsp;still open till today about this.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45750/nrf9160-software-architecture-boot-bsd-app-and-partitioning"&gt;devzone.nordicsemi.com/.../nrf9160-software-architecture-boot-bsd-app-and-partitioning&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>