This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Issue loading template application in VS Code: wrong CMake kit

Hi everyone.

I'm approacing to the nrf52833 SoC following this  official tutorial but when I import the example template the VSCode finds the cmake tool in my espressif (ESP32) folder, giving an error about its wrong version:

[variant] Loaded new set of variants
[kit] Successfully loaded 9 kits from C:\Users\Andrea\AppData\Local\CMakeTools\cmake-tools-kits.json
[main] Configuring folder: blinky
[proc] Executing command: C:\Users\Andrea\.espressif\tools\cmake\3.16.4\bin\cmake.EXE --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Hc:/Users/Andrea/Documents/NordicApps/blinky -Bc:/Users/Andrea/Documents/NordicApps/blinky/build -G "Visual Studio 16 2019" -T host=x64 -A x64
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
[cmake]   CMake 3.20.0 or higher is required.  You are running version 3.16.4
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
It seems the extension doesn't find the ncs toolchain path. How do I fix the issue?
Parents
  • If you close the work space do you have the pop up to select the Zephyr installation ?

    No. If I close the workspace/folder that message doesn't appear.

    Today I've unistalled all the Nordic's SDK, Command Line Tool, VS Code extensions, nRF Connect for Desktop, and then I've installed them again following the tutorial I linked above. 

    Except for Visial Code that I had already for other my projects with ESP32, Arduino, Flutter and so on...

    I've unistalled the Espressiff extension that was not necessary yet and deleted its references in PATH variable. Now when I create a new nRF project from sample I get

    [variant] Loaded new set of variants
    [kit] Successfully loaded 9 kits from C:\Users\Andrea\AppData\Local\CMakeTools\cmake-tools-kits.json
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Configuring folder: hello_world 
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.

    Even if I open the VS Code from Nordic Toolchain Manager.

Reply
  • If you close the work space do you have the pop up to select the Zephyr installation ?

    No. If I close the workspace/folder that message doesn't appear.

    Today I've unistalled all the Nordic's SDK, Command Line Tool, VS Code extensions, nRF Connect for Desktop, and then I've installed them again following the tutorial I linked above. 

    Except for Visial Code that I had already for other my projects with ESP32, Arduino, Flutter and so on...

    I've unistalled the Espressiff extension that was not necessary yet and deleted its references in PATH variable. Now when I create a new nRF project from sample I get

    [variant] Loaded new set of variants
    [kit] Successfully loaded 9 kits from C:\Users\Andrea\AppData\Local\CMakeTools\cmake-tools-kits.json
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Configuring folder: hello_world 
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.

    Even if I open the VS Code from Nordic Toolchain Manager.

Children
No Data
Related