Hi Asad,
I recommend to create a routine and fill all the memory RAM and start your application, it will work like a watermark.
You have to call the routine before and after your application.
We do not have a tool that can provide the RAM that the code is using in running mode.
The reason is that I am trying to find out the maximum number of devices that can be connected to a network. In order to do that.
I don't know what is your application, but you can take a look at the IEEE 802.15.4, Support Resources for JN516x MCUs|NXP the examples are not taking a lot of memory, are not working with the ZigBee stack.
Also, if your application doesn't need a bigger heap, you can reduce this value in the makefile:
Example:
STACK_SIZE ?= 6000
MINIMUM_HEAP_SIZE ?= 2500
Note It will depend the minimum size that the SDK will need.
Best Regards,
Mario