<?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>nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97711/nrf9160-with-p-gps-securefault-before-lte-is-connected</link><description>Hey, 
 Debugging an issue with my application at the moment, losely based on asset tracker. I&amp;#39;m using the Location API to gather GNSS/Cellular positioning on a custom board using an nrf9160. I have been unable to debug an issue where the device will encounter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2024 14:22:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97711/nrf9160-with-p-gps-securefault-before-lte-is-connected" /><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/482083?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 14:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ffc198-b541-4869-9cf6-6adea88cd07d</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;The fix has been merged in the following pull request:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/15071/"&gt;https://github.com/nrfconnect/sdk-nrf/pull/15071/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And will be included in NCS 2.7.0.&lt;/p&gt;
&lt;p&gt;Thank you again for reporting that bug and a possible fix.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/479503?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 15:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9649036-96ba-428b-b7b5-b4a49c9250b7</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Thank you for reporting that, I have checked that this is how the code looks in the main branch currently and I am forwarding this to the developers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/478352?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 13:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3833c218-1555-4197-960c-750ca87213aa</guid><dc:creator>papatel</dc:creator><description>&lt;p&gt;We did a bunch of P-GPS experimentation today and I came across your post on accident.&amp;nbsp; I believe I know how to resolve your problem.&amp;nbsp; The SDK has a suboptimal sequence when requesting P-GPS injection data that could lead to a null pointer condition.&lt;/p&gt;
&lt;p&gt;In the file nrf_cloud_pgps.c at the end of the file there is a code snippet that looks like below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (evt_handler) {
			evt.type = PGPS_EVT_AVAILABLE;
			evt.prediction = found_prediction;
			evt_handler(&amp;amp;evt);
		}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Simply change it to the below and it&amp;nbsp;has a high chance of solving your problem (trying to inject a null prediction pointer!!)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (evt_handler &amp;amp;&amp;amp; found_prediction) {
			evt.type = PGPS_EVT_AVAILABLE;
			evt.prediction = found_prediction;
			evt_handler(&amp;amp;evt);
		}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;P-GPS is such a critical feature, I wished Nordic tested it more and made it more accessible.&amp;nbsp; Not cool that prediction data isn&amp;#39;t available publicly like other GPS solutions providers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/421296?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 15:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce2d540-69a9-4631-9e4a-58215dec802d</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;At least with a DK, the TF-M debug output comes through UART1 by default. For this, UART1 needs to be enabled and these Kconfig options set:&lt;/p&gt;
&lt;p&gt;CONFIG_TFM_LOG_LEVEL_SILENCE=n&lt;/p&gt;
&lt;p&gt;CONFIG_TFM_EXCEPTION_INFO_DUMP=y&lt;/p&gt;
&lt;p&gt;CONFIG_TFM_SPM_LOG_LEVEL_DEBUG=y&lt;/p&gt;
&lt;p&gt;Could you also enable debug logging for the Location and nRF Cloud libraries and provide an application log? The last option increases the log buffer size, as P-GPS may output quite a lot of traces.&lt;/p&gt;
&lt;p&gt;CONFIG_LOCATION_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;CONFIG_NRF_CLOUD_GPS_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BUFFER_SIZE=10240&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/420620?ContentTypeID=1</link><pubDate>Sun, 16 Apr 2023 03:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b64801d-55b3-4f4a-90c2-bb709da2620c</guid><dc:creator>napei_</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;NCS version 2.3.0, modem FW version 1.3.4.&lt;/p&gt;
&lt;p&gt;We have temporarily disabled P-GPS for our solution as it&amp;#39;s not currently a guarantee that the device will power on in LTE signal range initially before getting location.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/420326?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 16:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62aa22b-66f3-4fba-97ed-7dc3b4a7622e</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello, I am back in the office.&lt;/p&gt;
&lt;p&gt;I have forwarded it to our experts and I will keep you updated.&lt;/p&gt;
&lt;p&gt;Please tell me the NCS and modem FW versions as well.&lt;/p&gt;
&lt;p&gt;I guess a workaround would be to make sure that you are connected to LTE when running P-GPS?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/418921?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 03:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaaafc2a-33d3-4d9f-b7f0-636d6bbe9424</guid><dc:creator>Michal</dc:creator><description>&lt;div style="font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;Due to holiday season (Easter) in Norway, we are a bit low in staff. I am currently out of office and I will be back after Easter. Sorry for the delays and thanks for your patience in advance. Happy Easter.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/417243?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 21:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20ac238-9de9-4b9d-ae23-89d49d5f8269</guid><dc:creator>napei_</dc:creator><description>&lt;p&gt;Thanks for the update, and no problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/417225?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 19:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec28194-bcd8-4648-8731-d125cb0f3f4c</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Just wanted to let you know that I did not get to take a better look at it yet, hopefully next week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/415753?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 14:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b6f551-4516-4ad6-a87e-32f6f2f07cf0</guid><dc:creator>napei_</dc:creator><description>&lt;p&gt;Thanks Michal, no worries at all&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f60a.svg" title="Blush"&gt;&amp;#x1f60a;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 with P-GPS: SecureFault before LTE is connected</title><link>https://devzone.nordicsemi.com/thread/415741?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 13:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:611b21b2-7b44-4fc0-a535-ec01b33161cf</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It will take me some time to look into it, so I have to ask for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>