<?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>NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118694/nrf9151dk-autonomous-resets-when-simultaneously-starting-lte-connection-and-gps-on-modem-fw-2-0-2</link><description>I have updated a board (NRF9151DK) from modem FW 2.0.1 to 2.0.2. The board is also equipped with nrf7002-EK, and the support for the wifi driver is enabled (SB_CONFIG_WIFI_NRF70, SB_CONFIG_WIFI_NRF70_SCAN_ONLY, haven&amp;#39;t verified if this makes a difference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Mar 2025 11:03:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118694/nrf9151dk-autonomous-resets-when-simultaneously-starting-lte-connection-and-gps-on-modem-fw-2-0-2" /><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/527990?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 11:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4842129-2491-4458-98f2-7aaf5d7914c9</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;I agree that it&amp;#39;s likely an app issue, from what is described here. But I&amp;#39;m not new to watchdog, not new to zephyr, not new to threads, ... and I can&amp;#39;t figure out why the watchdog fires in this case. That&amp;#39;s why I raised the ticket in the first place. I&amp;#39;ve provided a stripped down reproduction sample. If anyone is able to point out where the mistake is (in the app), I&amp;#39;m happy to learn from that. But so far, my feeling is that there&amp;#39;s a deeper issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/524420?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 17:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ff0d30-88e1-4aa1-9ac1-ff5d03dc5b42</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I&amp;#39;m just an other user.&lt;/p&gt;
&lt;p&gt;AFAIK the watchdog is located on the app CPU not on the modem. If changing the modem firmware fires that watchdog of the app CPU, it is in my experience still an issue in the app.&lt;/p&gt;
&lt;p&gt;What changing the mfw may cause is a slightly different timing, which then may unexpected block. Your countermeasures are pointing to something like that.&lt;/p&gt;
&lt;p&gt;Anyway, it&amp;#39;s your time and so your decision. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/524306?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19996650-c5e8-4339-bb9c-c17a40833992</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;I don&amp;#39;t agree with your conclusions. The GPS thread does not fully take over CPU control since in the internal loop of &amp;quot;app_gps_internal_get_fix&amp;quot;, it periodically blocks on a semaphore. Also, again, this whole program runs fine with modem fw 2.0.1 and watchdog enabled.&lt;/p&gt;
&lt;p&gt;I have even changed the watchdog channel period to 20 seconds (20000 msec) and in combination with modem fw 2.0.1, the watchdog kicks in at the expected time if it is not fed. Also, the callback is called (task_wdt_callback) as expected.&lt;/p&gt;
&lt;p&gt;With modem FW 2.0.2 this is not the case, the watchdog resets way sooner, and a callback is not called. The solutions or fixes that can make the application work with FW 2.0.2 are one of those:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Delay of gps thread startup with e.g. 1 second&lt;/li&gt;
&lt;li&gt;Or changing the sleep of the main loop to something like 50 msec instead of 1 second what it was in the past
&lt;ul&gt;
&lt;li&gt;90 msec also works fine, 100msec does not. By chance (or not?), this is equal to CONFIG_TASK_WDT_MIN_TIMEOUT.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So please stop asking me to toggle GPIOs. The main loop is running and kicking, but the problem is that the watchdog decides to reset nevertheless, and it resets way before the configured task period of e.g. 5 seconds or 20 seconds. This behavior only occurs with modem fw 2.0.2, not with fw 2.0.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/524286?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc617de4-62aa-4baf-9e21-8de9e8a67a93</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;After a brief look at your project, it seems like your GPS thread completely takes over the main thread, so that the watchdog never gets&amp;nbsp; fed in the first place. How exactly have you timed these system resets on your end?&lt;/p&gt;
&lt;p&gt;To confirm whether the feeding in the main loop ever is reached, you can try switching it out with a GPIO toggling instead to see if that ever happens. We assume this will be blocked when you run the GPS, and that it just never is fed. Making some changes to the priorities in your application should fix that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/524010?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 08:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1de9fc-a123-48c4-a290-cdc9917a8d3d</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for jumping in.&lt;/p&gt;
&lt;p&gt;The SDK version and toolchain is 2.9.0.&lt;/p&gt;
&lt;p&gt;Actually, the watchdog reset occurs several seconds before a first task timeout can occur. The task timeout is set to 5 seconds, but the system resets after about 2 seconds (without calling the watchdog callback either). So there&amp;#39;s no relationship with the duration of the tasks.&lt;/p&gt;
&lt;p&gt;Changing the task timeout to 10 seconds or more does not make any difference: the system still resets after about 2 seconds.&lt;/p&gt;
&lt;p&gt;The application can work completely fine if the watchdog is disabled, or if I put a sleep of 1 second (overkill) before the initialization of the GPS stack, which is the workaround that I&amp;#39;m using now.&lt;/p&gt;
&lt;p&gt;In my opinion, I think it&amp;#39;s best to try to reproduce based on the code that I provided. Let me know if I should re-share the code sample.&lt;/p&gt;
&lt;p&gt;The issue is not urgent for me, but I have the feeling that there&amp;#39;s something fundamentally wrong that should be understood better or it can cause more issues in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/523931?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 14:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d036aad-33df-4719-8bc1-d2bda1358772</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, but Susheel is not available, and I&amp;#39;ve been tasked with looking into this ticket while he&amp;#39;s away. So sorry that we have to take a couple of steps back as I need some time to get into this case. One thing I&amp;#39;m not able to find info on in this case is which SDK version you&amp;#39;re working on here. Can you share some more information on that. I&amp;#39;m currently waiting for some replies internally on ideas as to why the watchdog would misbehave like this. I have not looked at the project you uploaded, but I&amp;#39;ll get to that. Just wanted to give you a status update.&lt;/p&gt;
&lt;p&gt;My initial thought, and this is just me taking a stab in the dark, is that the GPS location takes longer time than what the watchdog timeout is set as, and thus the watchdog triggers a reset while you&amp;#39;re trying to get a GPS location. Is there a specific reason the WDT is set to 5 seconds, and could you try to increase it substantially to see if that makes a difference? You say that your application works as expected if you disable the WDT. Can you confirm you&amp;#39;re able to initialize GPS and get a GPS ping as expected without the WDT?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/523192?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 09:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce7092d-2d26-48e8-94a7-0f930a58bbb4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I downloaded it now, will try to reproduce it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/523127?ContentTypeID=1</link><pubDate>Sat, 15 Feb 2025 13:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85c0ce93-fa92-46b9-a77d-5a6803db7280</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;The GPIO toggling is not very relevant, the reset occurs even faster than that (rather 1.5 to 2 seconds).&lt;/p&gt;
&lt;p&gt;A more or less minimal reproduction codebase can be found at &lt;a href="https://drive.google.com/file/d/1ivy9eGtTYCgckw6WrWdGo_HJNOSL1UGk/view?usp=sharing"&gt;https://drive.google.com/file/d/1ivy9eGtTYCgckw6WrWdGo_HJNOSL1UGk/view?usp=sharing&lt;/a&gt;. Let me know once you downloaded it so I can remove it again.&lt;/p&gt;
&lt;p&gt;This is for nrf9151, it&amp;#39;s reproducible without sim card, you also don&amp;#39;t need nrf7002.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t matter if you set GPIO&amp;#39;s to IO-expander (via board configuration tool) or keep them on GPIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/522848?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 12:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c1b513f-0224-4499-81fd-a261b87d486f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That seems strange that you are feeding the WDT in time and still it resets before the 5 seconds timeout expires. Can you toggle a gpio everytime you feed the WDT to see if the context you are feeding it is getting CPU in time or if that context is masked by some other high priority contexts?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you GPIO toggle test, if you think the feeding is still in time, then yes, please give me a minimalistic project that I will look into early next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/522651?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 13:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e50bea13-6f33-460a-86c6-612a8382cd3c</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;The reset reason seems to be watchdog. Verified by nrfx_reset_reason_get and hwinfo_get_reset_cause function.&lt;/p&gt;
&lt;p&gt;Indeed, watchdog is enabled. But it&amp;#39;s initialized with a task configured with a timeout of 5 seconds, whereas the device resets way faster than 5 seconds. I&amp;#39;ve made sure that watchdog init and feeding is started before anything else, but that doesn&amp;#39;t help anything.&lt;/p&gt;
&lt;p&gt;It seems to me that GPS initialization tampers with the watchdog and that results in a reset, that&amp;#39;s the best conclusion I can draw so far. Removing the main task from watchdog control (so that there&amp;#39;s no task whatsoever under WD control), or not initializing the watchdog at all seems to prevent the issue, but that&amp;#39;s not sufficient.&lt;/p&gt;
&lt;p&gt;BTW I also have a callback registered to the watchdog, which should print if it expires (in the normal way, this has been verified) and that print is also not taking place.&lt;/p&gt;
&lt;p&gt;If you want, I could try to strip down my code to a bare minimum and share it? I&amp;#39;m not new to using NRF91, but this seems like a strange problem and I don&amp;#39;t think it&amp;#39;s due to my code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/522632?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 11:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b49e6e3-f72e-4f7c-a6f1-01f918544107</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sebastian, I am sorry, I got this from a forum thread which seemed logical but it does not look like this AT command will work on our product.&lt;br /&gt;&lt;br /&gt;You can manually print the reset reason as done in many other samples like below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void print_reset_reason(void)
{
	uint32_t reset_reason;

	reset_reason = nrfx_reset_reason_get();
	LOG_INF(&amp;quot;Reset reason: 0x%x&amp;quot;, reset_reason);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/522494?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 15:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d1980e4-0b7c-4a75-80bf-78a13fe7c3e2</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;Are you sure this command exists? I can&amp;#39;t find it in the documentation &lt;a id="" href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/intro_nrf91x1.html"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/intro_nrf91x1.html&lt;/a&gt; and I also couldn&amp;#39;t get it to work, it returns ERROR while e.g. &amp;quot;AT%DEVICEUUID&amp;quot; does provide a response. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/522438?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 12:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68da1817-05b3-4c99-8fec-bdef7d5a4581</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for late response. Then you should be able to read the reset reason&lt;/p&gt;
&lt;p&gt;If you see&amp;nbsp;0x00000004 then it is a brown out reset and then we need to see if your power source is stable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/521942?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 13:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c655cd91-5601-4da1-857b-c13b2454f7a6</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I rather think this is a brownout reset. The function sys_reboot() is never hit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/521898?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 11:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80f6104-e160-4559-b11c-37c6699ed3de</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The first thing that comes to my mind when you say autonomous resets is that this should be trackable. Can you put a breakpoint in the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/lib/os/reboot.c#L16"&gt;sys_reboot&lt;/a&gt;() function, run the application in debugger and let the breakpoint hit. When you look at the function call stack at this point it will give us more context on why this is happening and we can take it from there on how to avoid or workaround.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9151DK autonomous resets when simultaneously starting LTE connection and GPS on modem FW 2.0.2</title><link>https://devzone.nordicsemi.com/thread/521758?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 14:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998660ca-4c8d-4338-ab5b-ab507ea9246c</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;I just observed that a 100msec sleep is not always sufficient, I have now just increased it to 1 second to be safe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>