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

Unable to get logging running

Hello!

I have been trying to get logging functions to work. Looking at previous threads I have enabled the the following macros in sdk_config.h:

NRF_LOG_BACKEND_UART_ENABLED 1

NRF_LOG_ENABLED 1

UART_CONFIG_LOG_ENABLED 1

My SDK version is 14.something.

I can see the JLink CDC port in my device manager and use the default baud rate of 115200 defined in the sdk_config.h file. My terminal is TeraTerm. 

Still no luck seeing any log message. I use the following API to log:

NRF_LOG_INFO("Hello\n");

I see that the TX pin (6) on my dev board is always high, i.e. no UART traffic.

My initialization code is

ret_code_t err_code = NRF_LOG_INIT(NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_DEFAULT_BACKENDS_INIT();

and my forever loop is:


        if (NRF_LOG_PROCESS() == false)
        {
            power_manage();
        }

Any clues on how to get this to work?

Parents Reply Children
No Data
Related