ncs 2.7.0 toolchain installation does not work

hello Nordic

trying to migrate from ncs 2.5.0 to 2.7.0

well i did the mistake of installing the toolchain via the vs code .. for some reason it installed it in the wrong directory .. then i did an uninstall and try to install it like i always did via the nrfconnect desktop application but when i try to do it now i get this error:

There are multiple errors:
Failed to clone the repositories: Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, remove this directory and re-run this command:

/home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, remove this directory and re-run this command:

/home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

any idea how i can fix this issue

could the wrong installation directory caused me to fail on compilation and getting undefined on some function calls ?

p.s. On vs code after i try to uninstall and change installation directory i get this error: the argument '--install-dir <PATH>' cannot be used multiple times Usage: nrfutil toolchain-manager install [OPTIONS] <--ncs-version <VERSION>|--toolchain-bundle-id <HASH>|--toolchain-bundle <PATH>> For more information, try '--help'.

could the toolchain initial wrong installation directory cause me to fail on compilation and get ‘undefined’ on some function calls ? i actually don't think so cause tried with toolchain 2.6.1 which is installed on the right directory and still get the undefined issue  (Missing Forum Thread) 

Any ideas ?

hope to read from you soon

best regards

Ziv

  • hey Edvin

    its been sometime ..

    tried to install via nrf connect desktop app

    after i have tried to delete from ncs/downloads and from the ncs/toolchain dir .. i still see 2.7.0 as default in the toolchain.json, which seems like i can not change 

    the error i get is this 

    There are multiple errors:
    Failed to clone the repositories: Error: FATAL ERROR: already initialized in 
    /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, 
    remove this directory and re-run this command:
    
    /home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1
    
    Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if 
    you do not want a workspace there, remove this directory and re-run this command:
    
    /home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

    any ideas ?

    BR

    Ziv

  • Can you confirm that you have deleted the folder home/ziv/workspace/ncs before you tried again? Alternatively, if you don't want to delete it because you have older SDKs there, you can create a new folder, like home/ziv/test/ncs/ and point to this folder using the nRF Connect for Desktop -> Toolchain Manager:

Related