Find available SRAM memory

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

Find available SRAM memory

Jump to solution
1,188 Views
dvacasp
Contributor I

Hello all,

 

I´m using Coldfire MCF52258AG80 hardware with MQX 3.4 (planning to upgrade).

 

My question is:

 

¿Is it possible to find how much static RAM (SRAM) memory my program (together with MQX) is consuming?

 

That is, counting MQX memory, global, static and stack variables, tasks stack size, dynamically allocated variables, etc. Everything.

 

Because I need to know if certain functionality which I need to add fits into SRAM.

 

Thank you in advance,,

 

David.

 

0 Kudos
Reply
1 Solution
902 Views
dvacasp
Contributor I

Hi David,

 

thanks for your answer.

 

I´m using CW 5.9.0 and MQX 3.4, so I think I need to upgrade to use TAD.

 

Regards,

 

David.

View solution in original post

0 Kudos
Reply
2 Replies
902 Views
DavidS
NXP Employee
NXP Employee

Hi David,

If you have the CW professional you have access to the TAD (Task Aware Debugging) that allows you to see the head (SRAM) useage.  You simple run your application and halt/stop/break at some point to allow the debugger to upload the information and display it

Look at the following PDF in the MQX path starting on page 50 for some of the TAD features.

Freescale MQX3.7\doc\FSL_MQX_3_7_in_CW_10_1.pdf 

 

Hope this helps.

Regards,

David

 

0 Kudos
Reply
903 Views
dvacasp
Contributor I

Hi David,

 

thanks for your answer.

 

I´m using CW 5.9.0 and MQX 3.4, so I think I need to upgrade to use TAD.

 

Regards,

 

David.

0 Kudos
Reply