cancel
Showing results for 
Search instead for 
Did you mean: 

SPC58 StandbyMode : How to enter standby mode?

hans536
Associate III

I use spc58nh-disp develop board.

I want to enter the standbymode. but can't enter.

If i setup SPCSetRunMode(SPC5_RUNMODE_STANDBY0) in main loop, It's behave.

But after i get the RTOS, core0, core1 and core2 working, If i work SPCSetRunMode(SPC5_RUNMODE_STANDBY0), is not working.

what is problem?

ex)

--> standby mode working code

int main(void) {
 
componentsInit();
wkpu_lld_start(&WKPUD1, &wkpu_config_wkup_cfg);
if (SPCSetRunMode(SPC5_RUNMODE_STANDBY0) == CLOCK_FAILED) {
SPC5_CLOCK_FAILURE_HOOK();
}
runCore0();
runCore1();
vTaskStartScheduler();
 
  for ( ; ; ) {  }
}
 
--> standby mode not working code
int main(void) {
 
componentsInit();
runCore0();
runCore1();
wkpu_lld_start(&WKPUD1, &wkpu_config_wkup_cfg);
if (SPCSetRunMode(SPC5_RUNMODE_STANDBY0) == CLOCK_FAILED) {
SPC5_CLOCK_FAILURE_HOOK();
}
vTaskStartScheduler();
 
  for ( ; ; ) {  }
}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

I recommend to use this application (for STOP mode)

SPC58xHxx_RLA WKPU Test Application and customize for your device (STANDBY)

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

I recommend to use this application (for STOP mode)

SPC58xHxx_RLA WKPU Test Application and customize for your device (STANDBY)