Skip to main content
Yash
Associate
September 2, 2021
Question

USB Device CDC

  • September 2, 2021
  • 1 reply
  • 1101 views

Hello,

I'm using Nucleo l4r5zi-p in which I configured the USB device CDC. When I transmit data using the CDC_Transmit_FS function some time it returns USBD_BUSY, sometimes USBD_OK so because of USBD_BUSY I'm not getting actual speed. But I'm transmitting continuous data then why does it return USBD_BUSY?

Thanks,

Yash

This topic has been closed for replies.

1 reply

Walid ZRELLI
Visitor II
September 13, 2021

Hello @Yash​  ,

It is normal to get the USBD_BUSY status when transmitting data. Could you please provide more details ?

As well, What do you mean by "I'm not getting actual speed" ?

Otherwise, you can refer to the following example : (Path: Projects\STM32L476G-EVAL\Applications\USB_Device\CDC_Standalone )

I hope this help you.

BeST Regards,

Walid

Yash
YashAuthor
Associate
September 14, 2021

Hello Walid,

As per USB CDC configuration, the actual speed is 12Mbit/sec but we got around 360 microseconds per byte. But it should be 0.6 microseconds if the USB is working on 12Mbit/sec.

Regards,

Yash