<?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>SUPL connection setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116074/supl-connection-setup</link><description>HI Sir/Madam 
 
 I downloaded SUPL-C sdk 0.7.2 ad I add the following variable to the prj.conf 
 
 #SUPL client library 
 CONFIG_SUPL_CLIENT_LIB =y 
 CONFIG_GNSS_SAMPLE_ASSISTANCE_SUPL =y 
 CONFIG_GNSS_SAMPLE_SUPL_HOSTNAME = &amp;quot;supl.google.com&amp;quot; 
 CONFIG_GNSS_SAMPLE_SUPL_PORT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 13:39:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116074/supl-connection-setup" /><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/510308?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa1579a-34f0-469f-acb7-fbe0fa37aa52</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Qiang,&lt;br /&gt;&lt;br /&gt;Is the log shown taken when you used NCS v2.6.1 or NCS v2.7.0?&lt;br /&gt;&lt;br /&gt;Are you able to build your project without SUPL client code?&lt;/p&gt;
[quote user="dejans"]Can you provide more information about your application?[/quote]
&lt;p&gt;Can you provide more information about your project? What are you trying to achieve?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509778?ContentTypeID=1</link><pubDate>Sun, 10 Nov 2024 08:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19dfb918-43e2-457f-bfc0-c658f422375d</guid><dc:creator>wstrong</dc:creator><description>&lt;p&gt;Hi Dejans&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t use nrf9160-dk to compile and I have to use our custome board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 6540 bytes&lt;/span&gt;&lt;br /&gt;&lt;span&gt;collect2: error: ld returned 1 exit status&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ninja: build stopped: subcommand failed.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/f8037e9b83/bin/cmake --build /Users/kevin/Dev/NordicCubee/minicube_main_firmware/build&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509670?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 12:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdb152e1-9a1a-4307-8742-9445e57854f8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Qiang,&lt;br /&gt;&lt;br /&gt;Do you use nrf9160-dk or custom board with nrf9160?&lt;br /&gt;&lt;br /&gt;Can you provide logs when using both NCS v2.6.1 and NCS v2.7.0 which show flash overflow?&lt;br /&gt;For testing, please try on both nrf9160-dk board and your custom board (in case you use custom board). Is there any difference with regard to flash overflow?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509487?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 14:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1894ecae-f9df-46cc-a27b-0cd20574f23b</guid><dc:creator>wstrong</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Board: nrf9160&lt;/p&gt;
&lt;p&gt;NCS version: I try to use 2.6.1 and 2.70.&lt;/p&gt;
&lt;p&gt;2.6.1 has smaller compiled binary but still overflow the flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you know what&amp;#39;s the normal binary size if I use supl client.&lt;/p&gt;
&lt;p&gt;BR Qiang&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509462?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 13:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8533e37-305e-4b8b-b4e0-008ffbeb6348</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which board do you use?&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509328?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 21:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7ec5b5b-c8d7-4d66-baf7-8bb305af86b0</guid><dc:creator>wstrong</dc:creator><description>&lt;p&gt;Hi Dejan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I did is to add the supl client code into my project and I compile it which reports flash overflow.&lt;/p&gt;
&lt;p&gt;Refer the following codes i added in my project. Please let me know if you have any idea.&lt;/p&gt;
&lt;p&gt;======================================&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;supl_session_active&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;/* SUPL Session Start */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SuplStartSession&lt;/span&gt;&lt;span&gt;() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_INF(&amp;quot;Starting SUPL session&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;// Initialize SUPL client&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;supl_client_init&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_ERR(&amp;quot;SUPL client initialization failed, error: %d&amp;quot;, err);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;// Start SUPL session&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;supl_client_session&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_ERR(&amp;quot;Failed to start SUPL session, error: %d&amp;quot;, err);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;supl_session_active&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_INF(&amp;quot;SUPL session started successfully&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;/* SUPL session stop function */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SuplStopSession&lt;/span&gt;&lt;span&gt;() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;supl_session_active&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;supl_session_active&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_INF(&amp;quot;SUPL session stopped&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; } &lt;/span&gt;&lt;span&gt;else&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//LOG_INF(&amp;quot;No active SUPL session to stop&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;=======================================================&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509299?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 15:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6fdb4e7-04d1-49e8-9c6a-b52007c622f9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you provide more information about your application?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509157?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 15:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc8cd78d-a5f6-4004-8d71-27bf456f6659</guid><dc:creator>wstrong</dc:creator><description>&lt;p&gt;Hi Dejan&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I follow the guidance of the nordic documentation &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/supl_os_client.html#supl_client_library"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/supl_os_client.html#supl_client_library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.Download the nRF9160 SiP SUPL client library zip file and extract it into the&amp;nbsp;&lt;/span&gt;&lt;code class="file docutils literal notranslate"&gt;&lt;span class="pre"&gt;nrf/ext/lib/bin/&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;folder.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. I add the overlay-supl.conf to the project, the following variables work&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Enable SUPL assistance for GNSS sample&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GNSS_SAMPLE_ASSISTANCE_SUPL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# SUPL client library requires that the newlib C library is used&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GNSS_SAMPLE_SUPL_HOSTNAME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;supl.google.com&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GNSS_SAMPLE_SUPL_PORT&lt;/span&gt;&lt;span&gt;=7276&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;3. Add the following to the prj.conf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#SUPL client library&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SUPL_CLIENT_LIB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;4. When I compile the program, it reports the following error. I want to know how&amp;nbsp;mang spaces&amp;nbsp;the the supl client needs?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Or is there anything wrong that causes it to take too much flash?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&lt;br /&gt;/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 6540 bytes&lt;br /&gt;collect2: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/f8037e9b83/bin/cmake --build /Users/kevin/Dev/NordicCubee/minicube_main_firmware/build&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SUPL connection setup</title><link>https://devzone.nordicsemi.com/thread/509080?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 10:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c1e45c4-6b6b-4846-b572-86bc7e3d6eeb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;SUPL client library requires that newlib C library is used. Have you added&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_NEWLIB_LIBC"&gt;CONFIG_NEWLIB_LIBC&lt;/a&gt;&amp;nbsp;to your project configuration?&lt;br /&gt;&lt;br /&gt;It could be that you did not extract SUPL library to the proper folder and/or maintained proper structure from the zip file. You can look at this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113630/issues-to-build-gnss-sample-while-using-supl-server-for-a-gnss"&gt;thread&lt;/a&gt;&amp;nbsp;for more information. You can also check if you have done everything correctly according to the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/supl_os_client.html#supl_client_library"&gt;SUPL Client Library&lt;/a&gt;&amp;nbsp;documentation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>