Skip to main content
MBuen.1
Senior
Jun 1, 2022 1:22 PM UTC
Solved

USB Composite Device, Mass Storage - HID. Is it possible using HAL?

Hello guys,

I've been researching over the internet and in this forum about creating a composite device on STM32WB5M. I need to create a device that has a HID and a mass storage over the same USB. I saw some old posts saying it was not possible but at the same time i saw another posts saying it is possible in some ST microcontrollers. I really would prefer to do that using ST Library, or modifying ST Library if needed.

Could anyone give me any hint, examples or a user manual of how i could begin this development?

This topic has been closed for replies.
MBuen.1
MBuen.1Best answer
Senior
Jul 19, 2022 3:12 PM UTC

Reopening this topic just to say that i got it using ST libraries. Just a new adjusts and it worked. I'll share the link of a guy that wrote about it.

https://sudonull.com/post/68144-CDC-MSC-USB-Composite-Device-on-STM32-HAL

5 replies

Piranha
Principal III
Jun 1, 2022 3:08 PM UTC

Even if it's possible, it's better to use a decent USB stack...

https://github.com/hathach/tinyusb/tree/master/examples/device/cdc_msc

Replace the CDC with some interface from HID examples.

MBuen.1
MBuen.1Author
Senior
Jun 8, 2022 4:50 PM UTC

Thanks for the response! I'll for sure consider this option.

Currently, if it is somehow possible, i would rather use STM32 stack and be able to get ST support on possible issues. Any hint on how i could do that?

Tesla DeLorean
Guru
Jun 8, 2022 7:00 PM UTC

>>..and be able to get ST support on possible issues.

Picturing ST special ops deploying from a C-17, air dropping into support you and your team.

You're probably more likely to meet Tom Cruise in a BlockBuster Video, although there was that time I was in Dollar Video, and Cindy Crawford was there..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MBuen.1
MBuen.1Author
Senior
Jun 10, 2022 2:05 PM UTC

Well.. i dont know about the company you work for or the products you design, but ST support has been very effective for the company i'm currently working for =)

MBuen.1
MBuen.1AuthorBest answer
Senior
Jul 19, 2022 3:12 PM UTC

Reopening this topic just to say that i got it using ST libraries. Just a new adjusts and it worked. I'll share the link of a guy that wrote about it.

https://sudonull.com/post/68144-CDC-MSC-USB-Composite-Device-on-STM32-HAL