Invalid Toolchain installation in VS code

Hi,

I am trying to set up  nRF Connect for VS code in visual studio code using the documentation provided but I getting following error in VS code.

Installed Version is shown below.

Any fix on this?

Parents
  • I also have the exact same problem.

    If someone solve the problem, please let me know.

  • Hello Patrick,

    For some, this issue is solved by downloading version 2022.7.111 of the VSC extension instead of the newest one. Does that work for you?

    Regards,

    Elfving

  • HI Patrick,

    I changed the version to 2022.7.111, the J-Link error is not showing, however whenever I build a project I am getting following error.

    * Executing task: nRF Connect: Generate config nrf9160dk_nrf9160 for c:\nordicsemi\myApps\blinky_pwm_27_Aug

    Building blinky_pwm_27_Aug
    west build --build-dir c:\nordicsemi\myApps\blinky_pwm_27_Aug\build c:\nordicsemi\myApps\blinky_pwm_27_Aug --pristine --board nrf9160dk_nrf9160 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="c:/nordicsemi/myApps/blinky_tutorial;c:/nordicsemi/myApps/blinky_2;c:/nordicsemi/myApps/blinky_pwm_27_Aug"

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordicsemi/myApps/blinky_pwm_27_Aug
    -- Found Python3: C:/Users/user/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:/Users/user/ncs/v2.3.0/zephyr/.cache
    -- Zephyr version: 3.2.99 (C:/Users/user/ncs/v2.3.0/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found host-tools: zephyr 0.15.2 (C:/Users/user/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.2 (C:/Users/user/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found Dtc: C:/Users/user/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:/Users/user/ncs/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Generated zephyr.dts: C:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr/dts.cmake
    Parsing C:/Users/user/ncs/v2.3.0/zephyr/Kconfig
    Loaded configuration 'C:/Users/user/ncs/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/nordicsemi/myApps/blinky_pwm_27_Aug/prj.conf'
    Merged configuration 'C:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr/.config'
    Kconfig header saved to 'C:/nordicsemi/myApps/blinky_pwm_27_Aug/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:/Users/user/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordicsemi/myApps/blinky_pwm_27_Aug/build
    -- west build: building application
    [1/178] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (C:/Users/user/ncs/v2.3.0/zephyr), build: v3.2.99-ncs2
    [2/178] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [3/178] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [4/178] Generating include/generated/driver-validation.h
    [5/178] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [6/178] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [7/178] Generating include/generated/offsets.h
    [8/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [9/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [10/178] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [11/178] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [12/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [13/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [14/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [15/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [16/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [17/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [18/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [19/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [20/178] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [21/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [22/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [23/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [24/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [25/178] Generating linker_zephyr_pre1.cmd
    [26/178] Generating linker_zephyr_pre0.cmd
    [27/178] Linking C static library zephyr\arch\common\libisr_tables.a
    [28/178] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [29/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [30/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [31/178] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [32/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [33/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [34/178] Generating ../../../include/generated/libc/minimal/strerror_table.h
    [35/178] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [36/178] Linking C static library zephyr\arch\common\libarch__common.a
    [37/178] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
    [38/178] Building C object CMakeFiles/app.dir/src/main.c.obj
    [39/178] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [40/178] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
    [41/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [42/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
    [43/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [44/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
    [45/178] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [46/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [47/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
    [48/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
    [49/178] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
    [50/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
    [51/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
    [52/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
    [53/178] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [54/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
    [55/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
    [56/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
    [57/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
    [58/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
    [59/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
    [60/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
    [61/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
    [62/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
    [63/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
    [64/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
    [65/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
    [66/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
    [67/178] Linking C static library app\libapp.a
    [68/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [69/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [70/178] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
    [71/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [72/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [73/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [74/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [75/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
    [76/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
    [77/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [78/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [79/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
    [80/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    [81/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [82/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [83/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [84/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [85/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [86/178] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
    [87/178] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
    [88/178] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
    [89/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
    [90/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
    [91/178] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [92/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cache.c.obj
    [93/178] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/power.c.obj
    [94/178] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj
    [95/178] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    [96/178] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
    [97/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
    [98/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
    [99/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
    [100/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
    [101/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
    [102/178] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/user/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
    [103/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_uart.c.obj
    [104/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
    [105/178] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [106/178] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/user/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
    [107/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
    [108/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [109/178] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
    [110/178] Building C object zephyr/boards/arm/nrf9160dk_nrf9160/CMakeFiles/boards__arm__nrf9160dk_nrf9160.dir/nrf52840_reset.c.obj
    [111/178] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
    [112/178] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
    [113/178] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
    [114/178] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [115/178] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
    [116/178] Building C object zephyr/drivers/pwm/CMakeFiles/drivers__pwm.dir/pwm_nrfx.c.obj
    [117/178] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
    [118/178] Linking C static library zephyr\boards\arm\nrf9160dk_nrf9160\libboards__arm__nrf9160dk_nrf9160.a
    [119/178] Linking C static library zephyr\drivers\console\libdrivers__console.a
    [120/178] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
    [121/178] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
    [122/178] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
    [123/178] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
    [124/178] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
    [125/178] Linking C static library zephyr\libzephyr.a
    [126/178] Linking C static library zephyr\drivers\pwm\libdrivers__pwm.a
    [127/178] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
    [128/178] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
    [129/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [130/178] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [131/178] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
    [132/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    [133/178] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
    [134/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk/system_nrf9160.c.obj
    [135/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
    [136/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
    [137/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_pwm.c.obj
    [138/178] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
    [139/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
    [140/178] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [141/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
    [142/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
    [143/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
    [144/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
    [145/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
    [146/178] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/user/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    [147/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
    [148/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
    [149/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
    [150/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
    [151/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
    [152/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
    [153/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
    [154/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
    [155/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
    [156/178] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [157/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
    [158/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
    [159/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
    [160/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
    [161/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
    [162/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
    [163/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
    [164/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
    [165/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
    [166/178] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    [167/178] Linking C static library zephyr\kernel\libkernel.a
    [168/178] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\Users\user\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:/nordicsemi/myApps/blinky_pwm_27_Aug/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/minimal/liblib__libc__minimal.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/pwm/libdrivers__pwm.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/users/user/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:/nordicsemi/myApps/blinky_pwm_27_Aug/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -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 C:/Users/user/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc310_platform_0.9.16.a && cmd.exe /C "cd /D C:\nordicsemi\myApps\blinky_pwm_27_Aug\build\zephyr && C:\Users\user\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:\Users\user\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'c:\nordicsemi\myApps\blinky_pwm_27_Aug\build'

    Any fix for this issue?

    Thanks
    Antony

  • Does what ManiG suggested in the other thread work for you?

    Are you running this by simply using the VSC action "Build"?

    The mix of different / "slash" directions in the same path is a typical sign of environment path issues. There might for instance be some path set in an installation somewhere with the wrong set of slashes.

    Regards,

    Elfving

  • Thanks you your help.

    I tried to use 2022.7.111 but, I failed.  I have tried remove all nrf application and install again. but I failed to solve problem.

    I tried everything, but in the end I gave up. I will reinstall windows.

  • Hello again Patrick! Sorry about the wait, I've been away this Easter.

    I am sorry to hear about this still being an issue for you. Have you actually reinstalled windows? And if so did that make a difference?

    Regards,

    Elfving

  • Yes. I have re-installed windows, and it works well now.

Reply Children
Related