GD32W51x User Manual
90
The softw are can clear it by w riting 1.
3
SECERR
Secure error flag (If there are no option bytes)
If an invalid secure DMP area is defined (DMPx_EPAGE> SECMx_EPAGE), this
bit is set and the FMC_DMPx (x=0,1) modification is discarded.
The softw are can clear it by w riting 1.
2:1
Reserved
Must be kept at reset value.
0
SECBUSY
The Flash is busy
When the operation is in progress, this bit is set to 1. When the operation is end or
an error is generated, this bit is cleared to 0.
2.5.9.
Secure Control register (FMC_SECCTL)
Address offset: 0x30
Reset value: 0x0000 0080
This register can only be written when the SECBSY and NSBSY are reset. Otherwise, the
write access stalls till SECBSY and NSBSY are reset.
This register is secure. It can be read and written only by secure access. A non-secure
read/write access is RAZ/WI. This register can be protected against non-privileged access
when FMC_PRIV = 1.
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
SECENDI
E
Reserved
SECERRI
E
Reserved
SECLK
SECSTA
RT
Reserved
SECMER SECPER SECPG
rw
rw
rs
rs
rw
rw
rw
Bits
Fields
Descriptions
31:13
Reserved
Must be kept at reset value.
12
SECENDIE
End of operation interrupt enable bit
This bit is set or cleared by softw are.
0: no interrupt generated by hardw are
1: end of operation interrupt enable
11
Reserved
Must be kept at reset value.
10
SECERRIE
Error interrupt enable bit
This bit is set or cleared by softw are.
0: no interrupt generated by hardw are