Importing a project using an SDK without examples

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

Importing a project using an SDK without examples

Jump to solution
587 Views
noah_martens
Contributor I

I'm in the process of transferring an MCUXpresso IDE project to VS Code and updating it to use the new SDK system where the SDK is built from a west manifest.

I have slimmed the SDK down to only the devices, middleware, rtos, etc. repos that my project is using; however, as soon as I remove the "mcux-sdk-examples" repo (which includes examples for all boards) from the SDK, I am no longer able to import my project using MCUXpresso for VS Code. I get the error: "The selected repository doesn't contain board 'evkmimxrt1064'".

Is there an intended way to import a project into a VS Code using an SDK that doesn't have these examples (or at least only examples for one board/family), or is it expected that every SDK has the examples for all boards?

Thanks

0 Kudos
Reply
1 Solution
552 Views
noah_martens
Contributor I

No, I have already converted the MCUXpresso IDE project the VS Code. I was running into this "repository does not contain board" error when I tried to open the converted project on another device using the "Import Project" button in MCUXpresso for VS Code. I only got this error after removing the examples from my SDK.

However, I have since realized that after converting the project to VS Code, I don't need to use the "Import Project" button. Instead, I can just open the project in VS Code and it will be detected as an MCUXpresso for VS Code project. The SDK and toolchain can then be selected using with "Configure" > "Associate Repository" and "Configure" > "Associate Toolchain".

When opening an MCUXpresso for VS Code project this way, I avoid the "repository does not contain board" error.

View solution in original post

0 Kudos
Reply
2 Replies
564 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @noah_martens 

Do you mean that import the project(like hello world) in MCUXpresso IDE into the MCUXpresso for VSCODE?

BR

Harry

0 Kudos
Reply
553 Views
noah_martens
Contributor I

No, I have already converted the MCUXpresso IDE project the VS Code. I was running into this "repository does not contain board" error when I tried to open the converted project on another device using the "Import Project" button in MCUXpresso for VS Code. I only got this error after removing the examples from my SDK.

However, I have since realized that after converting the project to VS Code, I don't need to use the "Import Project" button. Instead, I can just open the project in VS Code and it will be detected as an MCUXpresso for VS Code project. The SDK and toolchain can then be selected using with "Configure" > "Associate Repository" and "Configure" > "Associate Toolchain".

When opening an MCUXpresso for VS Code project this way, I avoid the "repository does not contain board" error.

0 Kudos
Reply