5 years, 4 months ago.

Want to send date over USB device at 3Mbps to 5Mbps suggest which class should I use on F401RE?

Hi All,

On F401RE I want to send data over USB at 3Mbps to 5Mbps. I think HID will not be useful for such application.

There will be two another thread which read and write USB data on I2C.

Kindly suggest which class I can use.

Thank,

Regards, Chinkit

Are you sure you have the correct speed? Official USB2 tops out at around 480 megabits per second. You would need a very powerful platform to handle the data at 1.175Gbs not sure if Mbed has those?

posted by Paul Staron 14 Dec 2018

Hi Paul Staron,

Yes nailed it correctly so correct the question. I want to communicate at 3Mbps to 5Mbps and payload size can change.

Please suggest applicable USB Class which can be used for such communication. Thanks.

Best regards, Chinkit

posted by Chinkitkumar Parmar 15 Dec 2018

2 Answers

5 years, 4 months ago.

Here's ST's USB Mbed api:

https://os.mbed.com/teams/ST/code/STM32_USBDevice_Serial/

This will give you access to USB communications to a range of devices:

https://os.mbed.com/users/mbed_official/code/USBDevice/docs/tip/

Hi Paul,

Thanks for your inputs, I am trying to send 64 byte at 1ms to check number pf packet can be send in that interval.

I am getting below error in 8-10 sec interval or earlier.

"mbed assertation failed: ret!=HAL_BUSY, file: /src/USBDevice/targets/TARGET_STM/USBHAL_STM32.cpp, line 257"

Please help on this

posted by Chinkitkumar Parmar 31 Dec 2018
5 years, 4 months ago.

The good thing about using the CDC (USBDevice_Serial) is that no driver is needed for either Windows or Linux hosts. I takes a little bit of effort to get Windows to move lots of data, but you can Google it.