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.

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\].

  • Hey Martin,

    Thanks, there is no error now. I'm using the SPIS code from SDK14.2 . I wanted to see the received data on my com port, but I couldnt even after enabling the Nrf_Log_Enable in the sdk_config.h

  • You must also enable the log in sdk_config.h. Make sure that you have NRF_LOG_ENABLED 1 and NRF_LOG_BACKEND_SERIAL_USES_UART 1.

    To view or write data over the Virtual COM Port, you need a terminal program, such as Termite. You can download Termite here

    Remember to select the correct settings in Termite

Reply
  • You must also enable the log in sdk_config.h. Make sure that you have NRF_LOG_ENABLED 1 and NRF_LOG_BACKEND_SERIAL_USES_UART 1.

    To view or write data over the Virtual COM Port, you need a terminal program, such as Termite. You can download Termite here

    Remember to select the correct settings in Termite

Children