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

More consumption with NRF_LOG

Hi, I have a custom board that the actually consumption its 1,5mA with the NRF_LOG enabled.

I have a buzzer that I need to toogle and I need disable the NRF_LOG because if its enabled the buzzer wont work.

But the weird thing its with the NRF_LOG disabled the consumption its higger (2,5mA) and I have research and the 

"normal behavior" must be the contrary (NRF_LOG_DISABLED = low consumption, NRF_LOG_ENABLED = high consumption)

I have tested to disable uart to but nothing works. 

Can you help me please ? why its the consumption higger with the nrf_log enabled ??

Thanks! 

Parents Reply
  • this is my main loop : 

    for (;;) {
    if (isConfigured) {
    if (oneShootBoolean) {
    err_code = app_timer_start(global_timer, UPDATE_1_MS, NULL);
    APP_ERROR_CHECK(err_code);
    oneShootBoolean = false;
    }
    idle_state_handle();
    if (isConnected) {
    toogle_modes(CONNECTED);
    } else {
    toogle_modes(DISCONNECTED);
    }
    }
    }
    }

    and in the idle_state_handle() y have added another function, here is :
    static void idle_state_handle(void) {
    if (NRF_LOG_PROCESS() == false) {
    nrf_pwr_mgmt_run();
    sd_app_evt_wait();
    }
    }
    thanks !!
Children
Related