USB composite device(HID + CDC) for XMC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Ted_Um
Level 1
Level 1
Distributor - Uniquest
25 sign-ins First solution authored First reply posted

Hello.

 

I need to use USB composite device (HID + CDC) on XMC4400.

Do you have any sample code for reference?

 

Thank you.

 

Best Regards,

Ted

0 Likes
1 Solution
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @Ted_Um ,

Unfortunately we do not have an example project for XMC 4400 where the USB composite device is implemented. However, there are a bunch of DAVE based USB code examples on XMC 4700 and XMC 4500 which you can have a look at to get started : https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html . For a USB device to act as a composite device, you need to add two different interfaces - one for HID and other for CDC in the device descriptor so that the USB host gets to know about the two functionalities implementation. For the code implementation part, please go through the DAVE code examples for the help and try including the interfaces.

Meanwhile, you can also refer Application Note: Creating a USB Data Logger Application using Middleware and CMSIS  to find some insights on USB composite device.

Please let us know in case of any further query.

Best Regards,

Aashita

View solution in original post

0 Likes
1 Reply
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @Ted_Um ,

Unfortunately we do not have an example project for XMC 4400 where the USB composite device is implemented. However, there are a bunch of DAVE based USB code examples on XMC 4700 and XMC 4500 which you can have a look at to get started : https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html . For a USB device to act as a composite device, you need to add two different interfaces - one for HID and other for CDC in the device descriptor so that the USB host gets to know about the two functionalities implementation. For the code implementation part, please go through the DAVE code examples for the help and try including the interfaces.

Meanwhile, you can also refer Application Note: Creating a USB Data Logger Application using Middleware and CMSIS  to find some insights on USB composite device.

Please let us know in case of any further query.

Best Regards,

Aashita

0 Likes