Page 1 of 1

USB composite device (CDC+HID) with STM32

Posted: Sat May 25, 2013 8:01 pm
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,

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

Posted: Sun May 26, 2013 11:47 am
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

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

Posted: Sun May 26, 2013 12:30 pm
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