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

Cannot output multiple deferred logs (SDK14)

I have found that deferred logs cannot be outputted if they exceed the certain size. I modified "\examples\ble_peripheral\ble_app_blinky" from SDK14. I'm using nRF52 DK with RTT.

In main function...

// Initialize.
leds_init();
timers_init();
log_init();
buttons_init();
ble_stack_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
conn_params_init();

// Start execution.
NRF_LOG_INFO("\r\n1 Blinky example started.");
NRF_LOG_INFO("2 Blinky example started.");
NRF_LOG_INFO("3 Blinky example started.");
NRF_LOG_INFO("4 Blinky example started.");
NRF_LOG_INFO("5 Blinky example started.");
NRF_LOG_INFO("6 Blinky example started.");
NRF_LOG_INFO("7 Blinky example started.");
NRF_LOG_INFO("8 Blinky example started.");
NRF_LOG_INFO("9 Blinky example started.");
NRF_LOG_INFO("10 Blinky example started.");
NRF_LOG_INFO("11 Blinky example started.");
NRF_LOG_INFO("12 Blinky example started.");
NRF_LOG_INFO("13 Blinky example started.");
NRF_LOG_INFO("14 Blinky example started.");
NRF_LOG_INFO("15 Blinky example started.");
NRF_LOG_INFO("16 Blinky example started.");	
NRF_LOG_INFO("17 Blinky example started.");		
NRF_LOG_INFO("18 Blinky example started.");		
NRF_LOG_INFO("19 Blinky example started.");			
NRF_LOG_INFO("20 Blinky example started.");			
advertising_start();

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

The problem is that all the logs after "12 Blinky example started." cannot be outputted. How can I output the whole log after 12 ? I tried to insert NRF_LOG_FLUSH() but it had no effect. ble_app_blinky - mod.zip

RTT Log is ...

 0> <info> app: 
 0> 1 Blinky example started.
 0> <info> app: 2 Blinky example started.
 0> <info> app: 3 Blinky example started.
 0> <info> app: 4 Blinky example started.
 0> <info> app: 5 Blinky example started.
 0> <info> app: 6 Blinky example started.
 0> <info> app: 7 Blinky example started.
 0> <info> app: 8 Blinky example started.
 0> <info> app: 9 Blinky example started.
 0> <info> app: 10 Blinky example started.
 0> <info> app: 11 Blinky example started.
 0> <info> app: 12 Blinky example started.

in sdk_config.h ..

#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_ENABLED 1
#define NRF_LOG_DEFERRED 1
#define NRF_LOG_BUFSIZE 1024
Related