RAM available

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

RAM available

跳至解决方案
2,300 次查看
MQXuser
Contributor III

I would like to know if there is a place in TAD to see how much RAM is still available to use for new tasks?

Running MCF52259 with MQX 3.4

0 项奖励
回复
1 解答
1,485 次查看
PetrM
Senior Contributor I

Yes, MQX -> Memory Blocks or Lightweight Memory Blocks (Owner == Free).

 

PetrM

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,486 次查看
PetrM
Senior Contributor I

Yes, MQX -> Memory Blocks or Lightweight Memory Blocks (Owner == Free).

 

PetrM

 

0 项奖励
回复
1,485 次查看
drummer
Contributor IV

 

 

In my firmware the user can assign different applications to the three communication channels provided by the MCF52259.

I am trying to determine how much memory each application uses so I can ensure that I won't be running out of memory.

This is not as easy as it seems since the TCP/IP tasks allocate blocks as they go.

The TAD provides a listing of memory use and lists the owner as free for available memory.

Sometimes the "free" owner is listed several times. Is the sum of all free equal to the actual memory available?

 

I wish I could find a way of copying the table into an excell spreadsheet for analysis.

 

 

0 项奖励
回复
1,485 次查看
PetrM
Senior Contributor I

Hello,

 

yes, you need to sum all free blocks to get overall free memory.

There are also functions in mem_util.c (_mem_get_highwater...) that could help you to find out the maximum amount of memory ever used.

 

Regards,

PetrM

0 项奖励
回复