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,
USB composite device (CDC+HID) with STM32
Moderator: RoccoMarco
- 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
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
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
- 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
@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
@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