Importing a project using an SDK without examples

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Importing a project using an SDK without examples

跳至解决方案
607 次查看
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 项奖励
回复
1 解答
572 次查看
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 项奖励
回复
2 回复数
584 次查看
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 项奖励
回复
573 次查看
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 项奖励
回复