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

NRF9160 - Segger Studio - Cannot create project

Hi,

I just used the nRF Connect Toolchain manager to install the NRF Connect SDK. Then, the Segger studio keeps popping this error when I try to open a project:

And, here is my configuration for the project.

Is there anything wrong with the configuration? Thanks for the help in advance!

Best regards,

Sam

  • BTW here are the outputs from segger:

    Creating solution serial_lte_modem.emProject
    D:/Workspaces/nRF91/ncs/v1.5.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=D:\Workspaces\nRF91\ncs\v1.5.1\zephyr\boards\arm\nrf9160dk_nrf9160 -BD:\Workspaces\nRF91\ncs\v1.5.1\nrf\applications\serial_lte_modem\build_nrf9160dk_nrf9160ns -SD:\Workspaces\nRF91\ncs\v1.5.1\nrf\applications\serial_lte_modem -DNCS_TOOLCHAIN_VERSION=1.5.1 -DDTC_OVERLAY_FILE=D:\Workspaces\nRF91\ncs\v1.5.1\nrf\applications\serial_lte_modem/nrf9160dk_nrf9160ns.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\Workspaces\nRF91\ncs\v1.5.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem
    -- Zephyr version: 2.4.99 (D:/Workspaces/nRF91/ncs/v1.5.1/zephyr)
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
    -- Cache files will be written to: C:\Users\Sam\AppData\Local/.cache/zephyr
    -- Found dtc: D:/Workspaces/nRF91/ncs/v1.5.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/Workspaces/nRF91/ncs/v1.5.1/toolchain/opt)
    -- Found BOARD.dts: D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
    -- Found devicetree overlay: D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/nrf9160dk_nrf9160ns.overlay
    -- Generated zephyr.dts: D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/build_nrf9160dk_nrf9160ns/zephyr/include/generated/device_extern.h
    Parsing D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/Kconfig
    Loaded configuration 'D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
    Merged configuration 'D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_0_7_0.conf'
    Merged configuration 'D:/Workspaces/nRF91/ncs/v1.5.1/nrf/applications/serial_lte_modem/prj.conf'
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base (cached)): D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.5.1 for building. (D:/Workspaces/nRF91/ncs/v1.5.1/toolchain/cmake)

    warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at D:/Workspaces/nRF91/ncs/v1.5.1/nrf\lib\nrf_modem_lib/Kconfig:69) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)

    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/Workspaces/nRF91/ncs/v1.5.1/nrf\subsys\net\openthread/Kconfig:57) defined with type unknown

    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/Workspaces/nRF91/ncs/v1.5.1/nrf\subsys\net\openthread/Kconfig:57) defined without a prompt

    warning: the default selection CC3XX_ATOMIC_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/Workspaces/nRF91/ncs/v1.5.1/nrf\subsys\net\openthread/Kconfig:57) is not contained in the choice

    warning: the default selection CC3XX_HW_MUTEX_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/Workspaces/nRF91/ncs/v1.5.1/nrf\subsys\net\openthread/Kconfig:57) is not contained in the choice

    warning: HAS_NRFX (defined at modules\hal_nordic\nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
    - SOC_SERIES_NRF91X (defined at soc/arm/nordic_nrf\nrf91\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)

    warning: NRFX_CLOCK (defined at modules\hal_nordic\nrfx/Kconfig:14) has direct dependencies HAS_HW_NRF_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
    - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y)

    warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules\hal_nordic\nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
    - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at drivers/clock_control/Kconfig.nrf:36), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y)

    warning: NRFX_GPIOTE (defined at modules\hal_nordic\nrfx/Kconfig:65) has direct dependencies HAS_HW_NRF_GPIOTE && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
    - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies SOC_FAMILY_NRF && GPIO (value: y), and select condition SOC_FAMILY_NRF && GPIO (value: y)

    warning: NRFX_NVMC (defined at modules\hal_nordic\nrfx/Kconfig:87) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
    - SOC_FLASH_NRF (defined at drivers/flash/Kconfig.nrf:10), with value y, direct dependencies SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y), and select condition SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y)

    error: Aborting due to Kconfig warnings

    CMake Error at D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/cmake/kconfig.cmake:262 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake:534 (include)
    D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    D:/Workspaces/nRF91/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:9 (find_package)



    error: cmake failed
    create_nordic_project.py failed (1)

  • Hi Sam, 

    Can you please reinstall your NCS tag in a folder with shorter path e.g. C:\NCS\v1.5.1 We have seen the path length might be an issue. 

    Thanks

    Kind regards,
    Øyvind

  • Thanks, Øyvind. Yes, it's the path length issue.

  • BTW, the "NCS" folder (in C:\NCS\v1.5.1) MUST be put under the root directory of the drive.

    I tried even under one lower level directory (like C:\Workspace\NCS\v1.5.1), it will cause issue during project compilation. This is quite inconvenient. 

  • Hi Sam, 

    Yes, we are aware of this inconvenient issue, and are working on a solution.

    Happy to hear it's working now.

    Kind regards,
    Øyvind

Related