Skip to main content
Graduate
May 20, 2024
Question

STOP Mode - USB HID Wakeup

  • May 20, 2024
  • 3 replies
  • 1987 views

hi all and  

@Lubos KOUDELKA 

USB - HID -Keyboard is working fine and keycode coming properly . 

Enter to STOP mode is successful by HAL_SuspendTick()HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

Trying to wakeup from usb keyboard and couldn't catch the callback for adding this  SystemClock_Config (); HAL_ResumeTick(); . what is the exact callback name and where is it    

https://community.st.com/t5/stm32-mcus-embedded-software/stm32l4-usb-wake-up-from-stop0-1/td-p/254687 

https://community.st.com/t5/stm32-mcus-wireless/stm32wb55-wake-up-from-stop-1-mode-with-the-usb-vcp/td-p/203641 

from existing thread  discussion on EXTI 17 line configuration and exactly  where is this   line   

MMARI1_0-1716195704237.png

 

 

    This topic has been closed for replies.

    3 replies

    ST Employee
    May 20, 2024

    Hi,
    checking in STM32CubeMX, to have in NVIC table OTG wake-up EXTI line available

    LubosKOUDELKA_0-1716198351596.png

    You need to allow "Low power" in parameter setting of your USB_OTG_xS device setting

    LubosKOUDELKA_1-1716198445790.png

    Please check this setting and already existing USB examples in F4 family repository, which will guide you which code you need to add.

    Best regards,
    Lubos

    MMARI.1Author
    Graduate
    May 20, 2024

    MMARI1_0-1716199659875.png

    cube ide current version

    MMARI1_1-1716199724398.png

    There is no low power option ? .

    please suggest which F4 family repository USB examples ? 

     

     

    ST Employee
    May 20, 2024

    I see in your configuration Host_only mode. USB suspend is available only for USB device in STM32CubeMX, I also don't see any example showing USB host suspend, as it's very rarely requested.

    MMARI.1Author
    Graduate
    May 20, 2024

    MMARI1_0-1716206950394.png

    Device_Only Mode having low power option !!!!!!!  but as you said Host_Only  mode is suspend the low power option . even i have with checked Cube Mx separately and they also behave same condition . 

    Kind Request : can you please confirm me HOST + HID low power option is there or not ? and HOST + HID STOP mode  wakeup is possible or not ?.

     

    ST Employee
    May 21, 2024

    In OTG_xS peripheral hardware there is support for both USB host or device with low power support for both modes. But in STM32CubeMX configuration or library example only USB device low power support is covered. So you can manage also USB host low power functionality, but more coding effort is required.

    MMARI.1Author
    Graduate
    May 21, 2024

    hi , I do agree i need to manage this . it may be crazy but I try use Device_only low power code in HOST_only mode but some typedef are some functions are different for Host _only Mode .

    this is just a request if share me small  code of Host_Only low power code  (like eclipse or some other c code )   then it's possible to  mange  for time being .

    Hope i can expect HOST_Only low power and USB wakup configuration in coming or future Cube ide update version .