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?

Parents
  • Hello,

    What JLink version does it claim that you have installed when running "nrfjprog -v".

    Could you try installing the newest version of nRF Command Line tools and see if it helps?

    Regards,

    Elfving

  • Hi, sorry for a late answer

    I installed the latest latest version of nRF Command Line tools.

    When running "nrfjprog -v" in the terminal i get the following:

    nrfjprog version: 10.19.0 external
    JLinkARM.dll version: 7.86b

    I am running Windows 11 Pro.

    I tried installing  a earlier version of nRF Connect for VS Code (v2022.7.111) and then the JLink error message does not show up.

    But when I tried building the Zephyr/samples/blinky I get the following error message:

    [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/blink/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/blink/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\blink\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\blink\build'

    So I don't know if installing a earlier version has solved the problem but at least there is a new one.

  • Hi @ManiG,

    Could you please share the link of nRF Connect for VS Code (v2022.7.111). 
    I tried different versions but no luck.

    Thanks

  • Hi

    I can't find a link for the extension.

    You should be able to go into extensions (Ctrl+Shift+X) -> nRF Connect for VS Code -> Install Another Version.. -> 2022.7.111

Reply Children
No Data
Related