Error When Compiling Sample Project

Hello,

I recently got an nRF7002 DK and am trying things out. I recently tried to run a sample Matter project and I got this error when compiling. I was following the tutorial given here.

[{
	"resource": "/c:/ncs/v2.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf",
	"owner": "kconfig0",
	"severity": 8,
	"message": "Kconfig failed: [Errno 2] No such file or directory: 'c:/ncs/v2.5.0/zephyr/${zephyr_connectedhomeip_module_dir}/config/nrfconnect/chip-module/kconfig.mcuboot.root'",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
}]

My development environment is Windows 64 bit and I installed nRF through the nRF Connect Desktop App. I'm using toolchain version 2.5.0. Any Help is appreciated. Thanks.

  • Hi Asanka,

    How about your building process? Can you build the FW now?

    I have the same "error" report on PROBLEM, this is not related to your project. 

    The PROBLEM reported here is provided by VS code to generally scan your folders added into the workspace and report potential errors. It is not very intelligent sometimes.

    The error reported here may just because the folder path is not known by VS code or its extensions, but for the toolchain, it has no problem.

    Best regards,

    Charlie

  • Hello,

    No, the output is empty.

    Also, now the device is also not getting detected.

    However, I feel like all of these issues are VS Code and its extension-related issues as none of these issues seem to exist in the nRF Connect App.

  • Hello,

    I think the issue is fixed. The device is not showing up fixed after several reboots. I ran the last command that caused the issue in the terminal and got a better explanation of what was happening. Apparently, the path to cmd.exe (C:\Windows\System32) had gone away from the environment variables. This was causing the compilation process to run into an error without even showing an error on VS Code. After adding it to the path variables, it worked. The code was compiled and uploaded to the device correctly.

    So to summarize there had been two major issues with the code. One is that the path to

    ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR

    had been missing. Adding the path to the CMakeLists.txt file fixed it.

    Next issue had been the Path variable to System32 folder. Adding it to the Path variable in System > About > Advanced system settings > System Properties > Advanced > Environment Variables fixed the issue.

    Seems like installing Zap messed up the path variables in the system.

Related