VS Code errors/problem

Hi.

I am using SDK v2.6.0 (Toolchain v.2.6.0).
When I open VS Code (v1.91.1) I keep getting this warning -->Bad CMake executable: “”. Check to make sure it is installed or the value of the “cmake.cmakePath” setting contains the correct path.

Also, warnings regarding header files appear in the program code.

I don't understand why these warnings occur, because in the .defconfig file I enabled GPIO -->

And in the prj.conf file I enabled PWM -->

Such errors did not occur before. 

Please help me solve this problem.

Thanks.

Parents
  • Hello,

    Thank you for sharing the details.

    It appears that the CMake path is either not added to your system's PATH environment variable or CMake is not installed correctly. I found the CMake executable in your support information under C:\\nordicsemi\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe. Please run the command cmake --version (Run this under cmake.exe is located) to confirm that CMake is installed properly.

    Next, add this path to your system's PATH variable:

    1. Open Environment Variables.
    2. Edit the Path variable under the System variables section.
    3. Add C:\\nordicsemi\\toolchains\\cf2149caf2\\opt\\bin\\ to the list of paths.

    After making these changes, close all windows and restart Visual Studio Code. Go to ViewOutput and ensure that there are no CMake-related errors. This issue is not related to the nRF Connect VSCode extension.

    Please let me know if this resolves the issue.

    Kind regards,

    Abhijith

  • Hi Abhijith. Thank you for continuing to help me with this problem.

    When I run cmake --version, I see the same error as when I run cmake command -->

    I haven't found how to open Environment Variables properly. Could you please tell me how to do it? 

    I found the CMake Path item in the CMake Tools settings and wrote the specified path there, but that didn't solve the problem either, even after restart VS Code.

Reply
  • Hi Abhijith. Thank you for continuing to help me with this problem.

    When I run cmake --version, I see the same error as when I run cmake command -->

    I haven't found how to open Environment Variables properly. Could you please tell me how to do it? 

    I found the CMake Path item in the CMake Tools settings and wrote the specified path there, but that didn't solve the problem either, even after restart VS Code.

Children
No Data
Related