<?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>RAM optimisation for WiFi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106629/ram-optimisation-for-wifi</link><description>Hello, 
 I am using the nrf7002 ek and attempting to optimise the RAM assignment for the project. I have reduced the size of several thread stack sizes as well as the heap in order for the application to fit onto my hardware. It&amp;#39;s clear that I&amp;#39;ve cut</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2025 05:06:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106629/ram-optimisation-for-wifi" /><item><title>RE: RAM optimisation for WiFi</title><link>https://devzone.nordicsemi.com/thread/523990?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 05:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479a4a26-8c60-4f27-af76-7a260a81810c</guid><dc:creator>Jayant Tang</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;That&amp;#39;s because the HEAP not enough,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740114249715v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740114277123v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So just increase the HEAP:&lt;br /&gt;```&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_HEAP_MEM_POOL_SIZE=50000&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;I verified it on 9160DK + 7002EK, with Wi-Fi Shell sample, and modified the `overlay-scan-only.conf`&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jayant&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM optimisation for WiFi</title><link>https://devzone.nordicsemi.com/thread/460574?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:428cad1a-a8ab-4ea1-a599-7f59cd19e39c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Will,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="willdrowley"]I&amp;#39;ve tried using some of the recommend configs from the docs on resource constrained hosts.[/quote]
&lt;p&gt;It is these configurations, right?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf70/developing/constrained.html#usage-profiles"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf70/developing/constrained.html#usage-profiles&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did this at some point work? If yes, then I&amp;#39;d recommend trying to backtrack to that state, and adjust one-by-one config to where it starts showing errors again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the host MCU you&amp;#39;re using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM optimisation for WiFi</title><link>https://devzone.nordicsemi.com/thread/460567?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 13:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f0157b-efc7-4353-920b-72e60c4bd7b1</guid><dc:creator>willdrowley</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your quick reply. Unfortunately that does not work. Would increasing&amp;nbsp;CONFIG_NET_BUF_RX_COUNT and&amp;nbsp;CONFIG_NET_BUF_TX_COUNT not increase the RAM requirement of the application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve tried using some of the recommend configs from the docs on resource constrained hosts. But with either the same error as above or some other crash causing the application to cycle before setup.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My proj.conf file is a bit disordered at the moment. I will try to clean it up and share. Any general advice on debugging the rx buffer error or the cycling prior to setup would be appreciated in the meantime.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM optimisation for WiFi</title><link>https://devzone.nordicsemi.com/thread/460366?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 12:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e7edbc2-3c15-43a3-8600-58c86f09b5d2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_fmac_rx_cmd_send: No space for allocating RX buffer[/quote]
&lt;p&gt;This comes from the nrf_fmac_rx_cmd_send, which uses the net subsys from zephyr for buffering.&lt;/p&gt;
&lt;p&gt;Try to increase CONFIG_NET_BUF_RX_COUNT and see if this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it does not help, please share your configuration.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>