Skip to main content
sabari1
Associate III
Apr 19, 2024 1:17 PM UTC
Question

STM32U5 sleep

hi all,

i am developing a project using stm32u585 microcontroller which can connect to the external devices using ethernet and USB protocols.

i need to put the controller in sleep or any low power mode when ever a sleep command is reached through the USB communication and its need to be wake up when any command through the USB. i am new to the controller sleep part .is it possible to implement this if so can anyone please give some reference regarding the same.

and am using azure RTOS environment for the development(threadx,netx,usbx).

the same needs to implement on ethernet side as well since i am using an external chip for the ethernet and its using and external interrupt for transmitting and receiving data i can use that in case of ethernet.   

but in case of USB i didn't got any reference to work with any low power mode of the controller. (need to use the commands send through USB for put into sleep as well as wakeup from sleep).

any reference regarding it will be a great help.

with regards 

sabarinath

 

This topic has been closed for replies.

3 replies

ST Technical Moderator
Apr 26, 2024 10:06 AM UTC

Hello @sabari1 

In the STM32Cube firmware U5, you will find examples demonstrating the process of putting the system into sleep mode and subsequently waking it up. Please consult this example for guidance.

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
Senior
Jun 24, 2025 11:03 AM UTC

Yes, there are examples, with physical buttons... but not with USBX and Azure RTOS. So it doesn't help.

Senior
Jun 24, 2025 11:05 AM UTC

Did you have further updates, regarding this issue? I am having a similar problem, I want to wake up from sleep through any USB data coming in.