<?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>Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121195/facing-hang-in-zephyr-wifi-library-and-watchdog-reset-not-occurred-that-instances</link><description>Hi, 
 We have enabled the watchdog feature in our application running on the nRF5340 and nRF7002. In rare cases, we’ve observed that the nRF5340 hangs during zephyr library operations, and in such instances, the watchdog reset does not trigger. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 May 2025 10:32:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121195/facing-hang-in-zephyr-wifi-library-and-watchdog-reset-not-occurred-that-instances" /><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534840?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 10:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da20ea61-d725-43d8-aab1-bf129963f460</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;
&lt;p&gt;Ok, let me know if you are able to recreate the scenario again, and please check the callstack and/or assertion log if it happens.&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: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534834?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 10:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ea01c4-0ff1-4b73-9953-75261e4effa2</guid><dc:creator>Amirtha</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Yes, Firmware is working as expected.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Amirtha N&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534819?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 08:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b6862b-656a-4836-96ce-94b3f135b315</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;
&lt;p&gt;This means that no fault occurred for 2 days? Ie. the firmware still behaves as expected?&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: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534800?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 06:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136152ea-12d5-4087-938b-3f46951af8a4</guid><dc:creator>Amirtha</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As per your suggestion, we disabled the watchdog timer (WDT) and tested the device for two days, during which no resets occurred. However, since our device requires a watchdog to handle potential hangs, Any suggestions on how to add watchdog efficiently.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Amirtha N&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534654?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 12:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25657cd-5933-42b4-8abf-240555148dea</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;
&lt;p&gt;First callstack shows that you&amp;#39;re validating your image, ie. in mcuboot context.&lt;/p&gt;
&lt;p&gt;Second callstack shows a workq item being executed, but no fault/assert.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It can be beneficial if you disable the watchdog while trying to debug your issue.&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: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534642?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 11:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff5c9440-c72f-41a2-ab55-af972b8f4fd5</guid><dc:creator>Amirtha</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have attached the call stack that appears when the connection request is received.&lt;br /&gt;&lt;br /&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/0550.Screenshot-_2800_73_2900_.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Amirtha N&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534633?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 11:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8371b2f-81b2-4906-8afe-18f563def14a</guid><dc:creator>Amirtha</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Once the connection request is received, a reset occurs. During the reset, the provided call stack appears. I have attached the screenshot.&lt;br /&gt;&lt;br /&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/Screenshot-_2800_71_2900_.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Amirtha N&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534616?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 10:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b7c6c3-efe2-46a1-b3db-915969622273</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;
&lt;p&gt;That callstack does not&amp;nbsp;seem to hold anything useful, looks like it is from after a reset has occurred.&lt;/p&gt;
&lt;p&gt;Did you attach without resetting the target after it faulted?&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/pastedimage1746786051773v1.png" alt=" " /&gt;&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: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534576?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 07:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee983328-b33c-44ec-813a-c77f61147e65</guid><dc:creator>Shanmugam</dc:creator><description>&lt;p&gt;&lt;span&gt;We are using UART for logging. As you mentioned, we have disabled CONFIG_RESET_ON_FATAL_ERROR to prevent a reset from occurring. We have attached a screenshot that includes the log and call stack.&lt;/span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/CallStack_5F00_devicelog.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534514?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 16:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8fdcfbc-5acb-430c-bb70-2c9149c34b34</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;
&lt;p&gt;It looks like you are using RTT for logging and receiving an assertion or fault.&lt;/p&gt;
&lt;p&gt;First, lets enable blocking assert/faults:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you still do not see any assert output on RTT, could you please enter debug mode and share the callstack?&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: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/534432?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 10:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058d0d7b-09c7-4e24-a7a2-f750713c6b43</guid><dc:creator>Shanmugam</dc:creator><description>&lt;p&gt;&lt;span&gt;we have upgraded to nRF Connect SDK v2.6.4 on our nRF7002 DK (nrf5340). However, we are encountering an issue where the device undergoes an unknown reset repeatedly after a connection request. Issue Description: After initiating a connection request, the device resets unexpectedly and continuously at the same point and reproducible. The issue did not occur in the previous SDK version (v2.6.1).&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sdk_5F00_2_5F00_6_5F00_2_5F00_reset_5F00_log.txt"&gt;devzone.nordicsemi.com/.../sdk_5F00_2_5F00_6_5F00_2_5F00_reset_5F00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing hang in Zephyr wifi library and watchdog reset not occurred that instances</title><link>https://devzone.nordicsemi.com/thread/533946?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 14:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329aa21b-4222-42ac-b491-2d5ceebfc0e6</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=""]In rare cases, we’ve observed that the nRF5340 hangs during Wi-Fi library operations, and in such instances, the watchdog reset does not trigger. [/quote]
&lt;p&gt;This indicates that the scenario is yielding to the thread where you reload the watchdog.&lt;/p&gt;
&lt;p&gt;Could you share a bit more information about your application?&lt;/p&gt;
&lt;p&gt;Q1: What NCS version are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q2: Do you have &amp;quot;RPU Recovery&amp;quot; enabled? This is a feature that resets the nRF7002 in case it does not respond over (Q)SPI.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To enable the RPU recovery (available from v2.5-branch/v2.6.2 and forward), you need to enable this kconfig:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/drivers/wifi/nrf700x/nrf700x.html#cmdoption-arg-config_nrf_wifi_rpu_recovery" href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/drivers/wifi/nrf700x/nrf700x.html#cmdoption-arg-CONFIG_NRF_WIFI_RPU_RECOVERY" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/drivers/wifi/nrf700x/nrf700x.html#cmdoption-arg-CONFIG_NRF_WIFI_RPU_RECOVERY&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And implement the Wi-Fi Ready library + handle the events in the application itself:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/libraries/networking/wifi_ready.html" href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/libraries/networking/wifi_ready.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/libraries/networking/wifi_ready.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An example of such an handling is implemented in the wifi/sta sample:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/samples/wifi/sta/readme.html#rpu_recovery" href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/samples/wifi/sta/README.html#rpu_recovery" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/samples/wifi/sta/README.html#rpu_recovery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; See the implementations guarded with &amp;quot;CONFIG_WIFI_READY_LIB&amp;quot; here:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/v2.5-branch/samples/wifi/sta/src/main.c#l56" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5-branch/samples/wifi/sta/src/main.c#L56" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5-branch/samples/wifi/sta/src/main.c#L56&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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>