Increase dynamic memory allocation.

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

Increase dynamic memory allocation.

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

714 次查看
Monica
Senior Contributor III

Hello Raul!

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

Best regards,

Monica

0 项奖励
回复

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

714 次查看
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.