Home/Support/Support Forum/How to calculate available memory space?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to calculate available memory space?

0 votes
Hi !

I need to know how to fill the xmem var section (no bbram) and calculate hot to change limits from segments in physical address space.


I'm using DC 10.70 and RCM4310 module.

this is my .org file:

RCOD | | 00000h | 0000h | 04ae0h | 0c800h |
RESV | | 0c800h | e800h | 01800h | 01800h |
XCOD | | 0e000h | e000h | 01f98h | 02000h |
RCON | | 10000h | 0000h | 03c6eh | 04000h |
RVAR | | 147ach | 47ach | 08054h | 08800h |
RESV | | 1c800h | c800h | 00200h | 00200h |
RESV | | 1ca00h | ca00h | 00100h | 00100h |
WCOD | | 1cb00h | cb00h | 00300h | 00300h |
RVAR | | 1cff8h | cff8h | 00008h | 00200h |
XCOD | | 1d000h | e000h | 59c2ah | 5c000h |
XVAR | | 7f000h | f000h | 00000h | 06000h | <<<
RESV | | 7f000h | e000h | 01000h | 01000h |
RESV | | 80000h | e000h | 80000h | 80000h |
XVAR | x | 1019e4h | 59e4h | 7961ch | 7b000h |
RESV | x | 17b000h | e000h | 05000h | 05000h |

I have used this in project options defines (compile in flash and with separate I&D):

BBROOTDATA_SIZE_4K=0
ROOT_SIZE_4K=4
XMEMCODE_SIZE=0X79000


and as you can see in the arrow this segment is not used ...Why? I need to calculate my xvar and xcode and stack available total space.

Why I can't see segments in phys addresses > 80 000 (RAM)?


There are other defines to use? Sometimes compiler say me the out of xmem code space and often in run-time I have xalloc errors.... I have filled the intere memory??

Thanks in advance.
asked Jul 15, 2013 in Other/Legacy by FabioPD New to the Community (5 points)

Please log in or register to answer this question.

1 Answer

0 votes
Hello, This article may help you...
http://www.digi.com/ask_larry/2009/1208
answered Sep 13, 2013 by cpigilam Veteran of the Digi Community (655 points)
...