I try to build a hello world project with it but in vain.
Hi @xin_ma,
From what i can see in the screenshot it seems that VS Code is trying to use a GCC for x86.
Could you please right click on the project (in Projects view) and select Configure->Associate Toolchain and select one from the list. After that try rebuild.
Thanks,
Dragos.
I select this, the only one, and still failed.
Hi, @xin_ma
You need to make sure that all the dependencies of MCXPresso for vscode are installed through the MCUXpresso Installer, and you need to import ARM GCC/mcxpresso for VS CodeSDK for the MCXN947SDK. Import the corresponding project from the SDK, please refer to the link video for details:Getting Started with MCUXpresso for Visual Studio Code | NXP Semiconductors
Attached are the steps of project import.
Best regards, Alex
I imported a repository successfully, but there was another error.
Error: Could not update "cmake-kits.json" for project "frdmmcxn947_led_blinky"
Hi, @xin_ma
You need to install the CMake compiler from mcuxpresso installer, so try these steps:
1.
2.
When the installation is complete, a successful message is displayed.I have detailed installation steps in my last link.
Best regards, Alex
I already installed it. I also followed what you showed in the videos but failed.
But after I "Import Example from Repository", the error "cmake-kits.json" ocurred, and then I directly "Import Project" from the project folder created, it works. And I can build then. Didn't know what's wrong with it.
Hi @xin_ma,
From the screenshot it seems that it is trying to use a different compiler.
So could you please try to:
- Temporarily rename C:/MinGW folder to something else.
- After first step try rebuild. Did it help?
Thanks,
Dragos.
It didn't help.
But after I "Import Example from Repository", the error "cmake-kits.json" ocurred, and then I directly "Import Project" from the project folder created, it works. And I can build then
If, after you get the cmake-kits.json error, you go to MCUXpresso for VS code console, do you see any message that indicates why it failed?
Thanks,
Dragos.