How Much RAM For MQX 3.8 Kernal Data?

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

How Much RAM For MQX 3.8 Kernal Data?

Jump to solution
580 Views
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 Kudos
1 Solution
294 Views
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

View solution in original post

0 Kudos
2 Replies
295 Views
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 Kudos
294 Views
Tim562
Senior Contributor I

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

 

Best Regards,

~Tim

0 Kudos