Does JN5169 support dynamic storage?

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

Does JN5169 support dynamic storage?

1,001 次查看
1979717461
Contributor III

JN5169 does not support dynamic storage(compilation error with malloc function), but why is the minimum heap set to 2000 in JN-AN-1217  Makefile?

STACK_SIZE = 5000
MINIMUM_HEAP_SIZE = 2000

Thanks.

标签 (2)
标记 (1)
0 项奖励
3 回复数

910 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

I hope you are doing great.

Unfortunately, we do not provide dynamic memory allocation on the JN5169 device.

We recommend memory pools and do the allocation from there.

Sorry for any inconvenience that this may cause you.

Regards,

Mario

0 项奖励

910 次查看
1979717461
Contributor III

Hi,

JN5169 does not support dynamic memory, so will the setting of MINIMUM_HEAP_SIZE = 2000 in the Makefile occupy RAM space?
If it takes up memory, can I remove it?

Regards.

hs

0 项奖励

910 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

This value is reserving the memory size that the Stack, in this case, will need for running all the processes that it needs.

Regards,

Mario