Hello Jingjing Zhou
Thank You for the follow up.
Here is the stub of code.
__disable_irq();
g_xtal0ClkFreq = 0U;
g_xtalRtcClkFreq = 0U;
OSA_Init();
power_mode_switching_init( );
CLOCK_SYS_Init( g_defaultClockConfigurations, 2,
&clockCallbackTable, ARRAY_SIZE(clockCallbackTable));
power_manager_error_code_t ret;
clock_manager_error_code_t retclk = CLOCK_SYS_UpdateConfiguration( CLOCK_CONFIG_INDEX_FOR_VLPR, kClockManagerPolicyForcible );
ret = POWER_SYS_SetMode( epower_mode_run, kPowerManagerPolicyAgreement );
ret = POWER_SYS_SetMode( epower_mode_vlpr, kPowerManagerPolicyAgreement );
pit0_init();
pit0_start();
__enable_irq();
SMC_HAL_SetPstopMode( SMC_BASE, kSmcPstopStop );
| ret = POWER_SYS_SetMode( epower_mode_vlps, kPowerManagerPolicyAgreement ); |
| |
while(1)
{
}
If I place a brekpoint in the pit0 isr routine I see the service execution. The SLEEPONEXIT is activated,
The while(1) is never reached,
The return value are all successfull...
What is your opinion ???
Thank You