Xbot

Defining memory segment in PRM file

Discussion created by Xbot on May 28, 2008
Latest reply on Feb 10, 2009 by CrasyCat
hi all,
 
I am defining labels inside the .prm file so i can use __SEG_START or END for a particular memory segment. Ive read tn2281 but it doesnt seem to work.
 
for instance:
 

SEGMENTS

      TESTMEM = READ_WRITE 0x140000 TO 0x77FFFF FILL 0x3F;

END

 

PLACEMENT

      TestMemory INTO TESTMEM;

END
 
usage:
 
extern char __SEG_START_TestMemory[];
#define TestMemoryStart __SEG_START_TestMemory
 
char* StartAddress = (char*)TestMemory;
 
I dont seem to get the value for StartAddress. Is there something I missed?
I am using EVB9S12XEP100 board , CW4.5
 
 

Outcomes