Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
26
/
631
Bit field
Name
Description
Note: Every successful programming or erasing will set the EOP state.
4
WRPERR
Write protection error
When trying to program a write-protected flash address, the hardware sets this bit
to '1', and writing '1' can clear this bit.
3
PVERR
programming verification error
When an error is reported during verification after programming, the hardware
sets this bit to '1', and writing '1' can clear this state.
2
PGERR
Programming error
When trying to program an address whose content is not '0xFFFF_FFFF', the
hardware sets this bit to '1', and writing '1' can clear this state.
Note: Before programming, the FLASH_CTRL.START bit must be cleared.
1
Reserved
Reserved, the reset value must be maintained.
0
BUSY
Busy
This bit indicates that a flash operation is in progress. At the beginning of flash
operation, this bit is set to '1'; This bit is cleared to '0' when the operation ends or
an error occurs.
2.2.4.2.5
The FLASH control register (FLASH_CTRL)
Address offset: 0x10
Reset value: 0x0000 0080
Bit field
Name
Description
31:14
Reserved
Reserved, the reset value must be maintained.
13
ECERRITE
ECC error interrupt
This bit allows an interrupt to be generated when the FLASH_STS.ECCERR bit
goes to '1'.
0: Interrupt generation is prohibited;
1: Enable interrupt generation.
12
EOPITE
Allow operation completion interrupt.
This bit allows an interrupt to be generated when the FLASH_STS.EOP bit
becomes '1'.
0: Interrupt generation is prohibited;
1: Interrupt generation is allowed.
11
FERRITE
Erase/Program Verify Error Interrupt
This bit allows an interrupt to be generated when the