22.5.2 EEFC Flash Command Register

Name: EEFC_FCR
Offset: 0x04
Reset: 
Property: Write-only

Bit 3130292827262524 
 FKEY[7:0] 
Access WWWWWWWW 
Reset  
Bit 2322212019181716 
 FARG[15:8] 
Access WWWWWWWW 
Reset  
Bit 15141312111098 
 FARG[7:0] 
Access WWWWWWWW 
Reset  
Bit 76543210 
 FCMD[7:0] 
Access WWWWWWWW 
Reset  

Bits 31:24 – FKEY[7:0] Flash Write Protection Key

ValueNameDescription
0x5APASSWD

The 0x5A value enables the command defined by the bits of the register. If the field is written with a different value, the write is not performed and no action is started.

Bits 23:8 – FARG[15:0] Flash Command Argument

GETD, GLB, GGPB, STUI, SPUI, GCALB, WUS, EUS, STUS, SPUS, EACommands requiring no argument, including Erase all commandFARG is meaningless, must be written with 0
ESErase sector commandFARG must be written with any page number within the sector to be erased
EPAErase pages commandFARG[1:0] defines the number of pages to be erased

The start page must be written in FARG[15:2].

FARG[1:0] = 0: Four pages to be erased. FARG[15:2] = Page_Number / 4

FARG[1:0] = 1: Eight pages to be erased. FARG[15:3] = Page_Number / 8, FARG[2]=0

FARG[1:0] = 2: Sixteen pages to be erased. FARG[15:4] = Page_Number / 16, FARG[3:2]=0

FARG[1:0] = 3: Thirty-two pages to be erased. FARG[15:5] = Page_Number / 32, FARG[4:2]=0

Refer to “EEFC_FCR.FARG Field for EPA Command”.

WP, WPL, EWP, EWPLProgramming commandsFARG must be written with the page number to be programmed
SLB, CLBLock bit commandsFARG defines the page number to be locked or unlocked
SGPB, CGPBGPNVM commandsFARG defines the GPNVM number to be programmed

Bits 7:0 – FCMD[7:0] Flash Command

ValueNameDescription
0x00GETD

Get Flash descriptor

0x01WP

Write page

0x02WPL

Write page and lock

0x03EWP

Erase page and write page

0x04EWPL

Erase page and write page then lock

0x05EA

Erase all

0x07EPA

Erase pages

0x08SLB

Set lock bit

0x09CLB

Clear lock bit

0x0AGLB

Get lock bit

0x0BSGPB

Set GPNVM bit

0x0CCGPB

Clear GPNVM bit

0x0DGGPB

Get GPNVM bit

0x0ESTUI

Start read unique identifier

0x0FSPUI

Stop read unique identifier

0x10GCALB

Get CALIB bit

0x11ES

Erase sector

0x12WUS

Write user signature

0x13EUS

Erase user signature

0x14STUS

Start read user signature

0x15SPUS

Stop read user signature