Hallo Team,
Hardware: nrf5340 Audio DK
Operating System: Windows 10
Software: nrf Connect SDK V2.0.0 on visual studio code 1.69.0
Toolchain Manager V1.1.3
I am very new to Visual Studio Code IDE. I have had experience in programming nrf52DK using SES and nrf5 SDK. I want to work with BLE Audio, and hence shifted towards nrf connect SDK.
I am trying to follow this tutorial video: https://www.youtube.com/watch?v=ufjv2NaLfN8
After starting a new application from an existing sample (peripheral_hr), Visual Studio Code outputs following error messages. "kobj-types-enum.h cannot be opened."
Sorry for the german language. The errors translates to:
"Based on the information provided by the configurationProvider setting, #include errors were detected. Wavy lines are disabled for this translation unit."
"
"resource": "/c:/nordicNCS/Custom_Applications/cus_peripheral_hr/src/main.c",
}, "owner": "C/C++",
}, "code": "1696",
"severity": 8,
"message": "Based on the information provided by the configurationProvider setting, #include errors were detected. Wavy lines are disabled for this translation unit (C:\nordicNCS\Custom_Applications\\cus_peripheral_hr\src\main.c).",
"source": "C/C++",
"startLineNumber": 15,
"startColumn": 1,
"endLineNumber": 15,
"endColumn": 20
}]
"
"resource": "/c:/nordicNCS/Custom_Applications/cus_peripheral_hr/src/main.c",
}, "owner": "C/C++",
}, "code": "1696",
"severity": 8,
"message": "Unable to open file \"source\": \"kobj-types-enum.h\". (dependency of \"zephyr.h\")",
"source": "C/C++",
"startLineNumber": 15,
"startColumn": 1,
"endLineNumber": 15,
"endColumn": 20
}]
This is the error log from the terminal window when I started to build the program.
* Executing task: nRF Connect: Build: cus_peripheral_hr/build (active) Building cus_peripheral_hr west build --build-dir c:\nordicNCS\Custom_Applications\cus_peripheral_hr\build c:\nordicNCS\Custom_Applications\cus_peripheral_hr -- west build: generating a build system Loading Zephyr default modules (Zephyr base (cached)). -- Application: C:/nordicNCS/Custom_Applications/cus_peripheral_hr -- Cache files will be written to: C:/nordicNCS/v2.0.0/zephyr/.cache -- Zephyr version: 3.0.99 (C:/nordicNCS/v2.0.0/zephyr) -- Found west (found suitable version "0.13.1", minimum required is "0.7.1") -- Board: nrf5340_audio_dk_nrf5340_cpuapp -- Found host-tools: zephyr 0.14.1 (C:/nordicNCS/toolchains/v2.0.0/opt/zephyr-sdk) -- Found dtc: C:/nordicNCS/toolchains/v2.0.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: zephyr 0.14.1 (C:/nordicNCS/toolchains/v2.0.0/opt/zephyr-sdk) -- Found BOARD.dts: C:/nordicNCS/v2.0.0/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts -- Found devicetree overlay: C:/nordicNCS/Custom_Applications/cus_peripheral_hr/nrf5340_audio_dk_nrf5340_cpuapp.overlay -- Generated zephyr.dts: C:/nordicNCS/Custom_Applications/cus_peripheral_hr/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/nordicNCS/Custom_Applications/cus_peripheral_hr/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/nordicNCS/Custom_Applications/cus_peripheral_hr/build/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: C:/nordicNCS/Custom_Applications/cus_peripheral_hr/build/zephyr/dts.cmake C:\nordicNCS\v2.0.0\nrf\boards\arm\nrf5340_audio_dk_nrf5340\nrf5340_audio_dk_nrf5340_cpuapp_defconfig:78: warning: attempt to assign the value 'y' to the undefined symbol HW_CODEC_CIRRUS_LOGIC Parsing C:/nordicNCS/v2.0.0/zephyr/Kconfig Loaded configuration 'C:/nordicNCS/v2.0.0/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig' Merged configuration 'c:/nordicNCS/Custom_Applications/cus_peripheral_hr/prj.conf' Merged configuration 'C:/nordicNCS/Custom_Applications/cus_peripheral_hr/build/zephyr/misc/generated/extra_kconfig_options.conf' error: Aborting due to Kconfig warnings CMake Error at C:\nordicNCS\v2.0.0\zephyr\cmake\modules\kconfig.cmake:290 (message): command failed with return code: 1 Call Stack (most recent call first): C:\nordicNCS\v2.0.0\zephyr\cmake\modules\zephyr_default.cmake:121 (include) C:\nordicNCS\v2.0.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:51 (include) C:\nordicNCS\v2.0.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:81 (include_boilerplate) c:\nordicNCS\Custom_Applications\cus_peripheral_hr\build\CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\nordicNCS\toolchains\v2.0.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\nordicNCS\toolchains\v2.0.0\opt\bin\python.exe' '-Bc:\nordicNCS\Custom_Applications\cus_peripheral_hr\build' '-Sc:\nordicNCS\Custom_Applications\cus_peripheral_hr' -GNinja
I went through a couple of forum posts,
I followed this post to changed my intellisense mode and then updated the window. But this does not solve the issue. I have attached the screenshort.
I tried reinstalling Visual studio code and Toolchain manager a couple of times. This doesnot help.
What am I missing? I followed automatic installation proceedure using toolchain manager.
Any help would be highly appreciated.
Thank for your time and effort.
Best regards,
Adarsh