Memory

The nRF52832 contains flash and RAM that can be used for code and data storage.

The amount of RAM and flash will vary depending on variant, see Table 1.

Table 1. Memory variants
Device nameRAMFlashComments
nRF52832-QFAA64 kB512 kB 
nRF52832-QFAB32 kB256 kB 
nRF52832-CIAA64 kB512 kB 

The CPU and the EasyDMA can access memory via the AHB multilayer interconnect. The CPU is also able to access peripherals via the AHB multilayer interconnect, as illustrated in Figure 1.

Figure 1. Memory layout

See AHB multilayer and EasyDMA for more information about the AHB multilayer interconnect and the EasyDMA.

The same physical RAM is mapped to both the Data RAM region and the Code RAM region. It is up to the application to partition the RAM within these regions so that one does not corrupt the other.

RAM - Random access memory

The RAM interface is divided into multiple RAM AHB slaves.

Each RAM AHB slave is connected to two 4-kilobyte RAM sections, see Section 0 and Section 1 in Figure 1.

Each of the RAM sections have separate power control for System ON and System OFF mode operation, which is configured via RAM register (see the POWER — Power supply).

Flash - Non-volatile memory

The Flash can be read an unlimited number of times by the CPU, but it has restrictions on the number of times it can be written and erased and also on how it can be written.

Writing to Flash is managed by the Non-volatile memory controller (NVMC), see NVMC — Non-volatile memory controller.

The Flash is divided into multiple pages that can be accessed by the CPU via both the ICODE and DCODE buses as shown in, Figure 1. Each page is divided into 8 blocks.

Memory map

The complete memory map is shown in Figure 2. As described in Memory, Code RAM and the Data RAM are the same physical RAM.

Figure 2. Memory map

Instantiation

Table 2. Instantiation table
IDBase AddressPeripheralInstanceDescription
00x40000000POWERPOWER

Power control

 
00x40000000CLOCKCLOCK

Clock control

 
00x40000000APPROTECTAPPROTECT

APPROTECT control

 
00x40000000BPROTBPROT

Block Protect

 
10x40001000RADIORADIO

2.4 GHz radio

 
20x40002000UARTEUARTE0

Universal Asynchronous Receiver/Transmitter with EasyDMA

 
20x40002000UARTUART0

Universal Asynchronous Receiver/Transmitter

Deprecated

30x40003000SPIMSPIM0

SPI master 0

 
30x40003000SPISSPIS0

SPI slave 0

 
30x40003000SPISPI0

SPI master 0

Deprecated

30x40003000TWIMTWIM0

Two-wire interface master 0

 
30x40003000TWISTWIS0

Two-wire interface slave 0

 
30x40003000TWITWI0

Two-wire interface master 0

Deprecated

40x40004000TWITWI1

Two-wire interface master 1

Deprecated

40x40004000TWIMTWIM1

Two-wire interface master 1

 
40x40004000TWISTWIS1

Two-wire interface slave 1

 
40x40004000SPISPI1

SPI master 1

Deprecated

40x40004000SPIMSPIM1

SPI master 1

 
40x40004000SPISSPIS1

SPI slave 1

 
50x40005000NFCTNFCT

Near Field Communication Tag

 
60x40006000GPIOTEGPIOTE

GPIO Tasks and Events

 
70x40007000SAADCSAADC

Analog to digital converter

 
80x40008000TIMERTIMER0

Timer 0

 
90x40009000TIMERTIMER1

Timer 1

 
100x4000A000TIMERTIMER2

Timer 2

 
110x4000B000RTCRTC0

Real-time counter 0

 
120x4000C000TEMPTEMP

Temperature sensor

 
130x4000D000RNGRNG

Random number generator

 
140x4000E000ECBECB

AES Electronic Code Book (ECB) mode block encryption

 
150x4000F000CCMCCM

AES CCM Mode Encryption

 
150x4000F000AARAAR

Acelerated Address Resolver

 
160x40010000WDTWDT

Watchdog timer

 
170x40011000RTCRTC1

Real-time counter 1

 
180x40012000QDECQDEC

Quadrature decoder

 
190x40013000LPCOMPLPCOMP

Low power comparator

 
190x40013000COMPCOMP

General purpose comparator

 
200x40014000EGUEGU0

Event Generator Unit 0

 
200x40014000SWISWI0

Software interrupt 0

 
210x40015000EGUEGU1

Event Generator Unit 1

 
210x40015000SWISWI1

Software interrupt 1

 
220x40016000SWISWI2

Software interrupt 2

 
220x40016000EGUEGU2

Event Generator Unit 2

 
230x40017000SWISWI3

Software interrupt 3

 
230x40017000EGUEGU3

Event Generator Unit 3

 
240x40018000SWISWI4

Software interrupt 4

 
240x40018000EGUEGU4

Event Generator Unit 4

 
250x40019000SWISWI5

Software interrupt 5

 
250x40019000EGUEGU5

Event Generator Unit 5

 
260x4001A000TIMERTIMER3

Timer 3

 
270x4001B000TIMERTIMER4

Timer 4

 
280x4001C000PWMPWM0

Pulse Width Modulation Unit 0

 
290x4001D000PDMPDM

Pulse Density Modulation (Digital Microphone Interface)

 
300x4001E000NVMCNVMC

Non-Volatile Memory Controller

 
310x4001F000PPIPPI

Programmable Peripheral Interconnect

 
320x40020000MWUMWU

Memory Watch Unit

 
330x40021000PWMPWM1

Pulse Width Modulation Unit 1

 
340x40022000PWMPWM2

Pulse Width Modulation Unit 2

 
350x40023000SPISSPIS2

SPI slave 2

 
350x40023000SPISPI2

SPI master 2

Deprecated

350x40023000SPIMSPIM2

SPI master 2

 
360x40024000RTCRTC2

Real-time counter 2

 
370x40025000I2SI2S

Inter-IC Sound Interface

 
380x40026000FPUFPU

FPU interrupt

 
00x50000000GPIOGPIO

General purpose input and output

Deprecated

00x50000000GPIOP0

General purpose input and output

 
N/A0x10000000FICRFICR

Factory Information Configuration

 
N/A0x10001000UICRUICR

User Information Configuration