Toolchain manager with command line

I would like to select the toolchain directly from the command line. You have this kind of prepared (or maybe this is what your are doing with your GUI) as you have environment.json with all necessary data. It would be lovely to which directly from the command line. Could you tell me how this is possible? 

Thank you in advance

Parents
  • Hello,

    Thank you for your patience.

    The setup for choosing the toolchain from the command line depends on how your installation is structured.

    When you install nRF Connect SDK (NCS) with the Toolchain Manager, the default setup is that the SDK is placed in <path-to-ncs>\ncs\<version-number>. With this configuration, multiple versions of NCS can be installed at the same time.
    To update the environment variables to the version of NCS run <ncs-installation-path>\<ncs-version>\zephyr\zephyr-env.cmd (on Windows).

    If you have a manual install of NCS your folder structure may differ from the default Toolchain Manager structure. If it is similar you can follow the instructions above.

    If you have one folder for NCS and you switch the NCS version with git, then you need to run zephyr-env.cmd after the version switch.

    If you have created a zephyrrc.cmd file, conflicts may occur if you have specified the toolchain path or toolchain variant in zephyrrc.cmd, because they could change from one version to another.

    Kind Regards,
    Maria

Reply
  • Hello,

    Thank you for your patience.

    The setup for choosing the toolchain from the command line depends on how your installation is structured.

    When you install nRF Connect SDK (NCS) with the Toolchain Manager, the default setup is that the SDK is placed in <path-to-ncs>\ncs\<version-number>. With this configuration, multiple versions of NCS can be installed at the same time.
    To update the environment variables to the version of NCS run <ncs-installation-path>\<ncs-version>\zephyr\zephyr-env.cmd (on Windows).

    If you have a manual install of NCS your folder structure may differ from the default Toolchain Manager structure. If it is similar you can follow the instructions above.

    If you have one folder for NCS and you switch the NCS version with git, then you need to run zephyr-env.cmd after the version switch.

    If you have created a zephyrrc.cmd file, conflicts may occur if you have specified the toolchain path or toolchain variant in zephyrrc.cmd, because they could change from one version to another.

    Kind Regards,
    Maria

Children
Related