Invalid toolchain installation v2.2.0 (Jlink is required but not found)

Hi. I installed nRF connect for Windows 11 following the installation guidelines, J-Link Software and Documentation Pack (V7.86) and nRF Command Line Tools (V10.19.0). But when I open VS Code and go to quick setup to configure the SDK and toolchain I get the following error message:

When opening toolchain manager (v1.2.2) from nRF Connect for Desktop (v4.0.0) I get the following log file:

10:14:35.179
Initializing environments...
10:14:35.303
nrfutil-toolchain-manager 0.8.0 (92e632145e1f406f57a364e4214d7a4528af5a3a 2022-08-31)
10:14:35.438
Toolchain v2.2.0 has been added to the list
10:14:35.971
Toolchain v2.0.0 has been added to the list
10:14:35.972
Toolchain v2.0.0-rc2 has been added to the list
10:14:35.972
Toolchain v2.0.1 has been added to the list
10:14:35.972
Toolchain v2.0.2 has been added to the list
10:14:35.972
Toolchain v2.1.0 has been added to the list
10:14:35.973
Toolchain v2.1.0-rc1 has been added to the list
10:14:35.973
Toolchain v2.1.0-rc2 has been added to the list
10:14:35.973
Toolchain v2.1.1 has been added to the list
10:14:35.974
Toolchain v2.1.2 has been added to the list
10:14:35.974
Toolchain v2.1.3 has been added to the list
10:14:35.974
Toolchain v2.2.0 has been added to the list
10:14:35.975
Toolchain v2.2.0-rc1 has been added to the list
10:14:35.975
Toolchain v2.2.99-dev3 has been added to the list
10:14:36.128
Toolchain v1.4.99-dev1 has been added to the list
10:14:36.137
Toolchain v1.4.1 has been added to the list
10:14:36.145
Toolchain v1.4.0 has been added to the list
10:14:36.153
Toolchain v1.3.2 has been added to the list
10:14:36.161
Toolchain v1.3.1 has been added to the list
10:14:36.166
Toolchain v1.3.0 has been added to the list
10:14:36.171
Toolchain v1.3.0-rc1 has been added to the list
10:14:36.178
Toolchain v1.2.1 has been added to the list
10:14:36.184
Toolchain v1.2.0 has been added to the list
10:14:36.188
Toolchain v1.4.2 has been added to the list
10:14:36.192
Toolchain v1.5.0-rc1 has been added to the list
10:14:36.197
Toolchain v1.5.0 has been added to the list
10:14:36.201
Toolchain v1.5.1-rc1 has been added to the list
10:14:36.206
Toolchain v1.5.1 has been added to the list
10:14:36.213
Toolchain v1.6.0 has been added to the list
10:14:36.218
Toolchain v1.6.1 has been added to the list
10:14:36.223
Toolchain v1.7.0 has been added to the list
10:14:36.229
Toolchain v1.7.1 has been added to the list
10:14:36.233
Toolchain v1.8.0 has been added to the list
10:14:36.237
Toolchain v1.9.0 has been added to the list
10:14:36.242
Toolchain v1.9.1 has been added to the list
10:14:36.701
Using nrf-device-lib-js version: 0.5.0
10:14:36.702
Using nrf-device-lib version: 0.13.11
10:14:36.702
Using nrfjprog DLL version: 10.18.2
10:14:36.702
Using JLink version: JLink_V7.86
10:14:36.827
Installed JLink version does not match the provided version (V7.66a)

I tried installing JLink_V7.66a but ran into the same error.

Any suggestions how to fix this issue?

  • Hello again everyone, and sorry about the delay on this case.

    Are all of you seeing the issue being solved when downgrading the VSC extension to 2022.7.111? And which version are you currently using, and seeing this being an issue with? 2023.2.56?

    I haven't been able to reproduce this yet.

    Regards,

    Elfving

  • Hello ManiG,

    That does look like a separate issue, which should be fixed with the correct path variables set. Are you seeing the same thing when running it from an nRF Connect Terminal? (to open an nRF Connect Terminal, select the drop-down menu on VSC on the top right of the Terminal window, and select nRF Connect.)

    Regards,

    Elfving

  • Hi Elfving,

    I am running this on Winodws OS and I can't find VSC version 2022.7.111. 

    Thanks

  • Hi

    This is the output when running the building in the nRF Connect Terminal:

    PS C:\nordic\hello_world> west build -b nrf9160dk_nrf9160_ns
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic/hello_world
    -- Using NCS Toolchain 2.3.0 for building. (C:/ncs/toolchains/v2.3.0/cmake)
    -- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.3.0/zephyr/.cache
    -- Zephyr version: 3.2.99 (C:/ncs/v2.3.0/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found host-tools: zephyr 0.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Generated zephyr.dts: C:/nordic/hello_world/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/hello_world/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/hello_world/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.3.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/nordic/hello_world/prj.conf'
    Configuration saved to 'C:/nordic/hello_world/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic/hello_world/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/hello_world/build
    -- west build: building application
    [2/230] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (C:/ncs/v2.3.0/zephyr), build: v3.2.99-ncs2
    [56/230] Generating ../../tfm/CMakeCache.txt
    -- The C compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    -- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.3.0/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/hello_world/build/tfm
    [61/230] Performing build step for 'tfm'
    [1/2] Re-running CMake...
    -- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    -- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.3.0/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/hello_world/build/tfm
    [171/171] Generating ../bin/tfm_s.hex
    [64/230] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [218/230] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf  -Wl,-T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=C:/nordic/hello_world/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/newlib/liblib__libc__newlib.a  zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a  zephyr/subsys/random/libsubsys__random.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/entropy/libdrivers__entropy.a  zephyr/drivers/timer/libdrivers__timer.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  modules/nrf/lib/nrf_modem_lib/lib..__nrf__lib__nrf_modem_lib.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/lib/modem_antenna/lib..__nrf__lib__modem_antenna.a  modules/nrf/modules/tfm/zephyr/libtfm_api_nrf.a  modules/trusted-firmware-m/libtfm_api.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  C:/ncs/v2.3.0/nrfxlib/nrf_modem/lib/cortex-m33/soft-float/libmodem.a  modules/nrfxlib/nrfxlib/nrf_security/src/zephyr/libmbedtls_zephyr.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L"c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/thumb/v8-m.main/nofp"  -LC:/nordic/hello_world/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  tfm/secure_fw/s_veneers.o  -no-pie  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -lm  -Wl,-lc  -L"C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi"/lib/thumb/v8-m.main/nofp  -Wl,-lgcc  -lc  -specs=nano.specs  modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto.a  C:/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/soft-float/liboberon_mbedtls_3.0.12.a  modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto_base.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  C:/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/soft-float/liboberon_3.0.12.a  -lc && cmd.exe /C "cd /D C:\nordic\hello_world\build\zephyr && C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ""
    'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'C:\nordic\hello_world\build'

    I also checked the path set in the Environment Variables and the following path was set:

    C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\

  • Are you saying you can't find the section for updating the extension to a given version? If so this is how: When in VSC, go to your extensions and find "nRF Connect for VS Code". Click the drop-down menu next to uninstall, and choose "install another version".

    Or are you saying you can't find version 2022.7.111 on that list?

    Regards,

    Elfving

Related