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

Low Power Current Consumption in NRF52832

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;
}
}
}
}

Parents Reply
  •  I checked it, uart pins configured with no pullup and other two pins are outputs. Even I tried to check the current Consumption by removing all code except power management  and in for loop ideal_state function which mostly used for enter in the System ON low power but current still same 230uA. Here is the pins attached with chip but I’m just using uart and 31,22,3 pins 

Children
Related