Stack Size and Minimum Heap Size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Stack Size and Minimum Heap Size

2,656 次查看
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 项奖励
回复
3 回复数

2,182 次查看
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 项奖励
回复

2,182 次查看
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 项奖励
回复

2,182 次查看
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