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

Adding libraries to BLE_app_blinky "error"

Hi all,

I am trying the port the peripheral UART example to the BLE_app_blinky and adding the respective libraries that are missing in the BLE app.

after I included the libraries I have 4 scenarios:

1.5)

compiling system_nrf52.c...
compiling softdevice_handler.c...
linking...
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_uart_get (referred from main.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_uart_init (referred from main.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_uart_put (referred from main.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 3 error messages.
".\_build\nrf52832_xxaa.axf" - 3 Error(s), 0 Warning(s).
  1. I was able to compile but at first I got a fatal error coming from the nRF52 (I have the nRF52 connected via Termite)

  2. I got 5 errors and I am unable to compile:

    ._build\nrf52832_xxaa.axf: Error: L6200E: Symbol app_uart_get multiply defined (by app_uart_fifo.o and app_uart.o). ._build\nrf52832_xxaa.axf: Error: L6200E: Symbol app_uart_init multiply defined (by app_uart_fifo.o and app_uart.o). ._build\nrf52832_xxaa.axf: Error: L6200E: Symbol app_uart_put multiply defined (by app_uart_fifo.o and app_uart.o). ._build\nrf52832_xxaa.axf: Error: L6200E: Symbol app_uart_close multiply defined (by app_uart_fifo.o and app_uart.o). ._build\nrf52832_xxaa.axf: Error: L6200E: Symbol app_uart_flush multiply defined (by app_uart_fifo.o and app_uart.o). Not enough information to list image symbols. Not enough information to list the image map.

  3. If I remove the PATH for fifo library:

    compiling app_fifo.c... compiling app_uart_fifo.c... ............\components\libraries\uart\app_uart_fifo.c(15): error: #5: cannot open source input file "app_fifo.h": No such file or directory #include "app_fifo.h" ............\components\libraries\uart\app_uart_fifo.c: 0 warnings, 1 error compiling app_uart.c...

I am following steps at post "Stefan Birnir Sverrisson" devzone.nordicsemi.com/.../

I am using: nRF52 DK Softdevice $132 ble_app_blinky

Thanks

  • The steps I am following are:

    I include the following:

    #include <stdbool.h>
    #include <stdio.h>
    #include "app_uart.h"
    #include "nrf_delay.h"
    

    adding the .c files:

    image description

    **my PATH**
    

    image description

    I dont know where could be my fault :(

  • Have you enabled the UART in sdk_config.h?(SDK 12/13)

  • Yes, I do.

    I enabled it on

    nRF_Drivers -> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral drive
    

    and

    nRF_Libraries -> APP_UART_ENABLED - app_uart -UART driver
    

    additionally I have enabled the NRF_LOG_ENABLED( can be a issue related?)

  • You have APP_FIFO_ENABLED 1 also?, and maybe RETARGET_ENABLED 1?

  • Take a look at how the uart example in sdk_folder\examples\peripheral\uart is setup/configured

1 2 3 4 5 »