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

Compilation error undefined reference to app_uart_unit

I am working on  ble_app_blinky  trying to add the capability to transmit data to another device(e.g Arduino).I have already enabled APP_FIFO_ENABLED ,APP_UART_ENABLED  and UART0_ENABLED in sdk_config.h I have also included all the necessary Uart files in main.c but when I compile I get an error Undefined reference to app_uart_init. in main.c APP_UART_FIFO_INIT()   . I am using SDK 15.2.0. What am I doing wrong here?

I have attached main.c and  sdk_config.h below

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Copyright (c) 2015 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sdk_config.h