Error when building nRF Connect for VS Code tutorial project: fatal error: core_cm4.h: No such file or directory

Hello everyone, I am a beginner and am following the Youtube video to learn. This error occurred when I first tried to build.  please give me more guidance. Below is the information from the terminal:

Building blinky_pwm_tutorial
west build --build-dir c:\ncs\myApps\blinky_pwm_tutorial\build c:\ncs\myApps\blinky_pwm_tutorial

[1/165] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D__ZEPHYR__=1 -IC:/ncs/v2.3.0/zephyr/kernel/include -IC:/ncs/v2.3.0/zephyr/arch/arm/include -IC:/ncs/v2.3.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.3.0/nrf/include -IC:/ncs/v2.3.0/nrf/tests/include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.3.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -isystem C:/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Og -imacros C:/ncs/myApps/blinky_pwm_tutorial/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/myApps/blinky_pwm_tutorial=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -MF zephyr\CMakeFiles\offsets.dir\arch\arm\core\offsets\offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c C:/ncs/v2.3.0/zephyr/arch/arm/core/offsets/offsets.c
In file included from C:\ncs\v2.3.0\modules\hal\nordic\nrfx\mdk\nrf.h:163,
from C:\ncs\v2.3.0\modules\hal\nordic\nrfx\drivers\nrfx_common.h:41,
from C:\ncs\v2.3.0\modules\hal\nordic\nrfx\nrfx.h:38,
from c:\ncs\v2.3.0\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:14,
from C:\ncs\v2.3.0\zephyr\soc\arm\nordic_nrf\nrf52\soc.h:14,
from C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\cortex_m\cmsis.h:19,
from C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\mpu\arm_mpu_v7m.h:11,
from C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\mpu\arm_mpu.h:14,
from C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\arch.h:210,
from C:\ncs\v2.3.0\zephyr\include\zephyr\arch\cpu.h:19,
from C:\ncs\v2.3.0\zephyr\include\zephyr\kernel_includes.h:33,
from C:\ncs\v2.3.0\zephyr\include\zephyr\kernel.h:17,
from C:\ncs\v2.3.0\zephyr\arch\arm\core\offsets\offsets_aarch32.c:28,
from C:\ncs\v2.3.0\zephyr\arch\arm\core\offsets\offsets.c:9:
C:\ncs\v2.3.0\modules\hal\nordic\nrfx\mdk\nrf52840.h:150:10: fatal error: core_cm4.h: No such file or directory
150 | #include "core_cm4.h" /*!< ARM Cortex-M4 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'c:\ncs\myApps\blinky_pwm_tutorial\build'

Related