Does JN5169 support dynamic storage?

cancel
Showing results for 
Search instead for 
Did you mean: 

Does JN5169 support dynamic storage?

401 Views
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.

Labels (2)
Tags (1)
0 Kudos
3 Replies

310 Views
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 Kudos

310 Views
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 Kudos

310 Views
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