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

error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory

Hi,

I am using nRF52832 SDK 11 and even when I add the library on keil it can't find nrf_drv_gpiote.h. As the screenshot shows, it is loaded:

image description

But it says it is not found:

image description

Any idea on how to resolve this issue ?

Thank you in advance for your help,

Parents
  • Hi Bnjroos!

    Make sure that the correct path to the header is added in Keil.
    You can check this by opening the "Options for target", go to the C/C++ tab and make sure that the path to the nrf_drv_gpiote.h is added under "Include paths".
    It should look something like this:

    image description

  • This does not fix the error for me. 

    Here I have added the UART library folder as an include path...

    Uart include directory

    ...this folder indeed contains app_uart.h, the header file in question...

    Contains the needed header file

    ...yet, it fails to find it.

    Yet Keil fails to find the header file.

    I still get the message "..\..\..\..\..\..\components\libraries\uart\app_uart_fifo.c(43): error:  #5: cannot open source input file "app_fifo.h": No such file or directory"

  • It's located in the components\libraries\fifo folder

    So add that to the include paths

Reply Children