EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 671

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 24 Security Features
www.mcu.com.cn 671 / 703
< Operation Flow >
Figure 24-3 Flow chart of flash CRC operation function (high-speed CRC)
Start
configure FEA5~FEA0 bit
Yes
No
normal
completion
CRC0EN=0
CRC0EN=1
PGCRCL=0000H
PGCRCH=00H
execute WFE instruction
CRC calculation
completes.
read value of
PGCRCLPGCRCH
compare with the
expectation value of
CRC
same
difference
abnormal
compeltion
configure CRC calculation range
allows CRC calculation
perform initialization of CRC
calculation result register
start CRC calculation via
WFE instruction
disable CRC calculation
read CRC calculation result
save expected value of CRC
calculation result to last 4 bytes
ahead of time
compare with the pre-stored
expectation value
Note 1. Only the code flash memory is an object for CRC operations.
2. The expected value of the CRC operation must be saved in the area behind the operation range in the code flash.

Table of Contents

Related product manuals