Stack Size and Minimum Heap Size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Stack Size and Minimum Heap Size

2,647 Views
muknight
Contributor I

Hi:

   we are using JN5169 with JN-SW4168 .

 what is the maximum value that Stack Size and Minimum Size can set?

Could I get the stack size parameters in my program? How do I get this parameter?

Best Regards, 

Pan

0 Kudos
Reply
3 Replies

2,173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

HI Feng,

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

Best Regards,

Mario

0 Kudos
Reply

2,173 Views
muknight
Contributor I

Hi Mario,

Thanks for your answer.

I know that I can define these two values in the makefile.And I want to know how much I can define the maximum value?

Best Regards,

Feng

0 Kudos
Reply

2,173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Feng,

 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 

Best Regards,

Mario