Skip to main content
Visitor II
January 9, 2020
Solved

Does STM32F103C8T6 support composite USB device(CDC + HID) ?

  • January 9, 2020
  • 1 reply
  • 1493 views

I am doing a project on STM32F013C8T6 MCU Where i need some USB functionality.

I am bit confused in many STM32 MCUs.

So I need some suggestion. which one i should buy.

My requirements are as following.

1: My STM MCU should work as USB Host and Client.

2: MY STM MCU should be capable to make composite USB device(1CDC + 2HID) or any other USB class.

Note : I have successfully implement a project where keyboard+Mouse+Point of Scale are all together as custom HIDs on my STM32F103C8T6.

Let me Know if you can help me in anyway or any Query about my Question.

Thanks & Regards

@Vivek Yadav

    This topic has been closed for replies.
    Best answer by waclawek.jan

    The USB module in 'F103 is Device only, i.e. you can't use it as Host.

    You may want to have a look at the OTG USB module which is present in 'F105/'F107, 'F2xx, 'F4xx, 'F7xx and the upper-end 'L4.

    Composite device is matter only of software (if there are enough endpoints of course) - you have to construct the configuration descriptor so that it includes both (or all) classes (marking them by the IAD descriptor), and then handle all the respective requests. I don't know if there are usable examples in Cube or if this is clickable in CubeMX, I don't use Cube/CubeMX.

    JW

    1 reply

    Super User
    January 9, 2020

    The USB module in 'F103 is Device only, i.e. you can't use it as Host.

    You may want to have a look at the OTG USB module which is present in 'F105/'F107, 'F2xx, 'F4xx, 'F7xx and the upper-end 'L4.

    Composite device is matter only of software (if there are enough endpoints of course) - you have to construct the configuration descriptor so that it includes both (or all) classes (marking them by the IAD descriptor), and then handle all the respective requests. I don't know if there are usable examples in Cube or if this is clickable in CubeMX, I don't use Cube/CubeMX.

    JW

    Visitor II
    January 9, 2020

    Thank you @Community member

    your answer is very much clear to me.