Zephyr West tool internal variables wrong.

I am trying to build the zephyr blink project using west :

west build -p auto -b nrf52_adafruit_feather samples\basic\blinky

I have installed the gnu-arm-embedded toolchain and set my environment variables accordingly : ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb

However the internal variables seem to be wrong which causes build errors :

  Internal variables:

  CROSS_COMPILE:
  C:/ProgramData/chocolatey/lib/gcc-arm-embedded/tools/bin/arm-none-eabi-

  TOOLCHAIN_HOME: C:/ProgramData/chocolatey/lib/gcc-arm-embedded/tools

Setting the GNUARMEMB_TOOLCHAIN_PATH to the correct path dosen't change these values (even after reboot).

How can I make sure these variables are set to the right values? Thank you.

The correct path would be : C:\ProgramData\chocolatey\lib\gcc-arm-embedded\tools\gcc-arm-none-eabi-10-2020-q4-major

Related