Find available SRAM memory

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

Find available SRAM memory

跳至解决方案
1,193 次查看
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 项奖励
回复
1 解答
907 次查看
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 项奖励
回复
2 回复数
907 次查看
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 项奖励
回复
908 次查看
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 项奖励
回复