hello help me please
I am using "extended_sleep" demo (DA1468x_DA15xxx_SDK_1.0.10.1072)
i need use 1v8p when it working . And i need turn off 1v8p when enter "pm_mode_extended_sleep"
but use function "pm_set_sleep_mode(pm_mode_extended_sleep)" can not close 1v8p.
i find in "sys_power_mgr.c" file ->"apply_wfi" function only close power when "pm_mode_hibernation"
line 1510-------------------------------------------------------------------------------
if (pm_current_sleep_mode == pm_mode_hibernation) {
/* Turn off 1V8 and 1V8P since the system will
* resume either by recharging the battery (where a
* reset/reboot will be issued on the occurrence of
* VBUS_IRQn) or by replacing the battery.
*/
hw_cpm_ldo_io_ret_off();
}
------------------------------------------------------------------------------------------
so ,i add a function when sleep mode to close 1v8p as follows
----------------------------------------------------------------
if (pm_current_sleep_mode == pm_mode_extended_sleep) {
/* Turn off1V8P */
uint32_t reg = CRG_TOP->LDO_CTRL2_REG;
if (dg_configUSE_BOD == 1) {
REG_CLR_BIT(CRG_TOP, BOD_CTRL2_REG, BOD_1V8_PA_EN);
}
REG_SET_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_RET_DISABLE, reg, 1);
REG_CLR_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_ON, reg);
REG_SET_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_RET_DISABLE, reg, 1);
CRG_TOP->LDO_CTRL2_REG = reg;
}
----------------------------------------------------------------
but Strange things have happened
look following picture is 1v8p when sleep enter:
i can not up picture
That is to say, although it enters the sleep mode, it does not stop automatically opening 1v8p and then automatically shuts down.
Power consumption jumps at 0.5ma and 0.15ma...
how to solution this problem ?
thanks very much!

thanks very much i solution this problem,
i put every "dg_configPOWER_1V8P == 1 " add my flag "(dg_configPOWER_1V8P == 1)&&(shut_down_1v8P_Power == false) "
then when i enter sleep mode ,I put this flag in position 1 ,and the 1v8p shut down.
But the library function does not close the 1v8p function.
Suggested to add in the future sdk~
Hi There,
Thanks for your indication.
Regards, PM_Dialog