
NUC126
Aug. 08, 2018
Page
228
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
6.4.4.8
Flash All-One Verification
The NUC126 series supports the flash all one verification function to help user quickly check a
memory block content blanking for APROM, LDROM, and SPROM after flash erase operation.
Two steps complete this flash all-one verification.
Step 1: perform ISP “Run Flash All One Verification” operation
Step 2: read ALLONE(FMC_ISPSTS[7])bit to get the verification result. The ALLONE must be 1 if all
one verification pass. Otherwise, the all one verification fail.
In step 1, user has to set the memory starting address (FMC_ISPADDR) and size (FMC_ISPDAT) to
verify. Both address and size have to be 512 bytes alignment, the size should be ≥ 512 bytes and the
starting address includes APROM, LDROM and SPROM.
In step 2, the FMC_ISPADDR should be kept as the same as step 1.
Enable ISPEN
Set ISPGO = 1
Write FMC_ISPADDR
Write FMC_ISPDAT
Write FMC_ISPCMD (0x28)
Add ISB instruction
Check ISPGO = 0
?
NO
YES
Check ALLONE=1
?
NO
YES
Step 1
Step 2
PASS
All-One Verification Start
FAIL
Read ALLONE flag
(FMC_ISPSTS[7])
Figure 6.4-17 All-One Verification Flow