This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Build nrf project using Cmd

Hi ,

I am working on nrf based project . I m trying to build my project using Cmd  . I followed the steps given in link -

https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/ncs-tutorial---temporary#h155sjwm56iy71nftthh5gikrw9b2thl

But when i trying to build project using cmd instead of bash with following command - C:\project_folder_path\v1.2.0\toolchain\opt\bin\Scripts\west.exe build -b nrf910

i encountered the following error - ModuleNotFoundError: No module named 'west'

i could not able to build my project . Will you please suggest the steps for building project in cmd . 

Best Regards,

Shruti Mishra

Parents Reply
  • Are you using NCS v1.3.0, or v1.2.0?
    Because you seem to be using code from v1.3.0, but want to use the toolchain from v1.2.0. Those are not compatible.

    As you have now gotten your code to NCS v1.3.0, and that is the newest verions, I rocommend you use NCS v1.3.0.

    I am not familiar with coverity, but the compiler used is v1.3.0/toolchain/bin/arm-none-eabi-gcc.exe.

     

    shruti mishra said:

    Also without opening toolchain is it possible to build the project through the cmd 

    Please tell me ?

     I guess you mean if you can build NCS from a cmd window not opened from the Toolchain Manager, when NCS is installed from the Toolchain Manager?

    Then the answer is no, there is no simple way of doing that.

Children
Related