Visual Studio Code - Dual Core Template issue

 Executing task: & 'C:/Program Files/CMake/bin/cmake.exe' --build . -j6 "--config" "Debug" "--target" "all" "--" "-j" "26" <

Scanning dependencies of target PreBuild
[  0%]  Running the pre-build action...
process_begin: CreateProcess(C:\projects\PSoC6VS\tools\buildversion, ..\tools\buildversion C:/projects/PSoC6VS/source/CortexM0/buildversion.h, ...) failed.
make (e=193): Error 193
CMakeFiles\PreBuild.dir\build.make:56: recipe for target 'CMakeFiles/PreBuild' failed
mingw32-make.exe[2]: *** [CMakeFiles/PreBuild] Error 193
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/PreBuild.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/PreBuild.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
[  1%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/main.c.obj
[  1%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/devices/psoc6/startup/system_psoc6_cm0plus.c.obj
[  2%] Building ASM object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/devices/psoc6/startup/gcc/startup_psoc6_02_cm0plus.S.obj
[  3%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ble_clk.c.obj
[  3%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto.c.obj
[  4%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_aes_v1.c.obj
[  4%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_aes_v2.c.obj
[  5%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/comp
onents/psoc6pdl/drivers/source/cy_crypto_core_cmac_v1.c.obj
[  6%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_cmac_v2.c.obj
[  6%] [  7%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries//source/cy_crypto_core_crc_v1.c.objvers[  9%] [  9%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_des_v1.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_crc_v2.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_ecc_key_gen.c.obj

[  9%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries//cy_crypto_core_ecc_ecdsa.c.obj
[  9%] Buildi
ng C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_hw.c.obj
[  9%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_des_v2.c.obj
[  9%] [ 10%] [ 11%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_hw_v1.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_hmac_v1.c.obj[ 12%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_ecc_nist_p.c.obj
[ 19%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_hmac_v2.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_ecc_domain_params.c.obj

[ 65%] Built target VStest4_CortexM4.elf
[ 66%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_mem_v1.c.obj
[ 66%] [ 67%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_mem_v2.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_prng_v1.c.obj[ 67%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_sha_v2.c.obj


[ 68%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_trng_v1.c.obj
[ 69%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_sha_v1.c.obj
[ 69%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_vu.c.obj[ 70%] 
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_trng_v2.c.obj
[ 71%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_prng_v2.c.obj
[ 72%] [ 72%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_server.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_crypto_core_rsa.c.obj[ 72%] 
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_csd.c.obj

[ 73%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ctb.c.obj
[ 74%] [ 74%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ctdac.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_device.c.obj[ 75%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_dma.c.obj


[ 76%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_dmac.c.obj
[ 76%] [ 77%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_efuse.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_flash.c.obj

[ 77%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_gpio.c.obj
[ 78%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_i2s.c.obj
[ 79%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ipc_drv.c.obj
[ 80%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ipc_sema.c.obj[ 80%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_ipc_pipe.c.obj

[ 81%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_lpcomp.c.obj
[ 81%] [ 82%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_mcwdt.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_lvd.c.obj
[ 82%] [ 83%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_prot.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_pdm_pcm.c.obj[ 84%] [ 84%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_rtc.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_profile.c.obj


[ 85%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_sar.c.obj
[ 86%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_scb_ezi2c.c.obj
[ 87%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_scb_i2c.c.obj
[ 87%] [ 87%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_scb_spi.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/_common.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/_common.c.obj
[ 88%] [ 89%] Building C object source
/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_sd_host.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_scb_uart.c.obj
[ 90%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_smif.c.obj
[ 90%] [ 91%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_sysclk.c.obj
[ 92%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_sysanalog.c.obj
[ 92%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_smif_memslot.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_smartio.c.obj
[ 92%] [ 93%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_syslib.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_sysint.c.obj[ 93%] 
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_syspm.c.obj
[ 94%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/driv
ers/source/cy_tcpwm_counter.c.obj[ 95%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_systick.c.obj

[ 95%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_tcpwm_pwm.c.obj
[ 96%] [ 97%] [ 98%] [ 98%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_tcpwm_quaddec.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_usbfs_dev_drv_io_dma.c.obj
Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_trigmux.c.obj[ 98%] [ 99%] Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_wdt.c.objBuilding C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_usbfs_dev_drv_io.c.obj


Building C object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/cy_usbfs_dev_drv.c.obj
[100%] Building ASM object source/CortexM0/CMakeFiles/VStest4_CortexM0.elf.dir/C_/ModusToolbox_1.1/libraries/psoc6sw-1.1/components/psoc6pdl/drivers/source/gcc/cy_syslib_gcc.S.obj
[100%] Linking C executable VStest4_CortexM0.elf
[100%] Built target VStest4_CortexM0.elf
Makefile:82: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

> Executing task: & 'C:/Program Files/CMake/bin/cmake.exe' --build . -j6 "--config" "Debug" "--target" "all" "--" "-j" "26" <

[  0%]  Running the pre-build action...
process_begin: CreateProcess(C:\projects\PSoC6VS\tools\buildversion, ..\tools\buildversion C:/projects/PSoC6VS/source/CortexM0/buildversion.h, ...) failed.
make (e=193): Error 193
CMakeFiles\PreBuild.dir\build.make:56: recipe for target 'CMakeFiles/PreBuild' failed
mingw32-make.exe[2]: *** [CMakeFiles/PreBuild] Error 193
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/PreBuild.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/PreBuild.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
[ 48%] Built target VStest4_CortexM0.elf
[100%] Built target VStest4_CortexM4.elf
Makefile:82: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

> Executing task: & 'C:/Program Files/CMake/bin/cmake.exe' --build . -j6 "--config" "Debug" "--target" "all" "--" "-j" "26" <

[  0%]  Running the pre-build action...
process_begin: CreateProcess(C:\projects\PSoC6VS\tools\buildversion, ..\tools\buildversion C:/projects/PSoC6VS/source/CortexM0/buildversion.h, ...) failed.
make (e=193): Error 193
CMakeFiles\PreBuild.dir\build.make:56: recipe for target 'CMakeFiles/PreBuild' failed
mingw32-make.exe[2]: *** [CMakeFiles/PreBuild] Error 193
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/PreBuild.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/PreBuild.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
[ 48%] Built target VStest4_CortexM0.elf
[100%] Built target VStest4_CortexM4.elf
Makefile:82: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

As you can see, the prebuild task fails. Probably because there’s no prebuild tool installed. You can safely remove the prebuild action from the project by deleting the last lines from the cmakelists.txt:

add_custom_target(
    PreBuild ALL
    COMMAND "${TOOLS_DIR}/buildversion" "${CMAKE_CURRENT_SOURCE_DIR}/source/CortexM0/buildversion.h"
    COMMENT " Running the pre-build action..."
)
add_dependencies(${MAIN_PRJ_NAME} PreBuild)

Thanks, I am good after removing the unwanted line