Sample project creation issue

Hi,

Facing some issue in creating sample application in vscode 

nCS sdk V1.7.0, created sample hello world project and added build configuration for bl653_dvk

getting problems in building 

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\CHAMP2\Nordic_App\Nordic_SDK\nCS\VSc2\hello_w\src\main.c).

cannot open source file "zephyr.h"

cannot open source file "sys/printk.h"

CONFIG_OPENOCD_SUPPORT is deprecated

shared screenshot in this case.

can you please help in this ?

Parents Reply
  • Hi Hitesh

    If you got these issues after trying the fixes from previous comments, I suggest you undo these configuration changes.

    Then we can find another solution for your first problems.

    Lets have a look at the error messages from the top of this post:

    cannot open source file "zephyr.h"

    cannot open source file "sys/printk.h"

    I also had these problems.
    Then I reinstalled Visual Studio(VS) Code and the nRF Connect extension for VS Code. This fixed the includePath issue for me.
    To uninstall the VS Code , delete the relevant folders in "C:\Users\USERNAME\.vscode\extensions".

    Is it possible for you to reinstall VS Code?
    If not, try to only delete extensions.

    CONFIG_OPENOCD_SUPPORT is deprecated

    If you still have this problem after the reinstall, we will see if we find a solution for this.

    I'm sorry if this is a bit backwards, but sometimes a fresh start is the easiest way to fix an issue.

    Regards,
    Sigurd Hellesvik

Children
No Data
Related