Hello,
I am setting up a new workstation but when trying to build code that was working on another computer I am getting the following error
C:\ncs\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.2.0/zephyr -IC:/ncs/v2.2.0/nrf/drivers/mpsl/clock_control -IC:/ncs/v2.2.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.2.0/zephyr/subsys/bluetooth -IC:/ncs/v2.2.0/zephyr/subsys/settings/include -IC:/ncs/v2.2.0/nrf/include -IC:/ncs/v2.2.0/nrf/lib/multithreading_lock/. -IC:/ncs/v2.2.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v2.2.0/zephyr/drivers/flash -IC:/ncs/v2.2.0/nrf/tests/include -IC:/ncs/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.2.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.2.0/modules/lib/zcbor/include -IC:/ncs/v2.2.0/nrfxlib/mpsl/include -IC:/ncs/v2.2.0/nrfxlib/mpsl/include/protocol -IC:/ncs/v2.2.0/nrfxlib/softdevice_controller/include -IC:/ncs/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/mgmt/include -IC:/ncs/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/util/include -IC:/ncs/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/smp/include -IC:/ncs/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include -IC:/ncs/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/os_mgmt/include -isystem C:/ncs/v2.2.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -isystem C:/ncs/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros C:/Users/JasonClyde/Documents/GitHub/Controller_Firmware/build_v4/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.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.2.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:/Users/JasonClyde/Documents/GitHub/Controller_Firmware=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
c:\Users\Clyde\Documents\GitHub\C_Firmware\src\main.c:1:10: fatal error: bluetooth/bluetooth.h: No such file or directory
1 | #include <bluetooth/bluetooth.h>
I am trying to use cpp properties to include the path for zephyr but the error is still there even if I don't include it and instead use
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/ncs/2.2.0/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "windows-gcc-arm",
"configurationProvider": "nrf-connect",
"cStandard": "gnu17",
"cppStandard": "c++20",
"compilerPath": ""
}
],
"version": 4
}
I downloaded the toolchain through toolchain manager and its not saying there are any missing extensions in vs code. This is a new computer so I am assuming I just forgot to install something but I've followed the instructions provided.