RAM available

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

RAM available

Jump to solution
1,337 Views
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 Kudos
1 Solution
522 Views
PetrM
Senior Contributor I

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

 

PetrM

 

View solution in original post

0 Kudos
3 Replies
523 Views
PetrM
Senior Contributor I

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

 

PetrM

 

0 Kudos
522 Views
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 Kudos
522 Views
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 Kudos