VS Code Extension import makefile project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

VS Code Extension import makefile project

ソリューションへジャンプ
1,486件の閲覧回数
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 件の賞賛
返信
1 解決策
1,458件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,459件の閲覧回数
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 件の賞賛
返信
1,427件の閲覧回数
mstahl
Contributor I

Hi Erich,

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

Greets

0 件の賞賛
返信