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

undefined symbol error

hi, i want to add uart function to my application. so i added necessary .c files to my project. if i compile the program i am getting these errors. image description

when i change the values sdk.config.h file

#ifndef APP_UART_ENABLED
#define APP_UART_ENABLED 1
#endif
#ifndef APP_FIFO_ENABLED
#define APP_FIFO_ENABLED 1
#endif

i am getting the error cant open app_fifo.h file.

do i want to make any other changes.

Parents
  • Hi,

    You need to also include app_fifo.c, set#defined APP_FIFO_ENABLED 1 in sdk_config.h, and add the path to app_fifo.h. app_uart is dependet on this library. You also need to do the same for UART driver, if not included already.

    If you are planning to use printf() for output to UART, you also need to include the source file retarget.c, and #define RETARGET_ENABLED 1 in sdk_config.h.

    Best regards,

    Jørgen

Reply
  • Hi,

    You need to also include app_fifo.c, set#defined APP_FIFO_ENABLED 1 in sdk_config.h, and add the path to app_fifo.h. app_uart is dependet on this library. You also need to do the same for UART driver, if not included already.

    If you are planning to use printf() for output to UART, you also need to include the source file retarget.c, and #define RETARGET_ENABLED 1 in sdk_config.h.

    Best regards,

    Jørgen

Children
Related