Memory requirements

This page provides information about the amount of flash memory and RAM that is required by the Samples, as well as stack memory requirements for main and zboss threads. Use it to check if your application has enough space for a given configuration. Values are provided for ZBOSS libraries.

Samples were built using the available ZBOSS Zigbee stack. Unless stated otherwise, the default prj.conf was used.

RAM and flash memory requirements

RAM and flash memory requirement values differ depending on the programmed sample.

The following tables list memory requirement values for Zigbee samples.

Values are provided in kilobytes (KB). n/a indicates that the sample with the given variant is not supported on the DK.

The following table lists memory requirements for samples running on the nRF52833 DK (nrf52833dk).

Sample

ROM, ZBOSS stack + App

ROM, MCUboot bootloader

ROM, ZBOSS non-volatile memory

ROM, ZBOSS product config

Total ROM

RAM, ZBOSS stack + App

Total RAM

Network coordinator

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Light bulb

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Light switch

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Light switch with Zigbee FOTA

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Light switch with Multiprotocol Bluetooth LE extension

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Light switch with Multiprotocol Bluetooth LE extension and Zigbee FOTA

n/a

n/a

n/a

n/a

n/a

n/a

n/a

NCP

392

0

16

4

412

86

86

NCP with USB transport

409

64

16

4

493

95

95

Zigbee application template

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Zigbee shell

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Zigbee shell over USB

n/a

n/a

n/a

n/a

n/a

n/a

n/a

Stack memory requirements

The following table lists stack memory requirement values for main and zboss threads. These measurements were carried out with Zephyr’s Thread analyzer, using the following Kconfig options for configuration:

  • For the stack memory size of the main thread - CONFIG_MAIN_STACK_SIZE

  • For the stack memory size of the zboss thread - CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE

Values are provided in bytes (B).

The following table lists memory requirements for the nRF52840 device.

Sample

main thread stack usage

main thread stack size

zboss thread stack usage

zboss thread stack size

Network coordinator

656

2048

3032

5120

Light bulb

664

2048

3036

5120

Light switch

728

2048

3008

5120