2015-09-10 07:51 AM
Designing STMF405 Board. Bit confused about USB functionality.
We need multi role USB functionality (from one usb connector). The current usb circuit is as shown below.2015-09-11 12:19 PM
> The board should communicate with computer usb (Virtual com port) for data transfer.
> Also, when the board connected to computer, it should appear simply as a usb mass storage device (like usb flash drive).>
>Do I need USB OTG ? As far as I know, it supports multi-role for usb. No. Multi-role means that it can be host or device - not simultaneously, but at different times. For example, some digital cameras, they have only one USB connector; when connected to printer, they act as a host and control the printer; when connected to PC, they act as a device (e.g. mass storage). The expression you are looking for is ''composite device'', see e.g. https://en.wikipedia.org/wiki/USB#System_design second paragraph. It's only a device, you don't need OTG nor dual-role. The STM32F4xx High-Speed OTG USB device is PHY-less (more precisely, its PHY is Full-Speed only), so if you want to use it as High-Speed, you need an extra chip, the High-Speed PHY. That's what is on the EVAL board; but the chip used there is hopelessly obsolete so. JW