Otg_Hs Programming Model; Core Initialization - ST STM32F207 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F207 Series:
Table of Contents

Advertisement

USB on-the-go high-speed (OTG_HS)
Table 168. OTG_HS register map and reset values (continued)
Offset
Register
OTG_HS_DO
EPDMAB1
0xB3C
Reset value
0
OTG_HS_DO
EPTSIZ2
0xB50
Reset value
OTG_HS_DO
EPDMA2
0xB54
Reset value
0
OTG_HS_DO
EPDMAB2
0xB5C
Reset value
0
OTG_HS_DO
EPTSIZ3
0xB70
Reset value
OTG_HS_DO
EPDMA3
0xB74
Reset value
0
OTG_HS_DO
EPDMAB3
0xB7C
Reset value
0
OTG_HS_PC
GCCTL
0xE00
Reset value
Refer to
30.13

OTG_HS programming model

30.13.1

Core initialization

The application must perform the core initialization sequence. If the cable is connected
during power-up, the current mode of operation bit in the Core interrupt register (CMOD bit
in OTG_HS_GINTSTS) reflects the mode. The OTG_HS controller enters host mode when
an "A" plug is connected or peripheral mode when a "B" plug is connected.
This section explains the initialization of the OTG_HS controller after power-on. The
application must follow the initialization sequence irrespective of host or peripheral mode
operation. All core global registers are initialized according to the core's configuration:
1204/1381
0
0
0
0
0
0
0
0
PKTCNT
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
PKTCNT
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Section 2.3: Memory map
DMABADDR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
DMAADDR
0
0
0
0
0
0
0
0
0
DMABADDR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
DMAADDR
0
0
0
0
0
0
0
0
0
DMABADDR
0
0
0
0
0
0
0
0
0
Reserved
for the register boundary addresses.
RM0033 Rev 9
0
0
0
0
0
0
0
0
0
XFRSIZ
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
XFRSIZ
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RM0033
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F207 Series and is the answer not in the manual?

Questions and answers

Table of Contents