I'm using ble_uart_app and wanna Low Power Current Consumption but its consuming 330uA. disabled the nrf_log form sdkconfig file. main code is below. Please let me know what else need to be disabled to get lowest current.
int main(void)
{
bool erase_bonds;
sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
NRF_POWER->DCDCEN = POWER_DCDCEN_DCDCEN_Enabled;
nrf_gpio_cfg_input(31, NRF_GPIO_PIN_PULLUP );
nrf_gpio_cfg_output(22);
nrf_gpio_cfg_output(3);
nrf_gpio_pin_write(22, 0);
nrf_gpio_pin_write(3, 0);
// Initialize.
uart_init();
while(update_string){
if(strcmp(rec_adv_str, NULL) !=0){
strcpy(adv_string, DEVICE_NAME);
strcat(adv_string, rec_adv_str);
break;
}
}
timers_init();
ble_stack_init();
gap_params_init(adv_string);
gatt_init();
services_init();
advertising_init();
conn_params_init();
//Start execution.
advertising_start();
for (;;)
{
if((nrf_gpio_pin_read(BLE_DEEPSLEEP_PIN_MONITOR) == 0)){
app_uart_close();
power_manage();
init_comm = true;
}
else{
if(init_comm){
uart_init();
init_comm = false;
}
}
}
}