cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 as USB device using STOPx

H W
Associate II
Posted on July 07, 2017 at 08:06

Hi,

I use a STM32L4x6 with CubeMX 4.21 FW1.8.0 as a USB device. At some points I want to put the MCU in STOPx-Mode.

How do I prepare the USB-Stack before entering STOP-Mode ?

Regards.

3 REPLIES 3
H W
Associate II
Posted on July 17, 2017 at 08:25

Any ideas ?

STOne-32
ST Employee
Posted on July 18, 2017 at 00:36

Dear HW,

To keep USB communication active and following the USB host stacks, you need to use Suspend/ Resume features and remote wake-up if a HID device,  offered  in our Libraries and examples.

Cheers,

STOne-32.

H W
Associate II
Posted on July 18, 2017 at 07:58

Thanks for your reply!

I want to cut the connection from the USB-Device side gracefully and then enter STOP-Mode.

So what functions do I have to call prior entering STOP-Mode? USBD_Stop and USBD_DeInit?

Regards.