SUPL connection setup

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="supl.google.com"
CONFIG_GNSS_SAMPLE_SUPL_PORT=7276
when I build the program, it reports 
/Users/kevin/Dev/NordicCubee/minicube_main_firmware/prj.conf:34: warning: attempt to assign the value 'y' to the undefined symbol GNSS_SAMPLE_ASSISTANCE_SUPL

/Users/kevin/Dev/NordicCubee/minicube_main_firmware/prj.conf:35: warning: attempt to assign the value '"supl.google.com"' to the undefined symbol GNSS_SAMPLE_SUPL_HOSTNAME

/Users/kevin/Dev/NordicCubee/minicube_main_firmware/prj.conf:36: warning: attempt to assign the value '7276' to the undefined symbol GNSS_SAMPLE_SUPL_PORT

error: Aborting due to Kconfig warnings
I get this variable from the readme file. Please let me know why I can't use this value. Should I use socket to connect SUPL server instead?
Parents
  • Hi,

    SUPL client library requires that newlib C library is used. Have you added CONFIG_NEWLIB_LIBC to your project configuration?

    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 thread for more information. You can also check if you have done everything correctly according to the SUPL Client Library documentation.

    Best regards,
    Dejan

  • Hi Dejan

    Thanks for your reply. I follow the guidance of the nordic documentation https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/supl_os_client.html#supl_client_library.

    1.Download the nRF9160 SiP SUPL client library zip file and extract it into the nrf/ext/lib/bin/ folder.

    2. I add the overlay-supl.conf to the project, the following variables work

    # Enable SUPL assistance for GNSS sample
    CONFIG_GNSS_SAMPLE_ASSISTANCE_SUPL=y

    # SUPL client library requires that the newlib C library is used
    CONFIG_NEWLIB_LIBC=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

    CONFIG_GNSS_SAMPLE_SUPL_HOSTNAME="supl.google.com"
    CONFIG_GNSS_SAMPLE_SUPL_PORT=7276
    3. Add the following to the prj.conf
    #SUPL client library
    CONFIG_SUPL_CLIENT_LIB=y
    4. When I compile the program, it reports the following error. I want to know how mang spaces the the supl client needs?
    Or is there anything wrong that causes it to take too much flash?
    /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' will not fit in region `FLASH'
    /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' overflowed by 6540 bytes
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/f8037e9b83/bin/cmake --build /Users/kevin/Dev/NordicCubee/minicube_main_firmware/build
     
Reply
  • Hi Dejan

    Thanks for your reply. I follow the guidance of the nordic documentation https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/supl_os_client.html#supl_client_library.

    1.Download the nRF9160 SiP SUPL client library zip file and extract it into the nrf/ext/lib/bin/ folder.

    2. I add the overlay-supl.conf to the project, the following variables work

    # Enable SUPL assistance for GNSS sample
    CONFIG_GNSS_SAMPLE_ASSISTANCE_SUPL=y

    # SUPL client library requires that the newlib C library is used
    CONFIG_NEWLIB_LIBC=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

    CONFIG_GNSS_SAMPLE_SUPL_HOSTNAME="supl.google.com"
    CONFIG_GNSS_SAMPLE_SUPL_PORT=7276
    3. Add the following to the prj.conf
    #SUPL client library
    CONFIG_SUPL_CLIENT_LIB=y
    4. When I compile the program, it reports the following error. I want to know how mang spaces the the supl client needs?
    Or is there anything wrong that causes it to take too much flash?
    /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' will not fit in region `FLASH'
    /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' overflowed by 6540 bytes
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/f8037e9b83/bin/cmake --build /Users/kevin/Dev/NordicCubee/minicube_main_firmware/build
     
Children
Related