Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
626
/
631
Peripherals debug support
When the corresponding bit of the peripheral control bit in the DBG_CTRL register is set to 1, the corresponding
peripheral enters the debugging state after the core stops:
Timer peripheral: the timer counter stops and debugs.
I2C peripheral: the SMBUS of I2C keeps the state and carries out debugging.
WWDG/IWDG peripheral: WWDG/IWDG counter clock stops and debugs.
CAN peripheral: the CAN interface receiving register stops counting and debugs.
DBG registers
DBG register overview
The DBG register map and reset values are listed below. These peripheral registers must be operated as words (32
bits). The base address of the register is 0xE0042000.
Table 27-2 DBG register overview
Offset
Register
31
30
29
28
2
7
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
000h
DBG_ID
S
R
AM
[3:0]
S
E
R
_NU
M
[3:0]
DE
V_N
UM
_L
[3:0]
F
L
ASH[
3:0]
DE
V_N
UM
_H[
3:0]
DE
V_N
UM
_M
[3:0]
R
E
V_N
UM
_H[
3:0]
R
E
V_N
UM
_L
[3:0]
Reset Value
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
004h
DBG_CTRL
Reserved
T
IM
9_S
T
OP
T
IM
7_S
T
OP
T
IM
6_S
T
OP
T
IM
5_S
T
OP
T
IM
8_S
T
OP
I2C
2S
M
B
US_T
IM
E
OU
T
I2C
1S
M
B
US_T
IM
E
OU
T
C
AN
_S
T
OP
T
IM
4_S
T
OP
T
IM
3_S
T
OP
T
IM
2_S
T
OP
T
IM
1_S
T
OP
W
W
DG
_S
T
OP
IW
DG
_S
T
OP
Reserved
S
T
DB
Y
S
T
OP
S
L
E
E
P
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
ID register (DBG_ID)
Address offset: 0x00
Only 32-bit access is supported, fixed values cannot be modified.