Increase dynamic memory allocation.

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

Increase dynamic memory allocation.

962 Views
raulnorthstar
Contributor II

Hi Freescale Community.

I've been doing tests and I've seen that the maximum dynamic memory allocation that I can reserve is approximately 32 Kbytes, neither I can reserve two blocks of 32 Kbytes, only one block.

I need to increase the heap for dynamic memory, and to know where is defined and how to modify this value.

I am working with CW10.3, TowerK40, MQX and C++ compiler.

Thanks for any answer about this problem.


0 Kudos
Reply
3 Replies

604 Views
Monica
Senior Contributor III

Hello Raul!

Was that helpful? Please let us know! :smileywink:

Best regards,

Monica

0 Kudos
Reply

604 Views
raulnorthstar
Contributor II

Hi Monica.

Finally, we have installed a SRAM memory and we haven't changed the free space definition of heap.

Thanks!

Raúl

0 Kudos
Reply

604 Views
JerryFan
NXP Employee
NXP Employee

By default, the MQX will create system pool after the kernal_data(located at BSP_DEFALT_START_OF_KERNEL_MEMORY), please refer the code in mem.c, line 1975-1977.

And please check the memory pool infor using MQX plug-in, escpecaily the free size of it after the first 32KByte allcated.