Memory requirements

Note

Zigbee R22 is currently in maintenance mode, and it is not recommended to use it for new Zigbee designs. While critical bug fixes and security updates will be provided as necessary, it will not receive any enhancements or new features. The Zigbee R23 add-on represents Nordic’s primary solution for future Zigbee developments, offering improvements, support for new features, and support for the nRF52840 SoC and new platforms such as the nRF54L series.

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 DK, and 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 nRF52840 DK (nrf52840dk).

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

339

0

32

4

375

72

72

Light bulb

363

0

32

4

399

58

58

Light switch

282

0

32

4

318

53

53

Light switch with Zigbee FOTA

298

48

32

4

382

61

61

Light switch with Multiprotocol Bluetooth LE extension

395

0

32

4

431

69

69

Light switch with Multiprotocol Bluetooth LE extension and Zigbee FOTA

411

48

32

4

495

76

76

NCP

358

0

32

4

394

84

84

NCP with USB transport

376

64

32

4

476

93

93

Zigbee application template

338

0

32

4

374

67

67

Zigbee shell

417

0

32

4

453

84

84

Zigbee shell over USB

435

0

32

4

471

93

93

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 nRF52 Series devices.

Sample

main thread stack usage

main thread stack size

zboss thread stack usage

zboss thread stack size

Network coordinator

688

2048

968

2048

Light bulb

688

2048

968

2048

Light switch

672

2048

968

2048