Unable to build blinky or hello world, in VSCode using Zephyr Repo

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

Unable to build blinky or hello world, in VSCode using Zephyr Repo

882 Views
jahmed9
Contributor I

Hi everyone,

I installed VSCode, MCUXpresso for VSCode, then on the MCUXpresso Installer I installed most of the items including Zephyr Developer (it gives green tick to ensure proper installation). I then imported basic projects like blinky and hello_workd for board NXPMIMXRT1060-EVKB.

However, I am unable to build any project, same error shows up:

CMake Error at C:/Users/jahme/zephyr-sdk-0.17.0/cmake/zephyr/generic.cmake:27 (message):
Unable to find 'x86_64-zephyr-elf' or any other architecture in
C:/Users/jahme/zephyr-sdk-0.17.0

On further investigation it seems like it is unable to find a *-*zephyr-* toolchain.

In the "mcuxpresso-tools.json" file following toolchain path is given

 "toolchainPath": "C:/Users/jahme/zephyr-sdk-0.17.0/arm-zephyr-eabi",
Howevr, there is no file or folder with the name "arm-zephyr-eabi" at the above path.
It seems like an error in Zephyr sdk.  
I have already spent many hours trying to get that build but failed, any help will be great,
Thanks and regards
jahmed
0 Kudos
Reply
3 Replies

840 Views
jahmed9
Contributor I

Hi Sam_Gao

Thanks for the reply. I actually got around to resolving it. I initially used the following youtube video for setup https://www.youtube.com/watch?v=-RHmk5il8iI when this failed, I looked deeper and found another resource https://github.com/nxp-mcuxpresso/vscode-for-mcux/wiki but this did not help either. 

What really fixed it was deleting the sdk folder in C:/Users/jahme/ and running the MCUXpresso in VSCode, it recognized the absence of Zephyr. When I reinstalled it, the desired folder appeared, and it started compiling the examples.

Lesson learnt, even if there is a green tick infront of Zephyr in MCUXpresso installer in VSCode, that does not mean it is properly installed. Reinstalling after removing should be tried before banging your head.

0 Kudos
Reply

802 Views
Sam_Gao
NXP Employee
NXP Employee

Great!

Mostly, we will encounter various problems, we need to find hints and solutions from the logs (C:\Users\xxx\AppData\Local\Programs\MCUXpressoInstaller\logs)

0 Kudos
Reply

847 Views
Sam_Gao
NXP Employee
NXP Employee

@jahmed9 

It seems be some issues about the toolchain(arm-zephyr-eabi), I found this dedicated toolchain which comes from Zephyr Open Community, please try to install it. https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.17.0 

 

BTW, Which document did you start these steps from? It seems that the relevant documents are not clear. If these documents are from NXP, I can help you.