This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What should my environment variables be when going through the "nRF Connect SDK Tutorial series" if I used Toolchain Manager instead of the Getting Started Assistant

Part 0 of the Tutorial directs the user to use the Getting Started Assistant, but it appears to have been deprecated.

So I've used Toolchain Manager instead.

Part 1 of the Tutorial says to set these environment variables as follows:

setx -m ZEPHYR_TOOLCHAIN_VARIANT "gnuarmemb"

setx -m GNUARMEMB_TOOLCHAIN_PATH c:\gnuarmemb

But I don't have a c:\gnuarmemb directory (Toolchain Manager didn't create one) so I assume there is some other default values I should use.

Parents
  • Hello, 

    When using the Toolchain Manager, you should not need to do anything with environmental variables. Everything is handled from inside the folder that it downloads. Please see First Steps to Build from within the Toolchain Manager.

    Kind regards,
    Øyvind

  • I'm doing "nRF Connect SDK Tutorial - Part 1"

    https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/ncs-tutorial---temporary

    In section "1.2 Build and flash - using west" it describes setting 3 environment variables.

    In discussions with another Nordic rep (after I had submitted my original question) they suggested that I set my environment variables this way instead of what is shown in the tutorial:

    setx -m GNUARMEMB_TOOLCHAIN_PATH C:\nordic\ncs\v1.2.0\toolchain\opt
    setx -m ZEPHYR_BASE C:\nordic\ncs\v1.2.0\zephyr

    When I try to use "west" this is what I see:

    C:\ma\my_projects\hello_world>west build -b nrf5340_dk_nrf5340_cpuappns
    'west' is not recognized as an internal or external command,
    operable program or batch file.

    Are you saying that "west" should work without manually setting any environment variables, that it should work as I have tried doing it, or that I shouldn't try to use "west" from the command line and just use "1.3 Build and flash - using SEGGER Embedded Studio" instead?

  • DBT said:
    I'm doing "nRF Connect SDK Tutorial - Part 1"

    The NCS tutorial has not been updated with information regarding the Toolchain Manager, however, you do not need to set any environment variables when using the Toolchain Manager. The install is a self-contained folder which includes everything except nRF Command Line Tools.

     

    DBT said:
    In discussions with another Nordic rep

     Please have the Nordic rep contact Technical Support for more information around the Toolchain Manager.

     

    DBT said:
    When I try to use "west" this is what I see:

     Please open the included bash or command prompt in the Toolchain Manager app. Click on the down arrow next to the Open IDE button. This will allow you to use West, just make sure to install Command Line Tools or program your device using the Programmer app also found in the nRF Connect for Desktop.

    Kind regards,
    Øyvind

Reply
  • DBT said:
    I'm doing "nRF Connect SDK Tutorial - Part 1"

    The NCS tutorial has not been updated with information regarding the Toolchain Manager, however, you do not need to set any environment variables when using the Toolchain Manager. The install is a self-contained folder which includes everything except nRF Command Line Tools.

     

    DBT said:
    In discussions with another Nordic rep

     Please have the Nordic rep contact Technical Support for more information around the Toolchain Manager.

     

    DBT said:
    When I try to use "west" this is what I see:

     Please open the included bash or command prompt in the Toolchain Manager app. Click on the down arrow next to the Open IDE button. This will allow you to use West, just make sure to install Command Line Tools or program your device using the Programmer app also found in the nRF Connect for Desktop.

    Kind regards,
    Øyvind

Children
No Data
Related