Another way to use MCUX in VSCode - issue: No Incremental build of target in command line

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

Another way to use MCUX in VSCode - issue: No Incremental build of target in command line

1,744 Views
Qin_Handi
Contributor I

Hi,

I know NXP has released the VSCode extension for MCUX. It includes many useful functions. But it only supports the SDK that includes the GCC compilation toolchain. The SDK version must be large than 2.12.x and supports the GCC compilation toolchain. So QN9090, QN9080, KW45, KW3x are not supported by the current extension.

I think we can build the MCUX example with the command line in VSCode. I referred to this article: Building Eclipse and MCUXpresso IDE Projects from the Command Line | MCU on Eclipse and write a Python script to generate the required files by command line and VSCode.  

Qin_Handi_0-1691831064857.png

As the screenshot above, the script will check if the Jlink software and MCUXpresso IDE are installed on one's PC. If yes, add the path of them to the template files. And the script will check the .cproject file to get the macros and include path and insert them to c_cpp_properties.json file. The tasks.json includes the command of the build. And the launch.json includes the debug definition with cortex-debug extension. Of cause, what Python did can be done by TS too.

After processing, the result will be:

Qin_Handi_1-1691831550133.png

Then, we can build the example by calling the defined command in task.json.

Qin_Handi_2-1691831730249.png

But one issue is there is no incremental build in the command line for MCUX. The incremental build option below does not work in the new MCUXpresso. Do you have any solution to fix the issue? Thank you in advance.

Qin_Handi_3-1691831803622.png

Tags (1)
0 Kudos
Reply
2 Replies

1,673 Views
ErichStyger
Specialist I

What I'm using with the SDKs not supported in VS Code is what I have described in https://mcuoneclipse.com/2023/04/19/building-a-triumvirate-from-eclipse-cdt-to-cmake-cmd-and-visual-....

With this, I'm not using the Eclipse IDE command line build, but the external one with CMake/Make/Ninja.

I hope this helps.

0 Kudos
Reply

1,667 Views
Qin_Handi
Contributor I

Hi Erich,

Thanks for your comments and the articles in your blog. I learned much stuff from there. I will try the means you posted.

0 Kudos
Reply