cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement OTG FS hardware using embedded PHY on STM32F105/107 microcontrollers

Reza_Jaferi
Visitor

I want to be able to use the DFU1 and OTG2 FS3 functionalities through two micro USB sockets.

So I have a question, which you will see at the end.

My design uses the STM32F105RBT6 microcontroller.

I designed the following schematic, which includes two micro USBs (one for power and one for both power and data). The schematic is separated into two parts to improve readability and display the connections of the microcontroller's power supply block.

Part A:

 

STM32F105RBT6 (UA).png

 

Part B:

 

STM32F105RBT6 (UB).png

 

According to screenshots of the tables that I collected from AN4879 and AN2606, the STM32F105RBT6 microcontroller supports OTG FS and DFU.

 

Supported USB speeds.png

 

Table 3. Supported USB details.png

 

Table 4. USB implementation in STM32 devices.png

 Table 5. USB implementation on STM32 mainstream products.png

 

Table 3. Embedded bootloaders.jpg

 

 

 

 

The OTG FS for STM32F105/107 (which does not support OTG HS4) has an internal PHY5 and a pull-up resistor; thus, I attempted to use section 3.3 of AN4879.

 

Regarding the figure that is presented below:

• The OTG specification requires the use of a capacitor (maximum value 4.7 μF) on VBUS.

• The ESD protection chip, if used, must be placed as close as possible to the USB connector.

• A power switch (such as STMPS2151STR) is required.

• When an overcurrent is detected, the information is sent to the STM32 software, which alerts the user about the issue (it is recommended to route VBUS far from DP/DM).

• The STM32 must always be supplied when the platform is connected as device to a host (in case of dead battery support, the voltage on PA9 must be reduced as explained in Section 2.6).

 

Figure 12. OTG schematic implementation (dual-mode).png

 

 

Also, I found the following schematic from the first version of AN4879 (released on August 10, 2016):

 

Figure 8. OTG schematic implementation on battery-powered application.png

 

My question: Will my hardware schematic design (as you can see, I used two micro USBs with their connections in parallel) work correctly for the purpose I have?

---------------------------------------------------------------------------------------------------------------------------------------------------------

  1. Device Firmware Upgrade
  2. On-The-Go
  3. Full-speed
  4. High-speed
  5. Physical layer

 

0 REPLIES 0