![ARTERY AT32F435 Series Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592111.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 111
Rev 2.03
5.6.8
Erase/program protection status register0
(FLASH_EPPS0)
Bit
Register
Reset value
Type
Description
Bit 31: 0
EPPS
0xFFFF FFFF ro
Erase/Program protection status
This register reflects the erase/program protection byte
status in the loaded user system data.
5.6.9
Erase/program protection status register1
(FLASH_EPPS1)
Bit
Register
Reset value
Type
Description
Bit 31: 0
EPPS
0xFFFF FFFF ro
Erase/Program protection status
This register reflects the erase/program protection byte
status in the loaded user system data.
5.6.10 Flash unlock register2 (FLASH_UNLOCK2)
Only used in Flash memory bank 2.
Bit
Register
Reset value
Type
Description
Bit 31: 0
UKVAL
0xXXXX XXXX wo
Unlock key value
This register is used to unlock Flash memory bank 2.
Note: All these bits are write-only, and return 0 when being read.
5.6.11 Flash status register2 (FLASH_STS2)
Only used in Flash memory bank 2.
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
Program error
When the programming address 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.6.12 Flash control register2 (FLASH_CTRL2)
Only used in Flash memory bank 2.
Bit
Register
Reset value
Type
Description
Bit 31: 13 Reserved
0x00000
resd
Kept 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 its default value
Bit 10
ERRIE
0x0
rw
Error interrupt enable
This bit enables EPPERR or PROGERR interrupt.
0: Interrupt is disabled;