Skip to main content
Visitor II
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?

    This topic has been closed for replies.

    4 replies

    Super User
    July 29, 2025
    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

    shivssAuthor
    Visitor II
    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
    shivssAuthor
    Visitor II
    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

     

     

    shivssAuthor
    Visitor II
    August 4, 2025

    Hi,

     yes am using LSE 

    shivss_0-1754296803961.png