This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can not run GPS example code available in nRF Connect SDKv1.0.0 on nRF9160 DK.

Hello,

I am working on nRF9160 DK development platform.

For that i Compile & run GPS example, But while debuging that example i find that mcu stucks in CPU Idle function for infinite period of time.

And this is happening while creating a socket.

I Assume that sample example code should not have any issue it should run flawlessly, i think i am missing soemthing while creating an environment / installing SDK & toolchain.

Please let know the solution of this issue.

Parents Reply Children
  • For HTTP Sample Application,

    If i right click on "getaddrinfo" function to see it's function definition,

    I see definition of  "net_getaddrinfo_addr_str" function.

    Is both the function are same ?

    Where to find any #ifdef for this function conversion ?

    I observed same thing in many of functions in Nordic SDK proects.

  • Hi,

     

    Jagir008 said:

    If i right click on "getaddrinfo" function to see it's function definition,

    I see definition of  "net_getaddrinfo_addr_str" function.

    Is both the function are same ?

    Where to find any #ifdef for this function conversion ?

     

    Please see nrf91_sockets.c for the socket offloading translation for the nRF9160. The reason why its like this is because its a syscall API that is wrapped around, as there's several other implementations for sockets in zephyr itself. If you have trouble finding the implementations, I'd recommend to enter debug mode and single-step through the functions that you're interested in.

     

    Kind regards,

    Håkon

Related