Cannot create a new application within an existing west workspace

I've been trying to create an application using linux ubuntu.

I installed everything manually, using the following steps: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/gs_installing.html

When I tried to open Visual studio, I started getting this error, I'm not sure if it's due to a mistake during installation or if it's because of the location.

Hope you can help me.

Regards, Sandy.

  • A freestanding appliation is an application that is placed outside your NCS installation is placed (west workspace).

    You can not put a freestanding application in the west workspace.

    Try to install NCS in /home/liditek/ncs and place the application in /home/liditek/my_samples. 

    Best regards,

    Simon

  • Hi I am curious why this is the case. I am trying to setup west using the foroest topology documented in the zephyr documentation https://docs.zephyrproject.org/3.2.0/develop/west/workspaces.html where multiple applications are inside a west workspace. This error seems to go against this planning and I am wondering why as this topology would be very helpful to me  

  • Hi 

    The original error shared by Sandy indicates that they did something unintended in the setup of the SDK. For some reason the /home/liditek/ folder is itself a west workspace, while I would expect the west workspace to be found in the /home/liditek/ncs/v2.1.0/ folder. 

    If you want to add your own sample inside the workspace you could always just add the project folder manually, and add it to VSCode by clicking "Add an existing application".

    This is not recommended though, as you are adding code to the workspace that is not managed through west. 

    If you want to integrate code in the west workspace the proper way you should add it as a separate repository, and include this repository in the west manifest. For more information about this please have a look here.

    Best regards
    Torbjørn  

Related