The CPU stack size and minimum heap size are referenced from two variables. If CPU stack and heap sizes are required that are larger than the defaults of 5K bytes and 2K bytes respectively, these should now be defined in the application makefiles. The variables to be defined in the makefile are: STACK_SIZE ?= 6000 MINIMUM_HEAP_SIZE ?= 2000
We define the stack size to be 5000 by default and heap to be 2000 by default for JN-SW-4168 SDK as this is the minimum required for Zigbee application using JN-SW-4168 SDK.
Maximum value depend on how much RAM is left in your application