<?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>Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114987/memory-leak-using-wifi-on-nrf7002-after-connect-disconnect</link><description>I set up the wifi_shell sample using a nRF7002DK and noticed that it is leaking 104 bytes of heap after each wifi connect/disconnect cycle. This is with version 2.7.0 of the SDK. 
 Here is how to reproduce. 
 
 Setup a new project on the nRF7002DK using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Oct 2025 12:41:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114987/memory-leak-using-wifi-on-nrf7002-after-connect-disconnect" /><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/550703?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 12:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819afa3e-72f6-4ba7-afe3-8f3a2e19518c</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hehe understood. No problem at all &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let us know if there is anything else!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/550612?ContentTypeID=1</link><pubDate>Fri, 03 Oct 2025 15:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48cd15d-fb8c-427f-a836-22e86f320180</guid><dc:creator>BrianW</dc:creator><description>[quote userid="103347" url="~/f/nordic-q-a/114987/memory-leak-using-wifi-on-nrf7002-after-connect-disconnect/550588"]So you do not have a DK on hand?[/quote]
&lt;p&gt;No not a nrf70 one.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/114987/memory-leak-using-wifi-on-nrf7002-after-connect-disconnect/550588"]I would be surprised if&amp;nbsp;changes to dts made a huge difference in regards to thi[/quote]
&lt;p&gt;no the problem was the build, the iovdd IO was on an ioexpander, so I needed to add I2C and the MCP23xxx to the prj.conf!&lt;/p&gt;
&lt;p&gt;Having managed to build the wifi_shell, I find that I cannot replicate the memory loss over connect/disconnect cycles (WPA2/PSK connections) -&amp;gt; the leak must be in my code! Mea culpa....&lt;/p&gt;
&lt;p&gt;Sorry about that, this issue just seemed to match the observations...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/550588?ContentTypeID=1</link><pubDate>Fri, 03 Oct 2025 12:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078b074f-3a3e-472b-a56f-bd38eabb8b30</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see. Well&amp;nbsp;it seemed solved on ourside afterwards, though I guess there could be some regression.&lt;/p&gt;
&lt;p&gt;So you do not have a DK on hand? I would be surprised if&amp;nbsp;changes to dts made a huge difference in regards to this, though I can give this a go with 2.9 next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/550511?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 14:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a6782ac-adfa-4330-9562-2dfb419adab8</guid><dc:creator>BrianW</dc:creator><description>&lt;p&gt;Well, its basically the same : connect then disconnect repeatly reduces the heap by about 100+ bytes each time.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t managed to rebuild wifi-shell with my DTS in 2.9.0 currently, so can&amp;#39;t 100% say its the wifi code - any chance you can do the test with 2.9.0 as described by &lt;a href="https://devzone.nordicsemi.com/members/tjstone14"&gt;Rocky&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;And last time i tried to update to 3.0.0 the increase in image size meant it wouldn&amp;#39;t fit in the nrf5340 anymore....&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/549636?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 07:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7db312a-4def-40e4-98ce-58b487172ab6</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;I am not seeing anything more about &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/79891"&gt;than this unfortunately&lt;/a&gt;. If you could expand more on the memory leaks you are seeing in 2.9 that would be great, I believe what was solved here should be fixed in 2.9. Are you able to reproduce it in the same way as in the OP?&lt;/p&gt;
&lt;p&gt;Switching to latest SDK is generally recommended though, if you are able to.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/549598?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 16:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9594574f-3189-4c69-91d7-66864ffd2c0f</guid><dc:creator>Rocky</dc:creator><description>&lt;p&gt;Yes, the memory leak was fixed for me in v2.6.0. &amp;nbsp;However, I continued to have random issues until v3.0.0. &amp;nbsp;It seems the RPU would randomly lock up and a full reboot was required for recovery. &amp;nbsp;I have been having good success with v3.0.0 and an application firmware adjustment to bring down the interface between connections (net_if_down/net_if_up).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/549489?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 07:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f759596f-8f3e-4281-bf49-a96d730f3c9f</guid><dc:creator>BrianW</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using NCS2.9.0 with my application, and am observing the same kind of heap memory leak at each connect/disconnect cycle (of the order of 180 bytes).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/tjstone14"&gt;Rocky&lt;/a&gt;&amp;nbsp;did you see this as fixed in 2.6.0?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp;where can I find the details of the fix please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/507853?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2024 07:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f11cac9b-6e62-4d92-8fc2-17bf1f1109e1</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Quick update: the fix will get into v2.6 as well. Once again, for more info, contact an RSM.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/506850?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2024 08:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7c84b0-ce2a-4031-a36c-658c6cf514a0</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;It should be fixed in the next NCS version. For info on when that releases, please contact your local RSM.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/504620?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 07:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1a2802-6e8a-4322-a1c9-5f172e6e0a90</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Understood.&lt;/p&gt;
&lt;p&gt;Please contact your local RSM or FAE if you need this handled&amp;nbsp;within a certain timeframe, or in any way quicker than things are currently developing.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/504548?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 13:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:291692dd-6aa4-478e-9323-27cf5deef22f</guid><dc:creator>Rocky</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp; Please let me know if they come up with a fix or work-around.&amp;nbsp; This issue is problematic in my application, which needs to sync data via wifi periodically and then go into a low power mode.&amp;nbsp; After a few days the application runs out of memory and needs to be restarted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/504479?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 08:13:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b02165-0e2b-46aa-b67b-e97c4aaa4410</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I am seeing the same thing on my side. This looks like a bug. Thanks for notifying us!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve forwarded this to appropriate team, and will update you once I hear more from them.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory leak using WiFi on nRF7002 after connect/disconnect</title><link>https://devzone.nordicsemi.com/thread/504144?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 10:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b693cab-9038-41c9-8975-274ac9f320c3</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello, and thank you for your patience with this case.&lt;/p&gt;
&lt;p&gt;Unfortunately, I have to get back to you on this next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>