This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

entering command-line environment

Hi,

I've installed the nRF Connect SDK, and want to bring up a command-line build environment.

I'm able to do it as it says in the instructions here: Bring up the Toolchain Manager and use the "Open Bash" option from the drop-down menu.

However, I'd like to be able to get into the environment without bringing up the Toolchain Manager. What do I do? What script do I run from git-bash?

I tried running zephyr/zephyr-env.sh, but apparently that's not enough.

Thanks!

Parents
  • Hi,

    Running zephyr-env.sh does not set ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH. You need to run env.cmd located in toolchain/cmd from the command line you are going to use.

    Alternatively, you can set ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH in your system environment variables as you would do if you installed nRF Connect SDK manually instead of with the Toolchain Manager. In that case you need to set the following:

    ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    GNUARMEMB_TOOLCHAIN_PATH=c:\ncs\v1.9.1\toolchain\opt

    Make sure that the path you set GNUARMEMB_TOOLCHAIN_PATH to is the path to your nRF Connect SDK installation and where your toolchain folder is.

    Best regards,

    Marte

Reply
  • Hi,

    Running zephyr-env.sh does not set ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH. You need to run env.cmd located in toolchain/cmd from the command line you are going to use.

    Alternatively, you can set ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH in your system environment variables as you would do if you installed nRF Connect SDK manually instead of with the Toolchain Manager. In that case you need to set the following:

    ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    GNUARMEMB_TOOLCHAIN_PATH=c:\ncs\v1.9.1\toolchain\opt

    Make sure that the path you set GNUARMEMB_TOOLCHAIN_PATH to is the path to your nRF Connect SDK installation and where your toolchain folder is.

    Best regards,

    Marte

Children
No Data
Related