hello,
i'm running an LPC4357 @ 204 MHz, trying to enter sleep mode with ccu1 and ccu2 powered down using the
LPCOpen example:
// use powerdown bit in ccu
LPC_CCU1->PM = 1;
LPC_CCU2->PM = 1;
// set base clk's to IRC
__WFI();
no matter what i do, running with the debugger or without, the board gets stuck before entering sleep mode after the
ccu's powerdown.
any suggestions?
Hi ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
The core clock is shut down after clear the PD bit in LPC_CCU1->PM register, definitely, it will cause the code to be stuck.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
thanks for the fast response.
i do not quite follow, what clock is shut down? to what do you refer by 'core clock'?
is at all possible to use the PD bit to reduce power consumption with the __WFI() ?
thanks.