- Thu Mar 25, 2021 9:53 am
#224337
AM_HAL_PWRCTRL_MEM_MAX is NOT accepted and return an error. So nothing is happening..
(from am_hal_powercntrl.c) :
(from am_hal_powercntrl.c) :
Code: Select all
I have not tested on 1.2.1 (stopped using that long ago) but will try in the coming days.am_hal_pwrctrl_memory_deepsleep_powerdown(am_hal_pwrctrl_mem_e eMemConfig)
{
if ( eMemConfig >= AM_HAL_PWRCTRL_MEM_MAX )
{
return AM_HAL_STATUS_FAIL;
}
//
// Power down the required memory.
//
PWRCTRL->MEMPWDINSLEEP |= am_hal_pwrctrl_memory_control[eMemConfig].ui32PwdSlpEnable;
return AM_HAL_STATUS_SUCCESS;
}
Regards,
Paul
Paul