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

XMC™ Forum Discussions

Ted_Um
Level 1
First question asked First like given 5 sign-ins
Level 1

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 Reply
Aashita_Raj
Moderator
Moderator 250 replies posted 250 sign-ins 100 replies posted
Moderator

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