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

Add Include Paths under SEGGER Embedded Studio 4.42a

Hi,

I followed the "Getting Started Assistant" to setup SEGGER Embedded Studio, but after opening the GPS example for nRF9160 i end up with Import Errors.
1> main.c:8:10: fatal error: nrf_socket.h: No such file or directory

an nrf_socket.h exists under the following path.
\ncs\nrfxlib\bsdlib\include\nrf_socket.h

How can i add a Path to the Include Directories in SEGGER EMbedded Studio 4.42a?

The explanation in the infocenter sadly seems not to apply for version 4 (pictures show 3.4) infocenter.nordicsemi.com/index.jsp
I dont have the Preprocessor settings requested under Point 3 Select Preprocessor.


(im on Private Configurations - Common)

Parents
  • Hi.

    nRF Connect SDK (NCS) projects are configured from CMake, not Segger Embedded Studio (SES). The infocenter guide you linked to refers to the nRF5 SDK and is not valid for NCS.

    The sample should run out of the box, with no need for modifications.

    What board did you select when opening the project, and did you get any errors when opening it?

    The bsdlib can only be used from applications running as non-secure. To configure an application as non-secure, you must build the project for the non-secure version of the board. E.g. for the nRF91DK, you must select the nrf9160_pca10090ns board (notice the "ns" at the end).

    Can you try to open the project again, this time making sure that you select the non-secure version of the board (and remember to clean the build folder)?

    Best regards,

    Didrik

Reply
  • Hi.

    nRF Connect SDK (NCS) projects are configured from CMake, not Segger Embedded Studio (SES). The infocenter guide you linked to refers to the nRF5 SDK and is not valid for NCS.

    The sample should run out of the box, with no need for modifications.

    What board did you select when opening the project, and did you get any errors when opening it?

    The bsdlib can only be used from applications running as non-secure. To configure an application as non-secure, you must build the project for the non-secure version of the board. E.g. for the nRF91DK, you must select the nrf9160_pca10090ns board (notice the "ns" at the end).

    Can you try to open the project again, this time making sure that you select the non-secure version of the board (and remember to clean the build folder)?

    Best regards,

    Didrik

Children
Related