VS Code Extension import makefile project

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

VS Code Extension import makefile project

Jump to solution
1,380 Views
mstahl
Contributor I

Hi, 

first of all I was amazed to hear that nxp also provides an extension for VS Code cause that is one of my favorite editors.

So I was trying to import an existing project into the MCUXpresso VS Code Extension.

The existing project uses makefiles (not CMake) as toolchain. The project is integrated into the MCUXpresso IDE v. 11.8 for Eclipse. It uses linked folders.

When trying to import that project into MCUXpresso VS Code, I got an error saying "Error: Invalid MCUXpresso IDE project directory: Cannot read properties of undefined (reading '0')". As I read elsewhere, linked folders are not yet supported so I removed the links and copied the sourcecode. This made the error go away, but the vsc code import wizard got another error saying

"Error: Invalid MCUXpresso IDE project directory: The description of the configuration could not be obtained"

I don't know if its possible to get some more info from vscode about what exactly went wrong. 

Might it be due to the fact that the project uses makefiles?

Might it be due to the fact that the project is not using the nxp configTools(pins, clocks, etc) at all? I thought about setting up the nxp configTools in eclipse and later deactivating everything in it because we dont need it. However, I seem to cannot set up nxp configTools in the first place.

I am thankful for any support 

0 Kudos
Reply
1 Solution
1,352 Views
ErichStyger
Specialist I

Hi @mstahl ,

You already have noticed that linked files and folders are not supported (see as well https://mcuoneclipse.com/2023/08/20/vs-code-importing-pre-v2-13-0-mcuxpresso-sdk-projects/), at least for now.

As for the project type: yes, it will not import make file projects through the NXP importer: it expects MCUXpresso IDE managed build/make projects, which are not the same as make projects.

What I did is using CMake projects (see https://mcuoneclipse.com/2023/04/19/building-a-triumvirate-from-eclipse-cdt-to-cmake-cmd-and-visual-... ) and have them used with VSCode. You can do the same with make based projects too, the same way.

I hope this helps,

Erich

 

View solution in original post

0 Kudos
Reply
2 Replies
1,353 Views
ErichStyger
Specialist I

Hi @mstahl ,

You already have noticed that linked files and folders are not supported (see as well https://mcuoneclipse.com/2023/08/20/vs-code-importing-pre-v2-13-0-mcuxpresso-sdk-projects/), at least for now.

As for the project type: yes, it will not import make file projects through the NXP importer: it expects MCUXpresso IDE managed build/make projects, which are not the same as make projects.

What I did is using CMake projects (see https://mcuoneclipse.com/2023/04/19/building-a-triumvirate-from-eclipse-cdt-to-cmake-cmd-and-visual-... ) and have them used with VSCode. You can do the same with make based projects too, the same way.

I hope this helps,

Erich

 

0 Kudos
Reply
1,321 Views
mstahl
Contributor I

Hi Erich,

thanks a lot for your answer. I will try that and will come back to you.

Greets

0 Kudos
Reply