2020-01-08 10:59 PM
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
Solved! Go to Solution.
2020-01-09 01:00 AM
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
2020-01-09 01:00 AM
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
2020-01-09 02:02 AM
Thank you @Community member
your answer is very much clear to me.