Convert mcuxpresso project to vscode

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

Convert mcuxpresso project to vscode

ソリューションへジャンプ
1,881件の閲覧回数
arunkumar_g
Contributor III

We have project that is created using MCUXpresso IDE. Is there a way to convert it to vscode plugin (1.6.47) to use cmake based build ?

When I do "import project", it imports all folders, but cannot build because cannot find make files and project looks like 

arunkumar_g_0-1710540003021.png

and component management throws error "Error: Component management is not available for projects without an associated SDK" but i'm not sure how to associate and sdk with it.

SDK installed is SDK_2.x_MIMXRT1189xxxxx (2.15 )

 

Also is the plugin compatible with WSL based development?

Thanks

 

0 件の賞賛
1 解決策
1,847件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @arunkumar_g ,

  At first, do you already make the SDK vscode method works?

 I mean, you can import the SDK demo in the VScode after you install the SDK in the vscode, whether that works?

  If yes, I highly recommend you based on the VScode project to develop your own project instead of the MCUXpresso IDE project, as now, we don't have the method to import the mcuxpresso project to the vscode directly.

  About the vscode usage, you can refer to these post:

https://community.nxp.com/t5/MCUXpresso-for-VSCode-Knowledge/tkb-p/mcuxpresso-vscode@tkb

 

Wish it helps you!

If you still have question about it, please kindly let me know.

Best Regards,

Kerry

 

元の投稿で解決策を見る

0 件の賞賛
18 返答(返信)
1,480件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @arunkumar_g ,

  Please keep patient, I am finding time to test it on my side in these two days.

  After my testing, will share the detail steps, thanks.

  Please keep patient, thanks so much.

Best Regards,

Kerry

0 件の賞賛
1,573件の閲覧回数
arunkumar_g
Contributor III

Any update?

0 件の賞賛
1,563件の閲覧回数
JoeSanchez
Contributor II

can you post your CMakeLists.txt file

0 件の賞賛
1,537件の閲覧回数
arunkumar_g
Contributor III

sure.. attached. Note that this is the default file after the sample mimxrt1180evk_freertos_hello_cm33 is imported.

0 件の賞賛
1,535件の閲覧回数
JoeSanchez
Contributor II

try adding this in CMakeLists

SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
and check you debug configuration folder that compile_commands.json exist after saving CMake
0 件の賞賛
1,508件の閲覧回数
arunkumar_g
Contributor III

No it does not file do not exist. The build folder even is not formed.
Doing a rebuild all after adding the line
"
* Executing task: CMake: clean

clean task started....
"C:\Program Files\CMake\bin\cmake.EXE" --build --config Debug --target clean --
Error: could not load cache
clean finished with error(s).

* The terminal process failed to launch (exit code: 1).
* Terminal will be reused by tasks, press any key to close it.

* Executing task: CMake: configure

Config task started...
Configure finished with return code -3

* The terminal process failed to launch (exit code: -3).
* Terminal will be reused by tasks, press any key to close it.


"

0 件の賞賛
1,506件の閲覧回数
JoeSanchez
Contributor II

Did you build both Debug and Release config in MCUXpresso before converting the project to VSCode? I think I remember that the conversion will fail if there was no previously built configurations

0 件の賞賛
1,488件の閲覧回数
arunkumar_g
Contributor III
I think there is some confusion here -sorry about that. The (demo) project in vscode is as is from (gcc toolchain) sdk - not from mcuxpresso (since it was already mentioned that wont work).

Now building a debug via armgcc/build_debug.bat will error because it cannot find ../../../../../../tools/cmake_toolchain_files/armgcc.cmake (as the vscode export is to another path from sdk path)
0 件の賞賛
1,808件の閲覧回数
arunkumar_g
Contributor III

One thing I found in this, when I try a "Clean" is the command that executes doesn't contain the project folder path . The command looks like

clean task started....
"C:\Program Files\CMake\bin\cmake.EXE" --build --config Debug --target clean --
Error: could not load cache
clean finished with error(s).

The cmake command does not have project path. Why is that?

0 件の賞賛
1,781件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @arunkumar_g ,

  Don't worry, let me find time to test it at first.

  Please give me more time, and keep patient, thanks so much.

Best Regards,

Kerry

0 件の賞賛
1,821件の閲覧回数
arunkumar_g
Contributor III

@kerryzhou yes I imported (hello_world_cm33 and free rtos version) demo app from repository. When building vscode displays the error  "Error: Could not determine the build directory for project mimxrt1180evk_hello_world_demo_cm33". SDk is 2.15, board is 1180 rev B, but i have not reached debug stage. Is there any logs to see what is happening?

 

arunkumar_g_0-1710878432367.png

 

0 件の賞賛
1,833件の閲覧回数
arunkumar_g
Contributor III

I imported demo app from repository, but cannot build as it gives "Error: Could not determine the build directory for project mimxrt1180evk_hello_world_demo_cm33" I'm not sure what's missing. (i have installed "mcuxpresso sdk developer" using the installer)

0 件の賞賛
1,827件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @arunkumar_g ,

  Do you import the example from Repository?

kerryzhou_0-1710822548736.png

 

Please share some screenshot about your issues.

BTW, what's the board you are using? the NXP MIMXRT1180-EVK board? which version?

Best Regards,

Kerry

0 件の賞賛
1,834件の閲覧回数
arunkumar_g
Contributor III

Also I don't see a "create new application"  kind of button as shown in one of your training videos like below.

arunkumar_g_0-1710798445393.png

What I see is 

arunkumar_g_1-1710798504580.png

Does it mean we can only start from an existing sample?

0 件の賞賛
1,842件の閲覧回数
arunkumar_g
Contributor III

@JoeSanchez @kerryzhou  yes i have installed sdk in vscode and have build demo app

0 件の賞賛
1,848件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @arunkumar_g ,

  At first, do you already make the SDK vscode method works?

 I mean, you can import the SDK demo in the VScode after you install the SDK in the vscode, whether that works?

  If yes, I highly recommend you based on the VScode project to develop your own project instead of the MCUXpresso IDE project, as now, we don't have the method to import the mcuxpresso project to the vscode directly.

  About the vscode usage, you can refer to these post:

https://community.nxp.com/t5/MCUXpresso-for-VSCode-Knowledge/tkb-p/mcuxpresso-vscode@tkb

 

Wish it helps you!

If you still have question about it, please kindly let me know.

Best Regards,

Kerry

 

0 件の賞賛
1,307件の閲覧回数
arunkumar_g
Contributor III
I understand we cannot make vscode project from mcuxpresso ide project. So i'll mark this answer as accepted and open a new thread for vscode issue.
0 件の賞賛
1,857件の閲覧回数
JoeSanchez
Contributor II

Did you install that SDK in VSCode?

JoeSanchez_0-1710715461669.png

 

0 件の賞賛