# Memory map for RCM6750.

**URL:** <https://forums.digi.com/t/memory-map-for-rcm6750/13708>\
**Category:** Rabbit\
**Tags:** flash-write, flash, rcm6750, location\
**Created:** [October 7, 2014, 11:54pm UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708 "2014-10-07T23:54:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maniac84](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@maniac84](https://forums.digi.com/u/maniac84)\
**Post date:** [October 7, 2014, 11:54pm UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/1 "2014-10-07T23:54:28Z")

</div>

Hi guys, do you guys have any info for the memory map of RCM6750? I can’t find it anywhere in the user manual of RCM6750.

I want something like the memory map for Rabbit 6000 which is in page 55 of Rabbit 6000 User’s Manual.

This is because I want to use the function xmem2root and root2xmem but don’t know what memory address to put.

Does the xmem refer to the 1M SRAM on the RCM6750?

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [October 8, 2014, 3:02am UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/2 "2014-10-08T03:02:32Z")

</div>

The RCM6750 has 3 blocks of RAM: 32K of battery backable RAM internal to the chip, 1MB of fast RAM internal to the chip and 1MB of slower battery backable RAM which is on the module external to the Rabbit 6000 chip.

To see the memory map (and how much is used etc) have a look a the .org file after you have compiled a program. This has all the details and I think there is an app note on the meaning of the different sections.

xmem refers to memory outside of the bottom 64K of the memory map. The xmem2root and root2xmem functions can be used but to be honest using far pointers is generally easier unless there is a very specific reason to need them. With far pointers you can access data directly and most of the memory and string functions now support them by default.

---

<div class="post-metadata">

**Author:** ![maniac84](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@maniac84](https://forums.digi.com/u/maniac84)\
**Post date:** [October 8, 2014, 4:23am UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/3 "2014-10-08T04:23:10Z")

</div>

Ok. I have check out my .org file after compile.  
There are rootcode, no\_lcall, xmemcode, rootconst, rootdata… and so on.  
Should I want like to use xmem2root and root2xmem, which location address should I put?

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [October 8, 2014, 4:47am UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/4 "2014-10-08T04:47:51Z")

</div>

Generally you don’t need to know the address before hand. If you are using xmem as opposed to far to access data you use the xdata, xstring, ximport keywords when defining the data or use xalloc() to allocate blocks of xmem. This way the compiler and runtime look after the exact location for you.

The example programs in the samples\xmem folder show examples of all of these.

Alternatively, the examples in samples\rabbit4000\far show the use of far data and pointers. Searching the files in the samples folders for “far” shows lots of examples of this as well.

---

<div class="post-metadata">

**Author:** ![maniac84](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@maniac84](https://forums.digi.com/u/maniac84)\
**Post date:** [October 8, 2014, 11:14pm UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/5 "2014-10-08T23:14:39Z")

</div>

If I want to store data in the 4MB serial flash in the RCM6750, is it that I must use sf\_RAMToPage(a) function? Where ‘a’ is the page number.  
What is the limit of the page number?

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [October 9, 2014, 1:11am UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/6 "2014-10-09T01:11:28Z")

</div>

Have a look at the samples\rcm6700\serial\_flash folder for some help with all this.

---

<div class="post-metadata">

**Author:** ![MargaretK](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MargaretK](https://forums.digi.com/u/MargaretK)\
**Post date:** [October 10, 2014, 12:49pm UTC](https://forums.digi.com/t/memory-map-for-rcm6750/13708/7 "2014-10-10T12:49:29Z")

</div>

You should also look at an article about memory utilization at the following link:

[http://www.digi.com/ask\_larry/2009/1208](http://www.digi.com/ask_larry/2009/1208)
