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

NRF LOG not working in ble_app_uart example

I'm using nrf52 with S132. I was trying ble_app_uart example and it is not printing any log messages into the COM. Do I need to do anything extra to make it work?

  • Hi,

    Since the UART peripheral is in this example used by the application directly, it’s not recommended to use it as a backend for the nrf_log also, since there is no mechanism for managing access to uart. The option to select the UART as nrf_log backend in the ble_app_uart example is therefore removed in SDK 14.

    You should therefore instead use the Seggert RTT viewer to view the nrf_log messages.

    Make sure that you have the NRF_LOG_PROCESS() in the main loop.

    // Enter main loop.
    for (;;)
    {
        if (NRF_LOG_PROCESS() == false)
        {
            power_manage();
        }
    }
    

    and open the program J-Link RTT Viewer to view the log messages.

Related