Cannot select nrfConnect SDK in Visual Code

Hi,

I have been succesfull working with SES in the past but I understand that nrfConnect + VS + zephyr  is the new way to go.

I have been struggling to install nrfConnect and  VisualCode on my Mac. I lately erase everything and restart from the beginning. 

I have installed the nrfConnect SDK and toolchain with the NRFConnect app for Desktop on my Mac (montereyOS), following the instructions. I have then installed the Visual Code. Extensions  have been installed from nrfConnect as indicated in the instruction. In the VS nrfConnect welcome page, I cannot select the SDK. The pull down menu is inactive.  I can select the toolchain.    I have uninstalled , reinstalled the VS Nordic extensions without success.

The  SDK path is the following: /opt/nordic/ncs/v2.2.99-dev3

The toolchain path:  /opt/nordic/ncs/toolchains/v2.2.99-dev3

I have also tried to set the application location   as : /Users/SL/NrfConnectApps but I get the following message : cannot create an new application within an existing west workspace.This error occurs since I have tried to do an unsuccessful manual  reinstalled.

How do I fix these issues.   thanks in advance for your help.

Parents
  • Hello

    You should be able to set the Toolchain Path and Topdir in

    File > Preferences > Settings > Extensions > nRF Connect

    If you're still not able to set the environment, you might have to set up a new workspace (make a new "applications folder" and open it as a workspace in VS Code)

    Best regards,

    Einar

  • I have solved the first problem.  I went in the /user/library/application support folder and delete the «code» folder.  Then I deinstalled the nrfConnect 2.2.99 SDK.  I installed the 2.0.0 SDK.  Restart Visual Code (VC) from the nfrConnect apps.  In VC, the nrfConnect menu was then working normally.  I could select the SDK and the toolchain.  I then quit VC and installed the 2.2.9 SDK from nrfConnect.  I restart VC from nrfConnect and it work.      I can access both SDK and toolchains.

    I have not solved the issue with the application folder yet.  I have created a new folder under user/nrfconnect_apps with VC and another one under user/document/nrfConnect_apps.  I still have the message:  cannot create an new application within an existing west workspace...  

  • I have found that when I had folder to worspace from the VC file menu, nrfConnect extension reload and I lose the ability to select the SDK.  A message show; an sdk inferred from the workspace, so another cannot be selected

     Deleting the folder in the Explorer tab revert the problem...  

      

  • Problem solved:  

    1. go to user folder where the nrfConnect_apps folder was created

    2. type Command+Shift+Dot to show the invisible file

    3.  delete the .west folder.

    4.  type Command+Shift+Dot to mask the invisible file

    Problem solved

Reply Children
No Data
Related