Skip to main content
Associate III
July 29, 2025
Question

stm32u585 sleep

  • July 29, 2025
  • 4 replies
  • 449 views

hi,

 am using stm32u585iot dev board i need all power code stop and shutdown and standby code for that board?

4 replies

Andrew Neil
Super User
July 29, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Technical Moderator
July 29, 2025

 

Hello @shivss 

I recommend you this article explains low-power modes, and provides code examples: Getting started with PWR - stm32mcu

Refer also to the PWR examples within B-U585I-IOT02A board:

STM32CubeU5/Projects/B-U585I-IOT02A/Examples/PWR at main · STMicroelectronics/STM32CubeU5 · GitHub

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
shivssAuthor
Associate III
July 30, 2025

Hi @Imen.D @Andrew Neil 

 

yes B-U585I-IOT02A  this board only .

The examples in GitHub is for switch but I need with RTC timer wakeup

Technical Moderator
July 31, 2025
"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
shivssAuthor
Associate III
July 31, 2025

Hi ,

 its an RTC alarm not RTC Timer wakeup ?  like this?

(HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0, RTC_WAKEUPCLOCK_RTCCLK_DIV16, 0)

 

Technical Moderator
August 1, 2025

Hello @shivss 

Are you using the LSE as RTC clock source ? 

According to the reference manual the RTC remain active only when the RTC clock source is LSE.

Saket_Om_1-1754045697204.png

 

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
shivssAuthor
Associate III
August 4, 2025

Hi,

 yes am using LSE 

shivss_0-1754296803961.png