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

Reply
  • 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

Children
No Data
Related