This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C167CS - can't access XRAM @0xC000

Can any one tell me how to access the XRAM at address 0xC000 on the C167CS.

I have :-
- ticked 'use on-chip xram'
- added XRAM class in linker file is as follows :-

   CLASSES (ICODE(000000h),
     IDATA0(00F600h),
     SDATA(00E000h-00E7FFh),
     SDATA0(00E000h-00E7FFh),
     XRAM(00C000h-00D7FFh),
     NCODE(010000h-013FFFh),
     .... etc
- used the RENAMECLASSE control at the top of my 'Debug.c' file and allocated some XRAM memory as follows
   #pragma RENAMECLASS(SDATA = XRAM)
   #pragma NOINIT

    static int sdata Temp[20];

The resulting .m66 file looks encouraging ...

START     STOP      LENGTH    TYPE  RTYP  ALIGN  TGR  GRP  COMB  CLASS   SECTION NAME
=====================================================================================
00C000H   00C027H   000028H   DATA  REL   WORD   ---    2  PUBL  XRAM    ?SD?DEBUG
But it doesn't work - the XRAM is not accessible. Any ideas anyone ??

Regards

Hari

0