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

SPIS Nrf log enabling problem

I'm trying to print received data on my com port but when I set the  "NRF_LOG_ENABLED" as 1 the error below shows up.

.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_log_default_backends_init (referred from main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.

What does it mean?? How would I know what files to include. I then though I could use "printf()" command to do the same but it shows similar error. I included all the files which support uart into it. I'll mention below just to be sure:

In nRF_Drivers:

app_uart_fifo.c

nrf_drv_uart.c

in Libraries:

app_fifo.c

I included the path of those drivers and libraries too.

Parents
  • Hello Mesut,

     What example or template project are you using as starting point?

     I assume that you have read the documentation behind the Logger module?

    I would recommend you to take a look at the "ble_app_uart" example found in: [<SDK_InstallFolder>\examples\ble_peripheral\ble_app_uart ]. 

    Note the files included in the nRF_Log folder and compare your sdk_config.h file to see if you are missing something. I suggest you use the template "sdk_config.h" found in:  [<SDK_InstallFolder>\config\].

Reply
  • Hello Mesut,

     What example or template project are you using as starting point?

     I assume that you have read the documentation behind the Logger module?

    I would recommend you to take a look at the "ble_app_uart" example found in: [<SDK_InstallFolder>\examples\ble_peripheral\ble_app_uart ]. 

    Note the files included in the nRF_Log folder and compare your sdk_config.h file to see if you are missing something. I suggest you use the template "sdk_config.h" found in:  [<SDK_InstallFolder>\config\].

Children
Related