I am using the Development Kit Rabbit RCM6700. I have a variable in the code to be stored in the SRAM. I declare:
#class auto #memmap xmem
…
bbram typeStruct myStruct;
…
But the compiler takes me an error: “out of variable data space Please refer to the Dynamic C User’s Manual for more information.”
The RCM6700 has 1M of RAM and 32K of SRAM memory, there is some special statement to access the backup memory space? I am using Dynamic C and 10.72A and configure the compiler option “enable separate instruction & data spaces”
Be sure to reference the Dynamic C manual on how to properly use protected variables, including calling _sysIsSoftReset(); at the start of main to restore variables that may have been mid-write during a board reset. Also note that “protected” probably won’t work for a structure.