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

the problem about go into low power mode

board: custom board nrf52840

IDE:                          keil5

SoftDevices:             s140 V6.0.0

SDK:                        15.0.0

hi, I want to decrease my consumption of my board.

Now, i enable the SoftDevices and call sd_app_evt_wait(), the consumption is 12.4 uA. but from the 52840 manual we can know that the consumption should be 1.3 uA in on mode without ram retention.

and then, I close ram retention by call "ret_code = sd_power_ram_power_clr(i, 0x00030003);" , but it's no effect, the consumtion still is 12.4 uA. 

by debug mode, I get the "ret_code" is not "NRF_SUCCESS", it's 2. can anyone tell me what this ret_code = 2 means? or how to decrease consumption to 1.3 uA?

this is my code:

u32 ret_code = 0;
void pwr_init()
{
	int i;
	
	for(i=0; i<8; i++)
	{
		ret_code = sd_power_ram_power_clr(i, 0x0UL);
		ret_code = sd_power_ram_power_clr(i, 0x00030003);
	}
	ret_code = sd_power_ram_power_clr(8, 0x0UL);
	ret_code = sd_power_ram_power_clr(8, 0x003f003f); 
	// I don't want to recover anthing from low power mode, it's will reset
}

int main(void)
{
	pwr_init();
	dev_init();
	ble_stack_init(); // a custome function, it will enable softdevice.
	for (;;)
	{
    	sd_app_evt_wait();
	}
}

Parents Reply Children
No Data
Related