29.5.2 SEFC Flash Command Register

This register can only be written if the FKEY field is written to 0x5A.

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 Writing Protection Key

ValueNameDescription
0x5APASSWD

The 0x5A value enables the command defined by the bits in 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, STUS, SPUS, SUSP, RESCommands requiring no argumentFARG 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[2:0] defines the number of pages to be erased

The start page number divided by 8 must be written in FARG[15:3].

FARG[2:0] = 0: Reserved,

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

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

FARG[3] = 0

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

FARG[4:3] = 0

FARG[2:0] = 4: Sixty-four pages to be erased. FARG[15:6] = Page_Number/64

FARG[5:3] = 0

FARG[2:0] > 4: Reserved.

See Table 29-3.

EUSErase User Signature commandThe start page number divided by 8 must be written in FARG[15:3].

FARG[2:0] = 0: Reserved

WP, WPL, WUSProgramming 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
SCKSend cryptographic key to AES engine commandFARG[15]: Reserved

FARG[14]: ‘0’ if AES is selected, ‘1’ if AESB is selected

FARG[13]: Reserved

FARG[12] defines the protection level attribute forwarded to the key bus during cryptographic key transfer. 0=User, 1=Privileged

FARG[11:10]: Reserved

FARG[9:8] defines the cryptographic key length to be transferred: 1 (128 bits), 2 (192 bits) or 3 (256 bits).

FARG[7:5] defines the 4-Kbyte user signature block number where the cryptographic key is to be retrieved, from 0 to 7

FARG[4:0] defines the 128-bit flash word address offset in the first page of the user signature block where the cryptographic key is to be retrieved

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

ValueNameDescription
0x00GETD

Get Flash descriptor

0x01WP

Write page

0x02WPL

Write page and lock

0x07EPA

Erase pages (8, 16, 32, 64)

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

0x17SUSP

Suspend

0x18RES

Resume

0x19SCK

Send cryptographic key