How Much RAM For MQX 3.8 Kernal Data?

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

How Much RAM For MQX 3.8 Kernal Data?

跳至解决方案
1,673 次查看
Tim562
Senior Contributor I

Hi All,

 

Can anyone tell me how to determine how much RAM is required for KERNAL_DATA with MQX 3.7 and a MPC5125? The Linker Command Files seem to provide an awful lot of RAM (avg 100MB out of 256MB) in the MQX examples. I'd like to shrink this amount to free up RAM for use by my data objects but I'm not sure how to determine how much is required.

 

Also, am I correct to assume that the memory allocated for the heap is taken from this RAM? Thanks!

 

~Tim

0 项奖励
回复
1 解答
1,387 次查看
c0170
Senior Contributor III

Hi tim562,

 

Your assumption is right with the heap taken from RAM.

We checked MPC5125 linker command file and this issue is going to be fixed soon. You can correct it in the meantime.

Look at twrpxs20 linker command file where kernel data are put in the end of ram, start is not assigned to the specific address.

 

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,388 次查看
c0170
Senior Contributor III

Hi tim562,

 

Your assumption is right with the heap taken from RAM.

We checked MPC5125 linker command file and this issue is going to be fixed soon. You can correct it in the meantime.

Look at twrpxs20 linker command file where kernel data are put in the end of ram, start is not assigned to the specific address.

 

Regards,

MartinK

0 项奖励
回复
1,387 次查看
Tim562
Senior Contributor I

I see what your saying Kojto, thanks for the reply.

 

Best Regards,

~Tim

0 项奖励
回复