cancel
Showing results for 
Search instead for 
Did you mean: 

Standby mode repeatedly enters

THwna.1
Associate

I am currently trying to read the data in flash memory after waking up using rtcalarm in standby mode.

However, waking up via rtcalarm in standby mode works normally, but I feel like the code is starting all over again.

Is there a way to execute the rest of the code after standby mode?

I attached the image of the standby mode function code I wrote.

0693W00000WHwZuQAL.jpg 

2 REPLIES 2
TDK
Guru

What STM32?

Standby mode generally turns core off, which unloads registers. You can't resume from where it went to standby. Check RCC->CSR bits on startup to determine if the code is waking up from standby.

Use sleep if you want to pause execution while waiting for an event.

If you feel a post has answered your question, please click "Accept as Solution".