Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART Logging without resorting to including legacy folder

Hello,

I am very new to evaluating the nrf52-dk board, so I hope this is not too much of a trivial question.

I was trying to enable logging via UART without having to resort to include the legacy folder (namely nrf_drv_uart.h). However all examples I came across include this folder.

Can you please give me a rundown of what I need to do to enable logging without using legacy code?

  • Hi Skusku, 

    I assume you are using SDK v15.x and you want to use nrfx library instead of the "legacy" library ? 

    Unfortunately,currently the logging module only support nrf_drv_uart not nrfx. It's possible to write a new nrf log backend to use nrfx_uart instead of the nrf_drv_uart (replacing nrf_log_backend_uart.c). But we don't have that for now. 

    Another option you can think of is to use RTT logging instead of UART. 

Related