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

Adding uart functionality in gpiote example

Hi, I'm learing how to use the NRF51 DK and I'm trying to modify the app GPIOTE example including the uart functionality. I insert in GPIOTE the directive:

#include "app_uart.h"

and then I insert the folder in the include path in the option of the code, so it compile. But when in the code I call the APP_UART_FIFO_INIT or the APP_UART_INIT as I see in the uart example, the compiler give me the following error:

._build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_uart_init (referred from main.o).

What is the problem? How I can solve it?

Parents
  • Do you add the app_uart.c file to your project directory? Try double clicking the nRF_Drivers folder in the project window of Keil and navigate to the app_uart.c file when prompted to add project files. It may possibly located at (sdk/components/drivers_nrf/uart). Hopefully that helps!

  • I added it and it worked but some errors remained as it is.The corresponding .c file is not available in nRF_Drivers folder. The errors are:

    ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_timer_init (referred from uart_spi_master_combo2.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_indication_set (referred from uart_spi_master_combo2.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_init (referred from uart_spi_master_combo2.o).

    Please give any suggestions for this...

Reply
  • I added it and it worked but some errors remained as it is.The corresponding .c file is not available in nRF_Drivers folder. The errors are:

    ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_timer_init (referred from uart_spi_master_combo2.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_indication_set (referred from uart_spi_master_combo2.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_init (referred from uart_spi_master_combo2.o).

    Please give any suggestions for this...

Children
No Data
Related