<?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>Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126374/triggering-reset-loop-from-device-firmware-for-testing</link><description>For our application we are using the nRF9160 and we need low re connection / reset timeouts. Sometimes during a bad chain of events our application will trigger the reset loop of the modem. We have tried to construct our firmware in a way that prevents</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jan 2026 08:39:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126374/triggering-reset-loop-from-device-firmware-for-testing" /><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558665?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 08:39:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebbffcd-17c9-4cdb-9c25-386324399238</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again, there is unfortunately no other way than what is available in the documentation i.e. there is no way to trigger reset loop other than what is documented.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558618?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 15:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3792d320-99a0-4ccb-87e8-0796f520b944</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Our developers have not answered my inquiry yet. I hope they will suggest a solution tomorrow.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558573?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 10:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23492423-ce22-413f-b3a1-f09db48d1764</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, my apologies for the late reply. I will follow-up your answers today.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558133?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2026 11:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf26325-871f-4fe3-8737-e69245dfd7c0</guid><dc:creator>S Biezeman</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/126374/triggering-reset-loop-from-device-firmware-for-testing/558105"]Could you please elaborate more on this situation? The application should actually never hit the reset loop restriction. The application should ensure graceful shutdown using&amp;nbsp;&lt;span&gt;+CFUN=0. What is causing the device of not doing a graceful shutdown?&lt;/span&gt;[/quote]
&lt;p&gt;A seamless update on our cloud endpoint went wrong and caused the endpoint to send malformed data to the device crashing it on each connection cycle, this bypassed triggering the exponential back off which we implemented to prevent the reset loop from happening, which caused some devices with a very short update interval to enter the reset loop.&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/126374/triggering-reset-loop-from-device-firmware-for-testing/558105"]Have you subscribed to modem domain event notifications? I.e.&amp;nbsp;AT%MDMEV=1. This should notifty when your device is in reset loop with&amp;nbsp;&lt;span&gt;%MDMEV: RESET LOOP&amp;nbsp;AT notification after the modem&amp;#39;s activation when the blocking starts or is still ongoing.&lt;/span&gt;[/quote]
&lt;p&gt;Yes we properly detected the reset loop however the reset loop recovery implementation had a implementation error and didn&amp;#39;t update the watchdog timers set by the boot loader causing the device to reset before the reset loop timer ticked down.&lt;/p&gt;
&lt;p&gt;We have now added input sanitation so the device shouldn&amp;#39;t crash anymore to prevent entering the reset loop restriction and we think we have fixed the reset loop recovery implementation. However we cant test the recovery method because we have difficulties getting the device in this reset loop restriction on the desk.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The main point of this thread is that we would like to implement a method to easily and reliably activate the reset loop restriction so we can test if each firmware we release properly recovers from this &amp;quot;worst case scenario that should never happen&amp;quot;.&lt;/p&gt;
&lt;p&gt;We want to check that the devices in the field are always able to recover from the restriction, even if the firmware is structured to prevent the restriction from happening.&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;s Biezeman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558105?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2026 08:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487df34f-47a7-49e2-bc53-b4fa4b518093</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]Sometimes during a bad chain of events our application will trigger the reset loop of the modem.[/quote]
&lt;p&gt;Could you please elaborate more on this situation? The application should actually never hit the reset loop restriction. The application should ensure graceful shutdown using&amp;nbsp;&lt;span&gt;+CFUN=0. What is causing the device of not doing a graceful shutdown?&lt;/span&gt;&lt;/p&gt;
[quote user=""]We have tried to construct our firmware in a way that prevents this loop from occurring but it&amp;#39;s difficult to test if the devices recover from the reset loop.[/quote]
&lt;p&gt;Have you subscribed to modem domain event notifications? I.e.&amp;nbsp;AT%MDMEV=1. This should notifty when your device is in reset loop with&amp;nbsp;&lt;span&gt;%MDMEV: RESET LOOP&amp;nbsp;AT notification after the modem&amp;#39;s activation when the blocking starts or is still ongoing.&lt;/span&gt;&lt;/p&gt;
[quote user="S Biezeman"]Would using the Xfactoryreset with the user data parameter set work?[/quote]
&lt;p&gt;&lt;span&gt;You can reset the timer with the factory reset command, but should only be used during debugging and not when the product is out in field.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/558011?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2026 11:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf225cf-aab6-499b-8023-fe0c0db1bb6b</guid><dc:creator>S Biezeman</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes we have read the activation method of the reset loop by resetting the modem 7 times in a row with the modem in operational mode. However triggering this behavior intentionally is currently quite a hassle:&lt;/p&gt;
&lt;p&gt;To activate the reset loop restriction we flash a firmware image that constantly resets the device during a connection cycle, after the reset loop has been activated we flash our application and check if it properly detects the reset loop and recovers.&lt;/p&gt;
&lt;p&gt;We would like to implement a way to quickly and reliably put the modem in the reset loop restriction preferably by not resetting the application core during the modem reset loop trigger:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Would using the Xfactoryreset with the user data parameter set work? the full reset also seems to clear the loop&lt;/li&gt;
&lt;li&gt;Is there a testing command that can be used to enable the restriction to avoid overloading the network?&lt;/li&gt;
&lt;li&gt;Is there a different modem reset ATcommand that just resets the modem core.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If there is no easy way to turn the restriction on we will probably just create a function that keeps a persistant crash counter in device ROM using the settings subsystem and have it crash after a succesfull connection until the countdown reaches 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering reset loop from device firmware for testing</title><link>https://devzone.nordicsemi.com/thread/557932?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 13:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:274d5a0a-1464-46fc-bd64-9c71c39bdec9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you seen the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nwp_042/page/WP/nwp_042/intro.html"&gt;Modem Reset Loop Restriction white paper&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nwp_042/page/WP/nwp_042/activation.html"&gt;Activation of reset loop restriction&lt;/a&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>