USB composite device (CDC+HID) with STM32

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Mazen21
Posts: 1
Joined: Sat May 25, 2013 7:52 pm

USB composite device (CDC+HID) with STM32

Post by Mazen21 »

Hello everyone,
I'm trying to make a composite (HID+CDC) USB device using the USB-FS library. I've managed to make each one work independently but they don't seem to work together.
Has anyone any idea about what files to modify in addition to the descriptor file.
I can share my code if you want to,
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: USB composite device (CDC+HID) with STM32

Post by RoccoMarco »

Hi,
I think, if both HID and CDC use the same USB drive the only way to make them work together is that everyone acquires and releases the bus in rotation. So, try to coordinate operations rather than manage them independently. It's just a suggestion, I'm not sure that this can solve the problem.

Regards
Rocco Marco
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: USB composite device (CDC+HID) with STM32

Post by Giovanni »

@RoccoMarco, the USB does not work that way.

@Mazen21, are you using the ST library? if so you question is not related to ChibiOS but this is OK, posting code and information would increase the chance that somebody would be able to help you. You may also try the ST forum for questions regarding their libraries.

Giovanni
Post Reply