
AT32F413
Series Reference Manual
2022.06.27
Page 79
Rev 2.00
5.7.9
Flash unlock register3 (FLASH_UNLOCK3)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 0
UKVAL
0xXXXX XXXX wo
Unlock key value
This register is used to unlock SPIM.
Note: All these bits are write-only, and return 0 when being read.
5.7.10 Flash select register (FLASH_SELECT)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 0
SELECT
0x0000 0000 wo
SPIM supports extended SPI Flash chip selection
0x0001: Refer to Table 6-4
0x0002: Refer to Table 6-4
Others: Reserved.
5.7.11 Flash status register3 (FLASH_STS3)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 6
Reserved
0x0000000
resd
Kept at its default value
Bit 5
ODF
0x0
rw
Operation done flag
This bit is set by hardware when Flash memory
operations (program/erase) is completed. It is cleared
by writing “1”.
Bit 4
EPPERR
0x0
rw
Erase/Program protection error
This bit is set by hardware when programming the
erase/program- protected Flash memory address. It is
cleared by writing “1”
Bit 3
Reserved
0x0
resd
Kept at its default value
Bit 2
PRGMERR
0x0
rw
Programming error
When the programming addess is not “0xFFFF”, this bit is
set by hardware. It is cleared by writing “1
Bit 1
Reserved
0x0
resd
Kept at its default value
Bit 0
OBF
0x0
ro
Operation busy flag
When this bit is set, it indicates that Flash memory
operation is in process. It is cleared when operation is
completed.
5.7.12 Flash control register3 (FLASH_CTRL3)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 13 Reserved
0x00000
resd
Kept at its default value
Bit 12
ODFIE
0x0
rw
Operation done flag interrupt enable
0: Interrupt is disabled;
1: Interrupt is enabled.
Bit 11
Reserved
0x0
resd
Kept at its default value
Bit 10
ERRIE
0x0
rw
Error interrupt enable
0: Interrupt is disabled;
1: Interrupt is enabled.
Bit 9,8
Reserved
0x0
resd
Kept at its default value
Bit 7
OPLK
0x1
rw
Operation lock
This bit is set by default, indicating that Flash memory is
protected against operations. This bit is cleared by
hardware after unlock, indicating that erase/program
operation to Flash memory is allowed. Writing “1” can re-