<?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>SRAM image allocation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63701/sram-image-allocation</link><description>Dear,nordic: 
 
 
 
 Please help me allocate more than 80KB of memory on this routine. 
 
 
 SDK : ncs v1.2; 
 samples : asset tracker; 
 path : ncs\v1.2.0\nrf\applications\asset_tracker; 
 function : k_mem_slab_init(&amp;amp;slab, buff, 16, 6400); 
 error :</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jul 2020 13:33:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63701/sram-image-allocation" /><item><title>RE: SRAM image allocation</title><link>https://devzone.nordicsemi.com/thread/260814?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 13:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786942f8-1d9c-4434-a817-df145a5627f3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;First, are you absolutely 100% sure you need a buffer that large?&lt;/p&gt;
&lt;p&gt;As the bsdlib partition cannot be moved, the non-secure SRAM partition can not be expanded to 160kB while you also use the bsdlib, which is necessary to use the modem.&lt;/p&gt;
&lt;p&gt;You might be able to free up the necessary RAM by reducing the number of Zephyr&amp;#39;s features you use, and by reducing the stack used by all the threads in the system.&lt;/p&gt;
&lt;p&gt;You might also be able to split up the buffer into smaller pieces and allocate those separately.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SRAM image allocation</title><link>https://devzone.nordicsemi.com/thread/260688?ContentTypeID=1</link><pubDate>Sat, 18 Jul 2020 10:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:580cbe48-44a7-479c-a98e-7fdf6e966481</guid><dc:creator>meqyj.</dc:creator><description>&lt;p&gt;sir,&lt;span class="sentence_translation"&gt;&lt;span class="tran highlight"&gt;I&amp;#39;m&lt;/span&gt; &lt;span class="tran"&gt;afraid&lt;/span&gt;&amp;nbsp;that now don&amp;#39;t&amp;nbsp;&lt;span&gt;partition the system&amp;#39;s ram,based on the original:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0 {&lt;br /&gt; reg = &amp;lt;0x20000000 DT_SIZE_K(64)&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0_bsd {&lt;br /&gt; reg = &amp;lt;0x20010000 DT_SIZE_K(64)&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;sram0_ns {&lt;br /&gt; reg = &amp;lt;0x20020000 DT_SIZE_K(128)&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;here,&amp;#39;&lt;span&gt;sram0_ns&amp;#39; what way rise to 160KB???&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SRAM image allocation</title><link>https://devzone.nordicsemi.com/thread/260242?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 20:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc144a53-8811-46e4-a8cb-7d4adfda115c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Is your problem solved? Should I close the ticket?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SRAM image allocation</title><link>https://devzone.nordicsemi.com/thread/259840?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 08:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e680ee78-073c-42e9-a73d-bbd1c180acfb</guid><dc:creator>meqyj.</dc:creator><description>&lt;p&gt;&lt;span&gt;Or, using another function, you might want to augment it: CONFIG_HEAP_MEM_POOL_SIZE=122880,t&lt;/span&gt;his will also fulfill my needs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>