About 'MINIMUM_HEAP_SIZE' in JN-SW-4170

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

About 'MINIMUM_HEAP_SIZE' in JN-SW-4170

555 Views
teddyzheng
Contributor I

In JN-SW-4170, the variables I see are generated at compile time. Didn't see the dynamically allocated variables, what is the space for which 'MINIMUM_HEAP_SIZE' is prepared for?
I still have another question that I want to ask.
The memory size used by firmware is data + bss + heap or data + bss?
I found that some programs can run when data + bss < 32768 < data + bss + heap, but some can't.
So, I don't know where 'MINIMUM_HEAP_SIZE' is used. It seems that there is no dynamically allocated data in the code.

Thanks!

Labels (1)
0 Kudos
3 Replies

447 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Teddy,

The MINIMUM_HEAP_SIZE       = 2000

There is no dynamically memory.

Regards,

Mario

0 Kudos

447 Views
teddyzheng
Contributor I

Hi Mario,

Thanks for reply.

Must be set to 2000?

Does the firmware's running memory need to include this number?

Can I set it smaller? For example 0?

0 Kudos

447 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Teddy,

Yes, it must be set to 2000. The stack needs this minimum size memory.

Regards,

Mario

0 Kudos