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
00x40000000POWERPOWERPower control 
00x40000000CLOCKCLOCKClock control 
00x40000000APPROTECTAPPROTECTAPPROTECT control 
00x40000000BPROTBPROTBlock Protect 
10x40001000RADIORADIO2.4 GHz radio 
20x40002000UARTEUARTE0Universal Asynchronous Receiver/Transmitter with EasyDMA 
20x40002000UARTUART0Universal Asynchronous Receiver/TransmitterDeprecated
30x40003000SPIMSPIM0SPI master 0 
30x40003000SPISSPIS0SPI slave 0 
30x40003000SPISPI0SPI master 0Deprecated
30x40003000TWIMTWIM0Two-wire interface master 0 
30x40003000TWISTWIS0Two-wire interface slave 0 
30x40003000TWITWI0Two-wire interface master 0Deprecated
40x40004000TWITWI1Two-wire interface master 1Deprecated
40x40004000TWIMTWIM1Two-wire interface master 1 
40x40004000TWISTWIS1Two-wire interface slave 1 
40x40004000SPISPI1SPI master 1Deprecated
40x40004000SPIMSPIM1SPI master 1 
40x40004000SPISSPIS1SPI slave 1 
50x40005000NFCTNFCTNear Field Communication Tag 
60x40006000GPIOTEGPIOTEGPIO Tasks and Events 
70x40007000SAADCSAADCAnalog to digital converter 
80x40008000TIMERTIMER0Timer 0 
90x40009000TIMERTIMER1Timer 1 
100x4000A000TIMERTIMER2Timer 2 
110x4000B000RTCRTC0Real-time counter 0 
120x4000C000TEMPTEMPTemperature sensor 
130x4000D000RNGRNGRandom number generator 
140x4000E000ECBECBAES Electronic Code Book (ECB) mode block encryption 
150x4000F000CCMCCMAES CCM Mode Encryption 
150x4000F000AARAARAcelerated Address Resolver 
160x40010000WDTWDTWatchdog timer 
170x40011000RTCRTC1Real-time counter 1 
180x40012000QDECQDECQuadrature decoder 
190x40013000LPCOMPLPCOMPLow power comparator 
190x40013000COMPCOMPGeneral purpose comparator 
200x40014000EGUEGU0Event Generator Unit 0 
200x40014000SWISWI0Software interrupt 0 
210x40015000EGUEGU1Event Generator Unit 1 
210x40015000SWISWI1Software interrupt 1 
220x40016000SWISWI2Software interrupt 2 
220x40016000EGUEGU2Event Generator Unit 2 
230x40017000SWISWI3Software interrupt 3 
230x40017000EGUEGU3Event Generator Unit 3 
240x40018000SWISWI4Software interrupt 4 
240x40018000EGUEGU4Event Generator Unit 4 
250x40019000SWISWI5Software interrupt 5 
250x40019000EGUEGU5Event Generator Unit 5 
260x4001A000TIMERTIMER3Timer 3 
270x4001B000TIMERTIMER4Timer 4 
280x4001C000PWMPWM0Pulse Width Modulation Unit 0 
290x4001D000PDMPDMPulse Density Modulation (Digital Microphone Interface) 
300x4001E000NVMCNVMCNon-Volatile Memory Controller 
310x4001F000PPIPPIProgrammable Peripheral Interconnect 
320x40020000MWUMWUMemory Watch Unit 
330x40021000PWMPWM1Pulse Width Modulation Unit 1 
340x40022000PWMPWM2Pulse Width Modulation Unit 2 
350x40023000SPISSPIS2SPI slave 2 
350x40023000SPISPI2SPI master 2Deprecated
350x40023000SPIMSPIM2SPI master 2 
360x40024000RTCRTC2Real-time counter 2 
370x40025000I2SI2SInter-IC Sound Interface 
380x40026000FPUFPUFPU interrupt 
00x50000000GPIOGPIOGeneral purpose input and outputDeprecated
00x50000000GPIOP0General purpose input and output 
N/A0x10000000FICRFICRFactory Information Configuration 
N/A0x10001000UICRUICRUser Information Configuration