On running z-test, reports CMake error - Could not find a package configuration file provided by "Zephyr-sdk" on Windows

Hi,

I am having similar error as reported in Case ID: 308488, however here issue is running z-test on provided Nordic test samples.

(note: nRF-connect SDK, works as expected for standard build using VS Studio).

Installed  nRF SDK v2.00, using nRF-Connect & Tool chain manager.

I have tried setting:

- Set ZEPHYR_BASE to the location of the zephyr repository:
  zephyr-env.cmd

- Set Zephyr SDK Install directory:
  set ZEPHYR_SDK_INSTALL_DIR = C:\ncs\toolchains\v2.0.0\
- Set Zephyr Tool Chain:
  set ZEPHYR_TOOL_CHAIN_VARIANT = zephyr

Additionally:

To avoid reported CMake error during z-test:
- Export Zephyr CMake package allows CMake to automatically find a Zephyr base.
 cmake -P C:\ncs\v2.0.0\zephyr\share\zephyr-package\cmake\zephyr_export.cmake
  - Consequently Added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr

However the same CMake error persists (as in previous post).

BTW those files do not seem to be in my install directory, namely:

zephyr-sdk-config.cmake (or similar).

Can Nordic support suggest a solution?

I have also posted on Discord (Zephyr support) but no replies received.

Thanking you in advance.

Parents Reply Children
Related