<?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>Location request cancel problem.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107549/location-request-cancel-problem</link><description>Hello, everyone. 
 I have following hang-up problem when location_request_cancel() is called. 
 I&amp;#39;m using nrf9160 and using location library (LTE-catM1) to get cell tower information. 
 location_request(); location_request_cancel(); //--&amp;gt; this is causing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2024 10:43:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107549/location-request-cancel-problem" /><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/466723?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 10:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:563f7f5a-9fb8-4fcd-9777-f094bb527ef7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="hanspark73"]I read POWER RESETREAS after box reboot and the value was 0x10000 .[/quote]
&lt;p&gt;This is &lt;/p&gt;
&lt;table border="1" cellpadding="4" cellspacing="0" frame="border" rules="all" summary=""&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="vertical-align:top;" colspan="8" headers="d974783e8517 d974783e8520 d974783e8523 d974783e8526 d974783e8530 d974783e8533 d974783e8536 d974783e8539 d974783e8624 d974783e8626 d974783e8628 d974783e8630 d974783e8633 d974783e8635 d974783e8637 d974783e8639 d974783e8727 d974783e8730 d974783e8733 d974783e8736 d974783e8740 d974783e8743 d974783e8746 d974783e8749 d974783e8843" rowspan="1"&gt;&lt;/td&gt;
&lt;td style="vertical-align:top;" colspan="24" headers="d974783e8542 d974783e8545 d974783e8549 d974783e8552 d974783e8555 d974783e8558 d974783e8561 d974783e8564 d974783e8568 d974783e8571 d974783e8574 d974783e8577 d974783e8580 d974783e8583 d974783e8587 d974783e8590 d974783e8593 d974783e8596 d974783e8599 d974783e8602 d974783e8606 d974783e8609 d974783e8612 d974783e8615 d974783e8641 d974783e8643 d974783e8646 d974783e8648 d974783e8650 d974783e8652 d974783e8658 d974783e8664 d974783e8671 d974783e8673 d974783e8675 d974783e8677 d974783e8679 d974783e8681 d974783e8684 d974783e8686 d974783e8688 d974783e8690 d974783e8692 d974783e8694 d974783e8701 d974783e8703 d974783e8709 d974783e8715 d974783e8752 d974783e8755 d974783e8759 d974783e8762 d974783e8765 d974783e8768 d974783e8771 d974783e8774 d974783e8778 d974783e8781 d974783e8784 d974783e8787 d974783e8790 d974783e8793 d974783e8797 d974783e8800 d974783e8803 d974783e8806 d974783e8809 d974783e8812 d974783e8816 d974783e8819 d974783e8822 d974783e8825 d974783e8847" rowspan="1"&gt;
&lt;p&gt;Reset due to wakeup from System OFF mode, when wakeup is triggered by entering debug interface mode&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
[quote user="hanspark73"]FYI, I&amp;nbsp; set break point on location_request_cancel with debugger and tried step to check when box really crashes but hang-up isn&amp;#39;t reproduced. when I removed breakpoint and just hit go, it crashes. (with CONFIG_RESET_ON_FATAL_ERROR=n)[/quote]
&lt;p&gt;Do you get the same error if you run the application without debugging? &lt;br /&gt;Which RESETREAS do you get then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/466651?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 03:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb66b87-4181-4470-9c85-eefb36249f0a</guid><dc:creator>hanspark73</dc:creator><description>&lt;p&gt;I read POWER RESETREAS after box reboot and the value was 0x10000 .&lt;br /&gt;FYI, I&amp;nbsp; set break point on location_request_cancel with debugger and tried step to check when box really crashes but hang-up isn&amp;#39;t reproduced. when I removed breakpoint and just hit go, it crashes. (with CONFIG_RESET_ON_FATAL_ERROR=n)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/466406?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 08:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:439c23df-5bce-4bd9-89f6-bb9c304f2da1</guid><dc:creator>hanspark73</dc:creator><description>&lt;p&gt;it just one reboot and back to normal operation. we do have log but it has no &amp;quot;meaningful log message like panic, hard fault&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/466401?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 08:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:689b72b8-743a-4e87-ab5d-8a36d27eba38</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="hanspark73"]It just reboot.[/quote]
&lt;p&gt;Ah, that is interesting.&lt;/p&gt;
&lt;p&gt;Will it reboot forever, or is it just one reboot and then back to normal operation?&lt;/p&gt;
[quote user="hanspark73"]I also tried coredump when hang-up is occuring but it just reboot and there is no coredump file.[/quote]
&lt;p&gt;Can you try to read the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_1_0_4_6_0_0_13#register.RESETREAS"&gt;Power RESETREAS register&lt;/a&gt; to get the reset reason?&lt;/p&gt;
[quote user="hanspark73"]I also tried coredump when hang-up is occuring but it just reboot and there is no coredump file.[/quote]
&lt;p&gt;Do you have any logs from the application available? Does it log a hard fault or something like that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/466395?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 08:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4771fb3-7685-48e5-b409-3d01961372b4</guid><dc:creator>hanspark73</dc:creator><description>&lt;p&gt;It just reboot. (And I dont&amp;#39; think this reboot is caused by watchdog). It is not called on watchdog callback.&lt;br /&gt;I tried disable watchdog but it still rebooted.&lt;br /&gt;I also tried coredump when hang-up is occuring but it just reboot and there is no coredump file.&lt;br /&gt;: when I called k_oops to check coredump, it was working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/465964?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 11:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3993cb68-94d6-4d51-94b7-ea4734b210dd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;You have a Watchdog enabled, but this error causes the application to hang forever even so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/465701?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 01:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddd58fe9-da26-4ee3-bc82-debf72549e30</guid><dc:creator>hanspark73</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. after calling location_request (by event), request_cancel is called by other event. (by external event. ). 2 function call is handled in same task.&lt;br /&gt;this cancel is needed as a pre-step for modem-stop. and This call leads to hang-up. (not 100% but quite frequently)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2. The delay between location_request(after LOCATION_EVT_INIT_METHOD ) &amp;amp; request_cancel is about 200 miliseconds.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&amp;lt;callback=null in watch_dog&amp;gt;&lt;br /&gt;after setting callback=null in watch_dog like following, I couldn&amp;#39;t reproduce same problem. (hang-up after request_cancell is called). &lt;br /&gt;Could this be a meaningful symptom for finding the hang-up issue?&lt;/p&gt;
&lt;p&gt;:the setting I used : watch_feed = 1 minute&lt;br /&gt; struct wdt_timeout_cfg wdt_config = {&lt;br /&gt; .flags = WDT_FLAG_RESET_SOC, &lt;br /&gt; .window.min = WDT_MIN_WINDOW, //0&lt;br /&gt; .window.max = WDT_MAX_WINDOW, //5*60*1000 : 5 minutes&lt;br /&gt; .callback=NULL //&amp;lt;-- after setting to null, hang-up isn&amp;#39;t reproduced.&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hans Park.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/465551?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58927a90-486d-4cbf-96c3-10579f1fed3b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help here.&lt;/p&gt;
[quote user=""]location_request();&lt;br /&gt;location_request_cancel(); //--&amp;gt; this is causing hang-up and if I put some delay between 2 function call, hang-up isn&amp;#39;t always reproduced.[/quote]
&lt;p&gt;The delay is in between the two of those?&lt;/p&gt;
&lt;p&gt;Have you tested how long the delay has to be?&lt;/p&gt;
&lt;p&gt;What is your use-case where these two functions are called without a delay between them?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/465201?ContentTypeID=1</link><pubDate>Sun, 21 Jan 2024 23:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacb5e13-4d7c-467c-b792-a753be533ccb</guid><dc:creator>hanspark73</dc:creator><description>&lt;p&gt;Hello helsing,&lt;/p&gt;
&lt;p&gt;Thank you for the replay,&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using &amp;quot;mfw_nrf9160_1.3.2.zip&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location request cancel problem.</title><link>https://devzone.nordicsemi.com/thread/464997?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 10:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a82f213-12a2-40d5-98f0-0f8a5df96020</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello hans,&lt;/p&gt;
&lt;p&gt;I will be looking into this. Which modem firmware version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>