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.
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:
Then, we can build the example by calling the defined command in task.json.
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.
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.
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.