I'm experimenting with native USB in STM32. I've not found any "step by step", or a little more well structured tutorial, how to implement CDC or mass storage for example. I've found some examples, but would be better some explanation too.
Could you recommend me some nice descriptions about these stuffs?
Best Answer
Alright, at first, you have to know that we cannot to explain to you that how the USB works or how you can use it (because that's too broad) but we can give you some clue until yourself understand it.
This serial bus is organized in a star topology with host and device roles, host organizing the traffic.
Several device classes are specified, in order to ease communication in different application cases. you can see them here. they are:
For using the USB you can use some middleware stack. for example: CMX, EUROS, Express Logic, HCC, Keil/ARM, Micrium and etc
I just can see one of them that is free. take a look in this link and downlaod the ST USB stack (USB FS device library, USB FS&HS Host&Device lib, Continua USB certified stack). by this Stack and it's documentations, you can use it easily and if you want to know what's going on when you use it, you can see to the source and header files.
I hope this quick consultation will help you.