Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5 1.5.0 and 1.5.1 wont open sample projects, 1.4.99 did.

when using nRF5 SDK Release 1.4.99 the the projects open some have errors that prevent it from building for the nRF5340, 

when I attempted to use nRF5 SDK 1.5.0 or 1.5.1 the sample projects (installed with the sdk using the toolchain manager) no longer open supplying this error.

I was hoping that the nRF5340 fail to build issues would be alleviated by the newer version of the SDK,

I am on windows 10, newest update. and am using nRF connect v3.6.1

I would like to know what is causing this error so that I may attempt to build the newer versions of the samples

   

Creating solution empty_app_core.emProject
-- Application: C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core
-- Zephyr version: 2.4.99 (C:/Users/c/ncs/v1.5.1-rc1/zephyr)
-- Found Python3: C:/Users/c/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuappns
-- Cache files will be written to: C:/Users/c/ncs/v1.5.1-rc1/zephyr/.cache
-- Found dtc: C:/Users/c/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/c/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/c/ncs/v1.5.1-rc1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts
-- Generated zephyr.dts: C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/device_extern.h
Parsing C:/Users/c/ncs/v1.5.1-rc1/zephyr/Kconfig
Loaded configuration 'C:/Users/c/ncs/v1.5.1-rc1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig'
Merged configuration 'C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/prj.conf'
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): C:/Users/c/ncs/v1.5.1-rc1/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/c/ncs/v1.5.0/toolchain/cmake)

warning: THREAD_STACK_INFO (defined at kernel/Kconfig:183) was assigned the value 'n' but got the
value 'y'. See docs.zephyrproject.org/.../CONFIG_THREAD_STACK_INFO.html
and/or look up THREAD_STACK_INFO in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.


warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/Users/c/ncs/v1.5.1-rc1/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 C:/Users/c/ncs/v1.5.1-rc1/nrf\subsys\net\openthread/Kconfig:57) defined with type unknown

warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/Users/c/ncs/v1.5.1-rc1/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 C:/Users/c/ncs/v1.5.1-rc1/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 C:/Users/c/ncs/v1.5.1-rc1/nrf\subsys\net\openthread/Kconfig:57) is not contained in the choice

error: Aborting due to Kconfig warnings

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



