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 |
|---|---|---|---|---|---|---|---|
339 |
0 |
32 |
4 |
375 |
72 |
72 |
|
363 |
0 |
32 |
4 |
399 |
58 |
58 |
|
282 |
0 |
32 |
4 |
318 |
53 |
53 |
|
Light switch with Zigbee FOTA |
298 |
48 |
32 |
4 |
382 |
61 |
61 |
395 |
0 |
32 |
4 |
431 |
69 |
69 |
|
Light switch with Multiprotocol Bluetooth LE extension and Zigbee FOTA |
411 |
48 |
32 |
4 |
495 |
76 |
76 |
358 |
0 |
32 |
4 |
394 |
84 |
84 |
|
376 |
64 |
32 |
4 |
476 |
93 |
93 |
|
338 |
0 |
32 |
4 |
374 |
67 |
67 |
|
417 |
0 |
32 |
4 |
453 |
84 |
84 |
|
435 |
0 |
32 |
4 |
471 |
93 |
93 |
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 |
|---|---|---|---|---|---|---|---|
322 |
0 |
16 |
4 |
342 |
66 |
66 |
|
346 |
0 |
16 |
4 |
366 |
53 |
53 |
|
265 |
0 |
16 |
4 |
285 |
47 |
47 |
|
Light switch with Zigbee FOTA |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
378 |
0 |
16 |
4 |
398 |
63 |
63 |
|
Light switch with Multiprotocol Bluetooth LE extension and Zigbee FOTA |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
341 |
0 |
16 |
4 |
361 |
79 |
79 |
|
358 |
64 |
16 |
4 |
442 |
88 |
88 |
|
321 |
0 |
16 |
4 |
341 |
61 |
61 |
|
400 |
0 |
16 |
4 |
420 |
78 |
78 |
|
418 |
0 |
16 |
4 |
438 |
88 |
88 |
The following table lists memory requirements for samples running on the nRF5340 DK (nrf5340dk).
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 |
|---|---|---|---|---|---|---|---|
314 |
0 |
32 |
4 |
350 |
77 |
77 |
|
339 |
0 |
32 |
4 |
375 |
64 |
64 |
|
258 |
0 |
32 |
4 |
294 |
58 |
58 |
|
Light switch with Zigbee FOTA |
274 |
64 |
32 |
4 |
374 |
73 |
73 |
322 |
0 |
32 |
4 |
358 |
74 |
74 |
|
Light switch with Multiprotocol Bluetooth LE extension and Zigbee FOTA |
338 |
64 |
32 |
4 |
438 |
88 |
88 |
333 |
0 |
32 |
4 |
369 |
90 |
90 |
|
351 |
64 |
32 |
4 |
451 |
98 |
98 |
|
313 |
0 |
32 |
4 |
349 |
72 |
72 |
|
393 |
0 |
32 |
4 |
429 |
89 |
89 |
|
411 |
0 |
32 |
4 |
447 |
98 |
98 |
The following table lists memory requirements for samples running on the nR21540 DK (nrf21540dk).
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 |
|---|---|---|---|---|---|---|---|
337 |
0 |
32 |
4 |
373 |
72 |
72 |
|
362 |
0 |
32 |
4 |
398 |
58 |
58 |
|
281 |
0 |
32 |
4 |
317 |
53 |
53 |
|
Light switch with Zigbee FOTA |
296 |
48 |
32 |
4 |
380 |
61 |
61 |
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 |
356 |
0 |
32 |
4 |
392 |
84 |
84 |
|
374 |
64 |
32 |
4 |
474 |
93 |
93 |
|
336 |
0 |
32 |
4 |
372 |
67 |
67 |
|
415 |
0 |
32 |
4 |
451 |
84 |
84 |
|
433 |
0 |
32 |
4 |
469 |
93 |
93 |
The following table lists memory requirements for samples running on the nRF52840 Dongle (nrf52840dongle_nrf52840).
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 |
|---|---|---|---|---|---|---|---|
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
|
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
|
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 |
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 |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
|
370 |
4 |
32 |
4 |
410 |
92 |
92 |
|
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
|
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
n/a |
|
429 |
4 |
32 |
4 |
469 |
91 |
91 |
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
mainthread -CONFIG_MAIN_STACK_SIZEFor the stack memory size of the
zbossthread -CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE
Values are provided in bytes (B).
The following table lists memory requirements for the nRF52 Series devices.
Sample |
|
|
|
|
|---|---|---|---|---|
688 |
2048 |
968 |
2048 |
|
688 |
2048 |
968 |
2048 |
|
672 |
2048 |
968 |
2048 |
The following table lists memory requirements for the nRF53 Series devices.
Sample |
|
|
|
|
|---|---|---|---|---|
756 |
2048 |
980 |
2048 |
|
756 |
2048 |
980 |
2048 |
|
756 |
2048 |
980 |
2048 |