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

Hey folks! I have a problem here! I'm using "app_uart.h" but it throws an error saying no such file or directory

Makefile(/attachment/ca6852bdad7b5e54aaa4ce4388c4c410)Please find my code attached!!!

I have changed the makefile and the SDK config file accordingly! but the error remains constant!

  • Hi,

    You have the following path added to your include folders in your Makefile:

    $(SDK_ROOT)/components/libraries/uart/app_uart \
    

    Are you sure the header file app_uart.h is located in this path? This folder is not present in the SDK, the header file is located directly in:

    $(SDK_ROOT)/components/libraries/uart \
    

    Note that you will also have to include the source file in your Makefile, if you want to use app_uart (this is for the FIFO variant):

    SRC_FILES += \
      $(SDK_ROOT)/components/libraries/uart/app_uart_fifo.c \
    

    Best regards,

    Jørgen

Related