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 Children
  • Hi,

    I'm having an issue,
    not able to locate files of sample application added in workspace after modifying as mentioned in above suggestions,

    can see sample application chat and hello world in application section, but not able to see project files below V1.7.0 as attached in the images below,

  • 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

  • Hi Enukic & Sigurd,

    As suggested in previous reply I reinstalled the VScode & all extension and also verified all modifications suggested in previous replies  but it is showing me the error 

    can you please help

  • Hi

    You should not need to make any change to the settings for this to work.

    After I load and build the application, The things you linked look like this in my versio (I did not change any settings manually):

    Do you experience the same if you "open an existing application"?
    Try zephyr/samples/hello_world.

    Regards,
    Sigurd Hellesvik

  • Hi

    I answered two in a row here, so dont miss the other answer.

    If the last suggestion still does not resolve the issue, the following two logs will be helpful:

    Enable Degub C++ logging, and paste any output from the Output tab here.

    Press F1, and run "nRF Connect: Generate Support Information", and paste any output from the Output tab here.

    Regards,
    Sigurd Hellesvik

Related