Memory requirements
This page details the memory requirements for the nRF Door Lock and Access Control Add-on applications.
RAM and flash memory requirements
RAM and flash memory requirement values differ depending on the DK and the programmed application.
The following bar charts and tables list memory requirement values for the nRF Door Lock and Access Control applications built in their default configuration, for both the debug and release build types.
Memory layout is taken from the DTS files used by each application, while memory usage is taken from the build output.
Values are provided in kilobytes (KB).
Table columns are grouped by internal NVM and RAM.
Application and RAM cells show used and free space separated by /.
Other NVM columns list the reserved partition size for that region.
Note
The provided values might differ between the nRF Door Lock and Access Control Add-on releases. The Application and RAM values depend on the build configuration in use and are different if non-default options are enabled.
Note
The RAM values show statically allocated memory only, including thread stacks and statically allocated heaps.
The free RAM is not necessarily available to the application, as it can be used at runtime, for example, by the C library malloc arena.
Values measured on commit c230d1debdfb349576d00307007847aab2b634ab.
Memory requirements for the applications running on the nRF52840 DK.
Memory requirements for the applications running on the nRF5340 DK.
Memory requirements for the applications running on the nRF54L15 DK.
Memory requirements for the applications running on the nRF54LM20 DK.
The following table lists memory requirements for the applications running on the nRF52840 DK.
| Application | Internal NVM (1024 kB) | RAM (256 kB) | |||
|---|---|---|---|---|---|
| MCUboot | Application (used / free) | Factory data | Settings | used / free | |
Matter Door Lock (Debug) |
28 | 776 / 184 | 4 | 32 | 160 / 96 |
Matter Door Lock (Release) |
28 | 689 / 271 | 4 | 32 | 156 / 100 |
Matter and Aliro Door Lock (Debug) |
28 | 892 / 68 | 4 | 32 | 207 / 49 |
Matter and Aliro Door Lock (Release) |
28 | 820 / 140 | 4 | 32 | 188 / 68 |
Aliro Access Control (Debug) |
28 | 400 / 560 | 4 | 32 | 92 / 164 |
Aliro Access Control (Release) |
28 | 301 / 659 | 4 | 32 | 80 / 176 |
The following table lists memory requirements for the applications running on the nRF5340 DK.
| Application | Internal NVM (1024 kB) | RAM (448 kB) | |||
|---|---|---|---|---|---|
| MCUboot | Application (used / free) | Factory data | Settings | used / free | |
Matter Door Lock (Debug) |
32 | 711 / 245 | 4 | 32 | 172 / 276 |
Matter Door Lock (Release) |
32 | 622 / 334 | 4 | 32 | 167 / 281 |
Matter and Aliro Door Lock (Debug) |
32 | 834 / 122 | 4 | 32 | 223 / 225 |
Matter and Aliro Door Lock (Release) |
32 | 758 / 198 | 4 | 32 | 204 / 244 |
Aliro Access Control (Debug) |
32 | 372 / 584 | 4 | 32 | 89 / 359 |
Aliro Access Control (Release) |
32 | 265 / 691 | 4 | 32 | 77 / 371 |
The following table lists memory requirements for the applications running on the nRF54L15 DK.
| Application | Internal NVM (1524 kB) | RAM (256 kB) | |||
|---|---|---|---|---|---|
| MCUboot | Application (used / free) | Factory data | Settings | used / free | |
Matter Door Lock (Debug) |
52 | 780 / 648 | 4 | 40 | 167 / 89 |
Matter Door Lock (Release) |
52 | 689 / 739 | 4 | 40 | 162 / 94 |
Matter and Aliro Door Lock (Debug) |
52 | 901 / 527 | 4 | 40 | 216 / 40 |
Matter and Aliro Door Lock (Release) |
52 | 824 / 604 | 4 | 40 | 197 / 59 |
Aliro Access Control (Debug) |
52 | 413 / 1015 | 4 | 40 | 93 / 163 |
Aliro Access Control (Release) |
52 | 307 / 1121 | 4 | 40 | 81 / 175 |
The following table lists memory requirements for the applications running on the nRF54LM20 DK.
| Application | Internal NVM (2036 kB) | RAM (511 kB) | |||
|---|---|---|---|---|---|
| MCUboot | Application (used / free) | Factory data | Settings | used / free | |
Matter Door Lock (Debug) |
52 | 783 / 1149 | 4 | 48 | 168 / 343 |
Matter Door Lock (Release) |
52 | 691 / 1241 | 4 | 48 | 162 / 349 |
Matter and Aliro Door Lock (Debug) |
52 | 901 / 1031 | 4 | 48 | 216 / 295 |
Matter and Aliro Door Lock (Release) |
52 | 825 / 1107 | 4 | 48 | 197 / 314 |
Aliro Access Control (Debug) |
52 | 412 / 1520 | 4 | 48 | 93 / 418 |
Aliro Access Control (Release) |
52 | 307 / 1625 | 4 | 48 | 81 / 430 |
Reference memory layouts
The following bar charts and tables show the memory maps for each of the supported DKs.
All the nRF Door Lock and Access Control applications use the same internal flash and RAM layout on a given DK.
The partition sizes match the RAM and flash memory requirements listed above and are defined in the dts/door_lock/common devicetree files.
The external flash holds the secondary MCUboot slot, which stores the application update image during DFU. On the nRF5340 DK, it also holds the network core update image. On the nRF5340 DK, nRF54L15 DK, and nRF54LM20 DK, the Aliro applications also reserve the External NVS partition in the external flash for encrypted Access Document storage. The Matter Door Lock application does not use this partition.
The following memory map is valid for the applications running on the nRF52840 DK.
SRAM is located at the address 0x20000000 in the memory address space of the application core.
The following memory map is valid for the applications running on the nRF5340 DK.
SRAM is located at the address 0x20000000 in the memory address space of the application core.
The network core flash is located at the address 0x01000000 in the memory address space of the network core.
The network core SRAM is located at the address 0x21000000 in the memory address space of the network core.
The following memory map is valid for the applications running on the nRF54L15 DK.
SRAM is located at the address 0x20000000 in the memory address space of the application core.
The following memory map is valid for the applications running on the nRF54LM20 DK.
SRAM is located at the address 0x20000000 in the memory address space of the application core.
The following memory map is valid for the applications running on the nRF54LM20 DK with internal memory only.
Note
Only the Matter Door Lock application supports this memory layout, using the internal file suffix.
SRAM is located at the address 0x20000000 in the memory address space of the application core.
The following table lists memory partitions for the applications running on the nRF52840 DK.
Internal flash (size: 0x100000 = 1024 kB)
| Partition | Offset | Size |
|---|---|---|
| MCUboot | 0 (0x0) | 28 kB (0x7000) |
| Application | 28672 (0x7000) | 960 kB (0xf0000) |
| Factory data | 1011712 (0xf7000) | 4 kB (0x1000) |
| Settings | 1015808 (0xf8000) | 32 kB (0x8000) |
Static RAM (size: 0x40000 = 256 kB)
SRAM is located at the address 0x20000000 in the memory address space of the application core.
| Partition | Offset | Size |
|---|---|---|
| Static RAM | 0 (0x0) | 256 kB (0x40000) |
External flash (MX25R64) (size: 0x800000 = 8192 kB)
| Partition | Offset | Size |
|---|---|---|
| Application DFU | 0 (0x0) | 960 kB (0xf0000) |
| Free space | 983040 (0xf0000) | 7232 kB (0x710000) |
The following table lists memory partitions for the applications running on the nRF5340 DK.
Application core internal flash (size: 0x100000 = 1024 kB)
| Partition | Offset | Size |
|---|---|---|
| MCUboot | 0 (0x0) | 32 kB (0x8000) |
| Application | 32768 (0x8000) | 956 kB (0xef000) |
| Factory data | 1011712 (0xf7000) | 4 kB (0x1000) |
| Settings | 1015808 (0xf8000) | 32 kB (0x8000) |
Static RAM (size: 0x80000 = 512 kB)
SRAM is located at the address 0x20000000 in the memory address space of the application core.
| Partition | Offset | Size |
|---|---|---|
| Application RAM | 0 (0x0) | 448 kB (0x70000) |
| IPC shared memory | 458752 (0x70000) | 64 kB (0x10000) |
External flash (MX25R64) (size: 0x800000 = 8192 kB)
| Partition | Offset | Size |
|---|---|---|
| Application DFU | 0 (0x0) | 956 kB (0xef000) |
| Network core DFU | 978944 (0xef000) | 256 kB (0x40000) |
| External NVS (Aliro applications only) | 1241088 (0x12f000) | 128 kB (0x20000) |
| Free space | 1372160 (0x14f000) | 6852 kB (0x6b1000) |
Network core flash (size: 0x40000 = 256 kB)
The network core flash is located at the address 0x01000000 in the memory address space of the network core.
| Partition | Offset | Size |
|---|---|---|
| b0n bootloader | 0 (0x0) | 33.38 kB (0x8580) |
| Provision data | 34176 (0x8580) | 0.62 kB (0x280) |
| Network core application | 34816 (0x8800) | 222 kB (0x37800) |
Network core static RAM (size: 0x10000 = 64 kB)
The network core SRAM is located at the address 0x21000000 in the memory address space of the network core.
| Partition | Offset | Size |
|---|---|---|
| Static RAM | 0 (0x0) | 64 kB (0x10000) |
The following table lists memory partitions for the applications running on the nRF54L15 DK.
Internal RRAM (size: 0x17d000 = 1524 kB)
| Partition | Offset | Size |
|---|---|---|
| MCUboot | 0 (0x0) | 52 kB (0xd000) |
| Application | 53248 (0xd000) | 1428 kB (0x165000) |
| Factory data | 1515520 (0x172000) | 4 kB (0x1000) |
| Settings | 1519616 (0x173000) | 40 kB (0xa000) |
Static RAM (size: 0x40000 = 256 kB)
SRAM is located at the address 0x20000000 in the memory address space of the application core.
| Partition | Offset | Size |
|---|---|---|
| Static RAM | 0 (0x0) | 256 kB (0x40000) |
External flash (MX25R64) (size: 0x800000 = 8192 kB)
| Partition | Offset | Size |
|---|---|---|
| Application DFU | 0 (0x0) | 1428 kB (0x165000) |
| External NVS (Aliro applications only) | 1462272 (0x165000) | 128 kB (0x20000) |
| Free space | 1593344 (0x185000) | 6636 kB (0x67b000) |
The following table lists memory partitions for the applications running on the nRF54LM20 DK.
Internal RRAM (size: 0x1fd000 = 2036 kB)
| Partition | Offset | Size |
|---|---|---|
| MCUboot | 0 (0x0) | 52 kB (0xd000) |
| Application | 53248 (0xd000) | 1932 kB (0x1e3000) |
| Factory data | 2031616 (0x1f0000) | 4 kB (0x1000) |
| Settings | 2035712 (0x1f1000) | 48 kB (0xc000) |
Static RAM (size: 0x7fc00 = 511 kB)
SRAM is located at the address 0x20000000 in the memory address space of the application core.
| Partition | Offset | Size |
|---|---|---|
| Static RAM | 0 (0x0) | 511 kB (0x7fc00) |
External flash (MX25R64) (size: 0x800000 = 8192 kB)
| Partition | Offset | Size |
|---|---|---|
| Application DFU | 0 (0x0) | 1932 kB (0x1e3000) |
| External NVS (Aliro applications only) | 1978368 (0x1e3000) | 128 kB (0x20000) |
| Free space | 2109440 (0x203000) | 6132 kB (0x5fd000) |
The following table lists memory partitions for the applications running on the nRF54LM20 DK with internal memory only.
Only the Matter Door Lock application supports this memory layout, using the internal file suffix.
Internal RRAM (size: 0x1fd000 = 2036 kB)
| Partition | Offset | Size |
|---|---|---|
| MCUboot | 0 (0x0) | 40 kB (0xa000) |
| Application | 40960 (0xa000) | 1176 kB (0x126000) |
| Application DFU | 1245184 (0x130000) | 768 kB (0xc0000) |
| Factory data | 2031616 (0x1f0000) | 4 kB (0x1000) |
| Settings | 2035712 (0x1f1000) | 48 kB (0xc000) |
Static RAM (size: 0x7fc00 = 511 kB)
SRAM is located at the address 0x20000000 in the memory address space of the application core.
| Partition | Offset | Size |
|---|---|---|
| Static RAM | 0 (0x0) | 511 kB (0x7fc00) |