Increase dynamic memory allocation.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Increase dynamic memory allocation.

1,006件の閲覧回数
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 返答(返信)

648件の閲覧回数
Monica
Senior Contributor III

Hello Raul!

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

Best regards,

Monica

0 件の賞賛
返信

648件の閲覧回数
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 件の賞賛
返信

648件の閲覧回数
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.