nRF5 SDK for Thread and Zigbee v4.2.0
Configurable ZBOSS memory sizes



Detailed Description

With ZBOSS configurable memory feature SDK user can configure some internal ZBOSS memory sizes at application compile time.

Normally sizes of all ZBOSS internal data structures are fixed during ZBOSS library build, so user of the SDK is not able to change them.

To configure memory sizes, an application must include into one of its source files one of memory configuration pre-sets: zb_mem_config_max.h, zb_mem_config_med.h or zb_mem_config_min.h. It is also possible for application to create its own pre-set basing on values from some of zb_mem_config_xxx.h.


#define ZB_TRACE_FILE_ID 40244
#include "zboss_api.h"
#include "zb_led_button.h"
#include "zb_on_off_switch.h"
/* Insert that include before any code or declaration. */
#include "zb_mem_config_max.h"
/* Next define clusters, attributes etc. */

If user does not configure memory sizes, default parameters defined in zb_vendor.h at ZBOSS library compile time will be used. There are separate default parameters sets for ZC/ZR and ZED libraries.

There are currently 4 settings in memory configuration defined in zb_mem_config_xxx.h:

That 4 settings defines optimal storage parameters values. User still can fine-tune storage constants. To do so clone some zb_mem_config_xxx.h file and re-define constants after including of zb_mem_config_common.h. Note that manual setting of the storage parameters may destabilize ZBOSS and must be done with care only if SDK user exactly knows which parameter can be changed and in which diapason.

Macro Definition Documentation


Complex user's application at that device: complex relations to other devices.


Medium user's application complexity at that device: medium relations to other devices.


Simple user's application at that device: not too many relations to other devices.


High routing and application traffic from/to that device.


Light routing and application traffic from/to that device.


Medium routing and application traffic from/to that device.


Max total number of devices in Zigbee network.

From 2 to 200.


Configure memory sizes for ZC device role


Configure memory sizes for ZED device role


Configure memory sizes for ZR device role

Documentation feedback | Developer Zone | Subscribe | Updated