DocID018909 Rev 11
RM0090
USB on-the-go high-speed (OTG_HS)
1529
Refer to
Section: Memory map
for the register boundary addresses.
35.13 OTG_HS
programming
model
35.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:
0xB50
OTG_HS_DO
EPTSIZ2
Reserved
RXDPID/
STUPCNT
PKTCNT
XFRSIZ
Reset value
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
0xB54
OTG_HS_DO
EPDMA2
DMAADDR
Reset value
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
0xB5C
OTG_HS_DO
EPDMAB2
DMABADDR
Reset value
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
0xB70
OTG_HS_DO
EPTSIZ3
Re
se
rved
RX
DPID
/
S
T
UP
CN
T
PKTCNT
XFRSIZ
Reset value
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
0xB74
OTG_HS_DO
EPDMA3
DMAADDR
Reset value
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
0xB7C
OTG_HS_DO
EPDMAB3
DMABADDR
Reset value
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
0xE00
OTG_HS_PC
GCCTL
Reserved
PHY
S
USP
Reserved
GA
T
E
HCLK
STP
P
CLK
Reset value
Table 210. OTG_HS register map and reset values (continued)
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0