I’m looking for a well documented USB peripheral basically with some good tutorials. Thanks!!
You can find explained upper USB layer (functions) for any device, but not explained source code examples on lower level (for example like
this).
I didn't know anything about USB, and books only confuse me more, so I take source code of MSP430 USB stack, and inserted (UART) logs everywhere. At the end I wrote my own USB stack from zero in assembler. I am using CDC.
Later I switched to Kinetis devices, and done it again, for CM0+ from zero in assembler. MSP430 USB experience help me, but every USB hardware module is different animal, so it was far from copy/paste. I selected Kinetis because I need dual supply (USB module 3.3V supply is different from VDD) and some other things, but identical USB hardware module can be found in Microchip/Atmel devices.
Original USB stack source code (for every vendor I know) is bloated and hard to read. And AFAIK, you can find in USB stack from any vendor, USB mass storage device class open source example.