Skip to main content
hans536
Associate III
Jul 17, 2023 8:26 AM UTC
Solved

SPC58 StandbyMode : How to enter standby mode?

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 ( ; ; ) {  }
}

 

 

This topic has been closed for replies.
Erwan YVIN
Erwan YVINBest answer
ST Technical Moderator
Aug 28, 2023 3:14 PM UTC

I recommend to use this application (for STOP mode)

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

1 reply

Erwan YVIN
Erwan YVINBest answer
ST Technical Moderator
Aug 28, 2023 3:14 PM UTC

I recommend to use this application (for STOP mode)

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.