<?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>Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126216/stack-overflow-after-reboot-wi-fi-provisioning-over-ble-nrf7002-dk</link><description>Using the Wi-Fi Fundamentals – Lesson 2, Exercise 3 (Provisioning over Bluetooth LE) sample from Nordic Semiconductor DevAcademy (GitHub solution l2e3_sol, main branch) , the application builds and runs correctly on first boot: BLE provisioning succeeds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jan 2026 09:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126216/stack-overflow-after-reboot-wi-fi-provisioning-over-ble-nrf7002-dk" /><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557889?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 09:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83965c7b-29d8-4ff3-89a4-db280aa6781f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Kim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you erasing the credentials when rebooting? If not then the device tries to reconnect to the already existing credentials.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:269px;max-width:582px;" height="269" src="https://devzone.nordicsemi.com/resized-image/__size/1164x538/__key/communityserver-discussions-components-files/4/pastedimage1767603750292v1.png" width="582" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557550?ContentTypeID=1</link><pubDate>Mon, 22 Dec 2025 22:23:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a442197-77b9-4abe-85af-f960364eb31f</guid><dc:creator>skim</dc:creator><description>&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Thanks for testing this.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;One thing I noticed while reproducing the issue: when provisioning with the Android &lt;/span&gt;&lt;strong&gt;&lt;span&gt;nRF WiFi Provisioner&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; app, if &lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;ldquo;Persist Credentials&amp;rdquo; is set to true&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, the device attempts to automatically reconnect to Wi-Fi after reboot, and I observe a stack overflow during startup.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;If &lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;ldquo;Persist Credentials&amp;rdquo; is set to false&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, the device does not auto-reconnect after reboot, and I do not see the stack overflow.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;In the logs you shared, after reboot the application appears to stop at Bluetooth advertising and does not attempt Wi-Fi reconnection. Could you confirm whether Wi-Fi credentials were persisted in your test (i.e., whether &amp;ldquo;Persist Credentials&amp;rdquo; was enabled during provisioning)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for checking.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557404?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 08:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93f55b85-0724-4cd4-8977-c530bcac2d88</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Just tested this on nRF Connect SDKv3.2.0 and I do not see any faults or overflows even after many resets .. provisioned the device already as per the exercise.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:488px;max-width:490px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/980x976/__key/communityserver-discussions-components-files/4/pastedimage1766132720245v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Build configuration is same as yours&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/pastedimage1766132768684v2.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1766132771266v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557364?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2025 18:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:060bd25c-557f-4362-aab6-07a3728a04c0</guid><dc:creator>skim</dc:creator><description>&lt;p&gt;Thanks for the suggestion. I tried the recommended configuration changes and rebuilt the application, but the issue still persists. The behavior is unchanged: the sample works on first boot, but after reboot it still hits a stack overflow. The logs are the same as previously shared.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557336?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2025 13:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1785a54d-7cbb-4b48-8912-2e389767a558</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Seems like the main stack usage has gone up here, can you please try increasing the main stack size and also setting stack sentinels to catch stack overflow errors&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MAIN_STACK_SIZE=8192
CONFIG_STACK_SENTINEL=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow after reboot – Wi-Fi provisioning over BLE (nRF7002 DK)</title><link>https://devzone.nordicsemi.com/thread/557280?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2025 01:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cfcb4ae-bfe6-4f33-90c8-7a8d4c0a6037</guid><dc:creator>skim</dc:creator><description>&lt;p&gt;Tested the same &lt;code data-start="549" data-end="559"&gt;l2e3_sol&lt;/code&gt; sample from the &lt;strong data-start="576" data-end="609"&gt;v2.8.0&amp;ndash;v2.9.0 GitHub branches&lt;/strong&gt;, built with the corresponding &lt;strong data-start="640" data-end="669"&gt;nRF Connect SDK/toolchain&lt;/strong&gt;, and the application works correctly after reboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>