GCC, Path for includes and kit to select

Hi there!

I'm trying to set up the VS Code with the nRF Connect extension, but the are some few problems. At first the compiler notified me abot not finding the included files <zephyr/kernel.h>, <zephyr/device.h> and <zephyr/drivers/pwm.h>. After i included the Path for it in the c++ extension in the VS Code, the error disappeared. After the compiler did'nt find the right kit, i searched online and found, that i hat to download the gcc for arm devices (is this correct? if it so, why do i need to install the toolchain???), i included the path in the json file (it was empty at the beginning) and now, when i'm selecting the the downloaded arm compiler, the program says:  bad cmake executable. I did everything like in the installation video here https://www.youtube.com/watch?v=zcMCaODyISo and it still does'nt work.

Parents
  • Hello,

    Thank you for contacting DevZone at NordicSemi.

    Are there other versions or previous installations of gcc / c++, or the cmake etc?

    I you start a fresh, and do not have any previous installations, everything will be installed as in the video.

    May I ask if you have literally followed that installation video?

    Did you complete this step? 

    You can see that all the necessary extensions and tools will be installed.

    If that is not the case, then let me know at what step (after following the video from start) things changed and you received error?

    Note: Sometimes, just building the application would solve different issues that were appearing (specifically the problems which we see in the "problem" tab)

    If there are any errors, that should appear in the Terminal tab during the build process.

    BR,

    Naeem

Reply
  • Hello,

    Thank you for contacting DevZone at NordicSemi.

    Are there other versions or previous installations of gcc / c++, or the cmake etc?

    I you start a fresh, and do not have any previous installations, everything will be installed as in the video.

    May I ask if you have literally followed that installation video?

    Did you complete this step? 

    You can see that all the necessary extensions and tools will be installed.

    If that is not the case, then let me know at what step (after following the video from start) things changed and you received error?

    Note: Sometimes, just building the application would solve different issues that were appearing (specifically the problems which we see in the "problem" tab)

    If there are any errors, that should appear in the Terminal tab during the build process.

    BR,

    Naeem

Children
No Data
Related