This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Blinking LED application - no gpio.h

https://devzone.nordicsemi.com/f/nordic-q-a/46388/nrf9160-dk---make-application-from-scratch

I followed the steps from user: Aakash_Soni on this thread. However, when I go to build zephyr/zephyr.elf I get the following error message: gpio.h: No such file or directory. I do have a gpio.h file in this folder: \ncs\v1.2.0\zephyr\include\drivers. In addition, I tried moving the gpio.h file into my src file but did not work.

Parents
  • Hello, 

    Please note that it is a fairly old thread, and that there have been several improvements since then.

    Are you working on NCS v1.2.0? Can you provide more information about your project, e.g. prj.conf, main.c, etc? 

    You write that you are trying to include from this folder: \ncs\v1.2.0\zephyr\include\drivers, however, gpio.h is found here: \ncs\zephyr\include\drivers\gpio.h. Looks like there is an issue with your NCS path.

    Kind regards,
    Øyvind


     

Reply
  • Hello, 

    Please note that it is a fairly old thread, and that there have been several improvements since then.

    Are you working on NCS v1.2.0? Can you provide more information about your project, e.g. prj.conf, main.c, etc? 

    You write that you are trying to include from this folder: \ncs\v1.2.0\zephyr\include\drivers, however, gpio.h is found here: \ncs\zephyr\include\drivers\gpio.h. Looks like there is an issue with your NCS path.

    Kind regards,
    Øyvind


     

Children
Related