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

UART debug logger

Hello,

I am using SDK v12.1.0 and I want to get the debug logs over UART

I followed the Logging Sink Configuration to enable UART logging and compiled the Health Thermometer Service example, which has statement like NRF_LOG_INFO but I don't see any logs on UART

What am I doing wrong?

Do I need make any more changes? To the Makefile, for example? (I am using gcc + makefile to build)

  • Hi,

    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

  • Thanks!

    I had missed NRF_LOG_ENABLED 1 in sdk_config.h

    The learning curve to the SDK seemed pretty daunting, but the more I learn about it, the more I like how it's organised!!