Skip to main content
THwna.1
Associate
November 10, 2022
Question

Standby mode repeatedly enters

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 

This topic has been closed for replies.

2 replies

TDK
November 10, 2022

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""."