Skip to main content
Visitor II
October 21, 2023
Question

USB host nucleo not working properly

  • October 21, 2023
  • 1 reply
  • 2376 views

Hi all,

 

I am using the Nucleo-L496ZG dev board and am using it as a USB Host communication to communicate with other usb devices.

i am able to communicate USB mouse with nucleo board successfully but when i am trying to read data from other device

for 1st time it is working properly and after that it will be stuck at USBH_URB_NOTREADY on USBH_LL_GetURBState function .

 

it may not worked properly with other devices because that device is not continuously

sending a data just like mouse device , when we send data and it will respond once. so for first time

it gives data properly and then for second time when we trying to send data and on receiving side it gets stuck on USBH_URB_NOTREADY state.

 

So what to do in this i am getting stuck on this please suggest me something in this so that i can proceed.

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 21, 2023

    Why did you generated a duplicate?

    https://community.st.com/t5/stm32cubemx-mcus/usb-host-not-receives-data-from-devices-on-second-time-onwards/td-p/600639

     

    The API of the ST's parody of a USB stack cannot be just called from anywhere. It must be called either from an interrupt of the same priority as USB interrupt, or from a critical section, which blocks the USB interrupt.

    Super User
    October 21, 2023

    ST's parody of a USB stack

    :face_with_tears_of_joy: