Skip to main content
hans536
Associate III
July 17, 2023
Solved

SPC58 StandbyMode : How to enter standby mode?

  • July 17, 2023
  • 1 reply
  • 1331 views

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.
Best answer by Erwan YVIN

I recommend to use this application (for STOP mode)

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

1 reply

Erwan YVIN
Erwan YVINBest answer
ST Technical Moderator
August 28, 2023

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.