CMake configuration failed and missing build target path(Windows)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CMake configuration failed and missing build target path(Windows)

948 Views
HenrikZ
Contributor III

When trying to build a "hello world" project provided by NXP, I get the following error:

Executing task: CMake: configure

Config task started...
Configure failed.

HenrikZ_0-1745484792720.png

I'm using the latest version of VS Code (1.99.3) and MCUXpresso for VS Code (25.3.72). All the dependencies and  Extension packs have been installed. So where and which configuration is missing. I have seen some recommend to uninstall both MCUXpresso and MCUXpresso for VS Code - I tried that! First I installed the VS Code and MCUXpresso for VS Code - this caused an error saying that the path for the toolchain was missing. After install MCUXpresso this was solved... but the issue with the configuration remains.

Maybe related... When I try to "attach" to the MCU using a Segger Jlink plus, I get the error "could not determine the build target path for project..."

HenrikZ_1-1745485537578.png

Pressing the button and open the "launch.json" shows the file, and here I cannot find any "target path" if that was expected? When the file is open, there is a "add configuration" button but neither of the configuration options are related to "build target path"... How do I set the the build target path?

Regards Henrik

0 Kudos
Reply
2 Replies

908 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @HenrikZ 

May I ask which demo you compiled and encountered an error?

BR

Harry

0 Kudos
Reply

892 Views
HenrikZ
Contributor III

Hi @Harry_Zhang 

Thanks for you reply.

I was triggered by you colleague, who asked about the version of  CMake I am using. I was not able to answer the questions, because I believed that CMake was installed together with MCUXpresso IDE or at least the CMake extension for VS Code, when installing the MCUXpresso for VS Code. However that doesn't seem to be the case.

After manually installing:

  • CMake
  • Arm-gnu-toolchain
  • ninja (and adding ninja to the path of windows)

I got it to work, but it would have saved me some time, if it had been written in documentation for the MCUXpresso, that you need manually to install some basic tools, e.g. in "Getting Started with MCUXpresso SDK for EVK-MCIMX7ULP.pdf" or "AN14120".

Regards Henrik

0 Kudos
Reply