error: cmake failed
create_nordic_project.py failed (1)

  • when using nRF5 SDK Release 1.4.99 the the projects open some have errors that prevent it from building for the nRF5340, 

    when I attempted to use nRF5 SDK 1.5.0 or 1.5.1 the sample projects (installed with the sdk using the toolchain manager) no longer open supplying this error.

     So yo're saying you're getting erros when using v1.4.99, but v1.5.0 and v1.5.1 works? Wouldn't a solution be to just use v1.5.x? Or is there a specific reason you want to use v1.4.99?

    I was hoping that the nRF5340 fail to build issues would be alleviated by the newer version of the SDK,

    I am on windows 10, newest update. and am using nRF connect v3.6.1

    I would like to know what is causing this error so that I may attempt to build the newer versions of the samples

     By the log it seems like you're using v1.5.1-rc1 (release candidate 1):

    "Creating solution empty_app_core.emProject
    -- Application: C:/Users/c/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core
    -- Zephyr version: 2.4.99 (C:/Users/c/ncs/v1.5.1-"

    Is there a reason you're not using v1.5.1? That should be more stable than the release candidate.

    However, I was not able to reproduce your error. Could you follow the exact same steps as me?

    • Open SES

    • Click on this:

    • Find the empty app core sample

    • Choose these settings:
      • According to the documentation, the nrf5340dk_nrf5340_cpuapp (not ns) should be used, but I tested with the ns baord just to see if I could reproduce it

    • I got no errors. I also tried to build it from SES, without any errors
  • Hi Simon, 

     So yo're saying you're getting erros when using v1.4.99, but v1.5.0 and v1.5.1 works? Wouldn't a solution be to just use v1.5.x? Or is there a specific reason you want to use v1.4.99?

    I am trying to use 1.5.1 or 1.5.0, but the .py error occurs when I attempt to open the projects. 1.4.99 allows me to open the projects though they often do not build for the nRF5340. Most of the sample projects fail to build in 1.4.99 for me often due to missing reference specific to 5340, which was what led me to move to the newer iterations, where I experienced the .py problem.

    By the log it seems like you're using v1.5.1-rc1 (release candidate 1):
    Is there a reason you're not using v1.5.1? That should be more stable than the release candidate.

    this is due to not being able to open the IDE from the stable release within the toolchain manager as seen here:

    once in Segger Embedded Studio the option to use the stable SDK is also unavailable. though i cannot capture the screenshot of that but for reference I mean in this location:

    However, I was not able to reproduce your error. Could you follow the exact same steps as me?

    I attempted to follow those steps again this morning, and it produced the same results seen here:

    I moved the error to the corner for readability.

    Here I have attached the output from the attempt to create it.

    Creating solution empty_app_core.emProject
      C:/Users/camer/ncs/v1.5.0-rc1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuappns -DBOARD_DIR=C:\Users\camer\ncs\v1.5.1-rc1\zephyr\boards\arm\nrf5340dk_nrf5340 -BC:\Users\camer\ncs\v1.5.1-rc1\nrf\samples\nrf5340\empty_app_core\build_nrf5340dk_nrf5340_cpuappns -SC:\Users\camer\ncs\v1.5.1-rc1\nrf\samples\nrf5340\empty_app_core -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\camer\ncs\v1.5.1-rc1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
      -- Application: C:/Users/camer/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core
      -- Zephyr version: 2.4.99 (C:/Users/camer/ncs/v1.5.1-rc1/zephyr)
      -- Found Python3: C:/Users/camer/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
      -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
      -- Board: nrf5340dk_nrf5340_cpuappns
      -- Cache files will be written to: C:/Users/camer/ncs/v1.5.1-rc1/zephyr/.cache
      -- Found dtc: C:/Users/camer/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
      -- Found toolchain: gnuarmemb (C:/Users/camer/ncs/v1.5.0/toolchain/opt)
      -- Found BOARD.dts: C:/Users/camer/ncs/v1.5.1-rc1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts
      -- Generated zephyr.dts: C:/Users/camer/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/zephyr.dts
      -- Generated devicetree_unfixed.h: C:/Users/camer/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h
      -- Generated device_extern.h: C:/Users/camer/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/device_extern.h
      Parsing C:/Users/camer/ncs/v1.5.1-rc1/zephyr/Kconfig
      Loaded configuration 'C:/Users/camer/ncs/v1.5.1-rc1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig'
      Merged configuration 'C:/Users/camer/ncs/v1.5.1-rc1/nrf/samples/nrf5340/empty_app_core/prj.conf'
      -- Configuring incomplete, errors occurred!
      Including boilerplate (Zephyr base): C:/Users/camer/ncs/v1.5.1-rc1/zephyr/cmake/app/boilerplate.cmake
      -- Using NCS Toolchain 1.5.0 for building. (C:/Users/camer/ncs/v1.5.0/toolchain/cmake)
      
      warning: THREAD_STACK_INFO (defined at kernel/Kconfig:183) was assigned the value 'n' but got the
      value 'y'. See http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_THREAD_STACK_INFO.html
      and/or look up THREAD_STACK_INFO in the menuconfig/guiconfig interface. The Application Development
      Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
      might be helpful too.
      
      
      warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/Users/camer/ncs/v1.5.1-rc1/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 C:/Users/camer/ncs/v1.5.1-rc1/nrf\subsys\net\openthread/Kconfig:57) defined with type unknown
      
      warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/Users/camer/ncs/v1.5.1-rc1/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 C:/Users/camer/ncs/v1.5.1-rc1/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 C:/Users/camer/ncs/v1.5.1-rc1/nrf\subsys\net\openthread/Kconfig:57) is not contained in the choice
      
      error: Aborting due to Kconfig warnings
      
      CMake Error at C:/Users/camer/ncs/v1.5.1-rc1/zephyr/cmake/kconfig.cmake:262 (message):
        command failed with return code: 1
      Call Stack (most recent call first):
        C:/Users/camer/ncs/v1.5.1-rc1/zephyr/cmake/app/boilerplate.cmake:534 (include)
        C:/Users/camer/ncs/v1.5.1-rc1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
        C:/Users/camer/ncs/v1.5.1-rc1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
        CMakeLists.txt:9 (find_package)
      
      
      
      error: cmake failed
      create_nordic_project.py failed (1)

    Thank you for the quick response, 

    CMortus

  • I think you have an incomplete installation of NCS. Could you try to uninstall it:

    Then install it again after doing the following:

    • Turn off VPN
    • Make sure no antivurs programs are blocking the installation, like here, where ncs\v1.4.99-dev1\toolchain\opt\bin\Scripts\west.exe was blocked.
    • Install it outside your corporate network

    Here are some tickets that may be helpful:

    https://devzone.nordicsemi.com/f/nordic-q-a/71245/i-don-t-have-an-open-ide-button-for-nrf-connect-sdk-v1-4-99-dev1

    https://devzone.nordicsemi.com/f/nordic-q-a/65183/nrf-connect-v3-4-2---toolchain-manager-fails-to-install-nrf-connect-sdk-v1-3-0

    Best regards,

    Simon

  • This has fixed the .py error and I am on official release 1.5.1,

    Thank you for your help Simon

    CMortus

Related