Skip to main content
MBuen.1
Senior
June 1, 2022
Solved

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

  • June 1, 2022
  • 3 replies
  • 3686 views

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.
Best answer by MBuen.1

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

3 replies

Piranha
Principal III
June 1, 2022

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
June 8, 2022

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
June 8, 2022

>>..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 VenmoUp vote any posts that you find helpful, it shows what's working..
MBuen.1
MBuen.1Author
Senior
June 10, 2022

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
July 19, 2022

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