UICR — User information configuration registers

The user information configuration registers (UICRs) are non-volatile memory (NVM) registers for configuring user specific settings.

For information on writing UICR registers, see the NVMC — Non-volatile memory controller and Memory chapters.

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
UICR0x00FF8000HFSNANoUser information configuration

Register overview

RegisterOffsetTZDescription
APPROTECT0x000Access port protection
XOSC32M0x014Oscillator control
HFXOSRC0x01CHFXO clock source selection
HFXOCNT0x020HFXO startup counter
APPNVMCPOFGUARD0x024Enable blocking NVM WRITE and aborting NVM ERASE for Application NVM in POFWARN condition.
SECUREAPPROTECT0x02CSecure access port protection
ERASEPROTECT0x030Erase protection
OTP[n]0x108One time programmable memory
KEYSLOT.CONFIG[n].DEST0x400Destination address where content of the key value registers (KEYSLOT.KEYn.VALUE[0-3]) will be pushed by KMU. Note that this address must match that of a peripheral's APB mapped write-only key registers, otherwise the KMU can push this key value into an address range which the CPU can potentially read.
KEYSLOT.CONFIG[n].PERM0x404Define permissions for the key slot. Bits 0-15 and 16-31 can only be written when equal to 0xFFFF.
KEYSLOT.KEY[n].VALUE[o]0x800Define bits [31+o*32:0+o*32] of value assigned to KMU key slot.

APPROTECT

Address offset: 0x000

Access port protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPALL

Blocks debugger read/write access to all CPU registers and memory mapped addresses

Any value different to HwUnprotected will make access port protected.

HwUnprotected0x50FA50FAHwUnprotected
Protected0x00000000Protected

XOSC32M

Address offset: 0x014

Oscillator control

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0xFFFFFFCF11111111111111111111111111001111
IDR/WFieldValue IDValueDescription
ARWCTRLPierce current DAC control signals

HFXOSRC

Address offset: 0x01C

HFXO clock source selection

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWHFXOSRCHFXO clock source selection
XTAL132 MHz crystal oscillator
TCXO032 MHz temperature compensated crystal oscillator (TCXO)

HFXOCNT

Address offset: 0x020

HFXO startup counter

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWHFXOCNTHFXO startup counter. Total debounce time = HFXOCNT*64 us + 0.5 us
MinDebounceTime0Min debounce time = (0*64 us + 0.5 us)
MaxDebounceTime255Max debounce time = (255*64 us + 0.5 us)

APPNVMCPOFGUARD

Address offset: 0x024

Enable blocking NVM WRITE and aborting NVM ERASE for Application NVM in POFWARN condition.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWNVMCPOFGUARDENEnable blocking NVM WRITE and aborting NVM ERASE in POFWARN condition
Disabled0NVM WRITE and NVM ERASE are not blocked in POFWARN condition
Enabled1NVM WRITE and NVM ERASE are blocked in POFWARN condition

SECUREAPPROTECT

Address offset: 0x02C

Secure access port protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPALL

Blocks debugger read/write access to all secure CPU registers and secure memory mapped addresses

Any value different to HwUnprotected will make access port protected.

HwUnprotected0x50FA50FAHwUnprotected
Protected0x00000000Protected

ERASEPROTECT

Address offset: 0x030

Erase protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPALLBlocks NVMC ERASEALL and CTRLAP ERASEALL functionality
Unprotected0xFFFFFFFFUnprotected
Protected0x00000000Protected

OTP[n] (n=0..189)

Address offset: 0x108 + (n × 0x4)

One time programmable memory

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARW1LOWER

Lower half word

Note: Can only be written to a non 0xFFFF value once.
BRW1UPPER

Upper half word

Note: Can only be written to a non 0xFFFF value once.

KEYSLOT.CONFIG[n].DEST (n=0..127)

Address offset: 0x400 + (n × 0x8)

Destination address where content of the key value registers (KEYSLOT.KEYn.VALUE[0-3]) will be pushed by KMU. Note that this address must match that of a peripheral's APB mapped write-only key registers, otherwise the KMU can push this key value into an address range which the CPU can potentially read.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.
Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWDESTSecure APB destination address

KEYSLOT.CONFIG[n].PERM (n=0..127)

Address offset: 0x404 + (n × 0x8)

Define permissions for the key slot. Bits 0-15 and 16-31 can only be written when equal to 0xFFFF.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.
Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWWRITEWrite permission for key slot
Disabled0

Disable write to the key value registers

Enabled1Enable write to the key value registers
BRWREAD

Read permission for key slot

Disabled0Disable read from key value registers
Enabled1Enable read from key value registers
CRWPUSH

Push permission for key slot

Disabled0Disable pushing of key value registers over secure APB, but can be read if field READ is Enabled
Enabled1Enable pushing of key value registers over secure APB. Register KEYSLOT.CONFIGn.DEST must contain a valid destination address!
DRWSTATE

Revocation state for the key slot

Note that it is not possible to undo a key revocation by writing the value '1' to this field

Revoked0Key value registers can no longer be read or pushed
Active1Key value registers are readable (if enabled) and can be pushed (if enabled)

KEYSLOT.KEY[n].VALUE[o] (n=0..127) (o=0..3)

Address offset: 0x800 + (n × 0x10) + (o × 0x4)

Define bits [31+o*32:0+o*32] of value assigned to KMU key slot.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.
Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWVALUEDefine bits [31+o*32:0+o*32] of value assigned to KMU key slot