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.

Application
Internal NVM (1024 kB)
MCUbootApplication (used)Application (free)Factory dataSettings
RAM (256 kB)
RAM (used)RAM (free)

Matter Door Lock (Debug)

Internal NVM
RAM

Matter Door Lock (Release)

Internal NVM
RAM

Matter and Aliro Door Lock (Debug)

Internal NVM
RAM

Matter and Aliro Door Lock (Release)

Internal NVM
RAM

Aliro Access Control (Debug)

Internal NVM
RAM

Aliro Access Control (Release)

Internal NVM
RAM

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.

Internal flash (size: 0x100000 = 1024 kB)
MCUboot (28 kB)Application (960 kB)Factory data (4 kB)Settings (32 kB)
0x0
0x7000
0xf7000
0xf8000
0x100000
Static RAM (size: 0x40000 = 256 kB)

SRAM is located at the address 0x20000000 in the memory address space of the application core.

Static RAM (256 kB)
0x20000000
0x20040000
External flash (MX25R64) (size: 0x800000 = 8192 kB)
Application DFU (960 kB)Free space (7232 kB)
0x0
0xf0000
0x800000