Skip to main content
H W
Associate II
July 7, 2017
Question

STM32L4 as USB device using STOPx

  • July 7, 2017
  • 3 replies
  • 905 views
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.

    This topic has been closed for replies.

    3 replies

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

    Any ideas ?

    STOne-32
    Technical Moderator
    July 17, 2017
    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
    H WAuthor
    Associate II
    July 18, 2017
    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.