Skip to main content
Associate III
Jul 29, 2025 3:37 PM UTC
Question

stm32u585 sleep

hi,

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

This topic has been closed for replies.

7 replies

Andrew Neil
Super User
Jul 29, 2025 3:48 PM UTC
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.
ST Technical Moderator
Jul 29, 2025 4:29 PM UTC

 

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

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. Thanks
shivssAuthor
Associate III
Jul 30, 2025 3:01 PM UTC

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

ST Technical Moderator
Jul 31, 2025 8:58 AM UTC
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. Saket_Om
shivssAuthor
Associate III
Jul 31, 2025 4:36 PM UTC

Hi ,

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

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

 

ST Technical Moderator
Aug 1, 2025 10:55 AM UTC

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

 

 

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. Saket_Om
shivssAuthor
Associate III
Aug 4, 2025 8:40 AM UTC

Hi,

 yes am using LSE 

shivss_0-1754296803961.png