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

Adding UART support to app_template requires include app_uart.c

I've been trying to add UART support from the uart example to the ble_app_template example. I've enabled all the required drivers and options in sdk_config.h and included the same header files as in the other example but I'm receiving these errors for the uart functions I'm using: "undefined reference to app_uart_get" and "undefined reference to "app_uart_init".

Though when I also include app_uart.c alongside app_uart.h, the error fades away. Is there a simple explanation for this? I'm using SEGGER Embedded studio and have added "../../../../../../components/libraries/uart" in the user includes. I'm using SDK 15.3 on OSX, alongside an nRF52840 PCA10056.

Parents Reply Children
Related