issues with nrf sdk and zephyr board files for nrf 9160dk

C:/nordic/v1.9.1/zephyr/boards/arm/nrf9160dk_nrf52840/Kconfig.defconfig:15: error: couldn't parse 'default BT && $(dt_nodelabel_enabled,reset_input)': macro expanded to blank string

Hey I am trying to write a program that sends integers from the 52 to the 91 of the nrf 9160 dk but I the nrf sdk is not working. I installed it through toolchain manager. I get no option to do pristin build, I am not able to open kconfig. I am not able to regular build either as shown below. You need anymore information let me know.

thank you

Parents Reply
  • Hi,

    Try opening bash in Toolchain Manager (from the down arrow next to 'Open Segger Embedded Studio') and run the following command

    ncsmgr init-ncs

    If this returns an error, please open the file ncsmgr_init-ncs.sh (located in C:/nordic/v1.9.1/toolchain/ncsmgr) and add a line with sleep 3 between fi and git checkout "${ncs_tag}" so it looks like this:

    if [ "$1" = "--just-update" ]; then
        cd nrf
        git fetch origin
    else
        west init -m https://github.com/nrfconnect/sdk-nrf --mr "${ncs_tag}"
        cd nrf
    fi
    
    sleep 3
    
    git checkout "${ncs_tag}"
    

    Save the file, then open bash and run ncsmgr init-ncs again as above.

    Best regards,

    Marte

Children
  • i got this error and it did not change after adding sleep 3

    Checking out NCS v1.9.1 ...FATAL ERROR: already initialized in C:\v1.9.1, aborting.
    Note:
    In your environment, ZEPHYR_BASE is set to:
    C:/v1.9.1/zephyr

    This forces west to search for a workspace there.
    Try unsetting ZEPHYR_BASE and re-running this command.
    HEAD is now at 126fad0e2 manifest: update manifest file with 1.9.1 tags
    /C/v1.9.1
    done
    Updating repos ...
    === updating zephyr (zephyr):
    === updating mcuboot (bootloader/mcuboot):
    === updating mbedtls-nrf (mbedtls):
    === updating nrfxlib (nrfxlib):
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    === updating tfm-mcuboot (modules/tee/tfm-mcuboot):
    === updating matter (modules/lib/matter):
    Synchronizing submodule url for 'third_party/nlio/repo'
    Synchronizing submodule url for 'third_party/nlassert/repo'
    Synchronizing submodule url for 'third_party/pigweed/repo'
    === updating cjson (modules/lib/cjson):
    === updating cmock (test/cmock):
    M vendor/unity
    === updating unity (test/cmock/vendor/unity):
    === updating Alexa-Gadgets-Embedded-Sample-Code (modules/alexa-embedded):
    === updating cddl-gen (modules/lib/cddl-gen):
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    === updating openthread (modules/lib/openthread):
    === updating canopennode (modules/lib/canopennode):
    === updating civetweb (modules/lib/civetweb):
    === updating cmsis (modules/hal/cmsis):
    === updating edtt (tools/edtt):
    === updating fatfs (modules/fs/fatfs):
    === updating hal_nordic (modules/hal/nordic):
    === updating hal_st (modules/hal/st):
    === updating libmetal (modules/hal/libmetal):
    === updating littlefs (modules/fs/littlefs):
    === updating loramac-node (modules/lib/loramac-node):
    === updating lvgl (modules/lib/gui/lvgl):
    === updating lz4 (modules/lib/lz4):
    === updating mbedtls (modules/crypto/mbedtls):
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    === updating nanopb (modules/lib/nanopb):
    === updating net-tools (tools/net-tools):
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    === updating open-amp (modules/lib/open-amp):
    === updating segger (modules/debug/segger):
    === updating tinycbor (modules/lib/tinycbor):
    === updating tinycrypt (modules/crypto/tinycrypt):
    === updating TraceRecorderSource (modules/debug/TraceRecorder):
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    === updating zscilib (modules/lib/zscilib):
    done
    Zephyr (C:/v1.9.1/zephyr/share/zephyr-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr

    ZephyrUnittest (C:/v1.9.1/zephyr/share/zephyrunittest-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\ZephyrUnittest

  • Hi,

    If you try to build an existing sample in the nRF Connect SDK, one that is located under C:/v1.9.1/nrf/samples, do you get the same error? Or do you only get the error when the application is located somewhere else?

    Best regards,

    Marte

Related