Memory

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

The amount of RAM and flash differs depending on variant, see Memory variants.

Table 1. Memory variants
Device nameRAMFlash
nRF52805-CAAA24 kB192 kB

The CPU and peripherals with 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 Memory layout.

Figure 1. Memory layout
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 three RAM AHB slaves.

RAM AHB slaves 0 to 2 are connected to two 4 kB RAM sections each, as shown in Memory layout.

Each RAM section has 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 4 kB pages that can be accessed by the CPU via both the ICODE and DCODE buses as shown in, Memory layout. Each page is divided into 8 blocks.

Memory map

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

Figure 2. Memory map
Memory map

Instantiation

Table 2. Instantiation table
IDBase addressPeripheralInstanceDescription
00x40000000APPROTECTAPPROTECTAPPROTECT control 
00x40000000BPROTBPROTBlock protect 
00x40000000CLOCKCLOCKClock control 
00x40000000POWERPOWERPower control 
00x50000000GPIOP0General purpose input and output 
10x40001000RADIORADIO2.4 GHz radio 
20x40002000UARTUART0Universal asynchronous receiver/transmitterDeprecated
20x40002000UARTEUARTE0Universal asynchronous receiver/transmitter with EasyDMA 
30x40003000TWITWI0Two-wire interface masterDeprecated
30x40003000TWIMTWIM0Two-wire interface master 
30x40003000TWISTWIS0Two-wire interface slave 
40x40004000SPISPI0SPI masterDeprecated
40x40004000SPIMSPIM0SPI master 
40x40004000SPISSPIS0SPI slave 
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 Codebook (ECB) mode block encryption 
150x4000F000CCMCCMAES CCM mode encryption 
150x4000F000AARAARAccelerated address resolver 
160x40010000WDTWDTWatchdog timer 
170x40011000RTCRTC1Real-time counter 1 
180x40012000QDECQDECQuadrature decoder 
200x40014000EGUEGU0Event generator unit 0 
200x40014000SWISWI0Software interrupt 0 
210x40015000EGUEGU1Event generator unit 1 
210x40015000SWISWI1Software interrupt 1 
220x40016000SWISWI2Software interrupt 2 
230x40017000SWISWI3Software interrupt 3 
240x40018000SWISWI4Software interrupt 4 
250x40019000SWISWI5Software interrupt 5 
300x4001E000NVMCNVMCNon-volatile memory controller 
310x4001F000PPIPPIProgrammable peripheral interconnect 
N/A0x10000000FICRFICRFactory information configuration 
N/A0x10001000UICRUICRUser information configuration