Hi..
I have this problem that I cannot retrieve the Start and End address of segment
Let's say I have this in my PRM file:
SEGMENTS
RAM_F8 = READ_WRITE 0xF81100 TO 0xF81FFF ALIGN 2[1:1];
RAM_F9 = READ_WRITE 0xF91000 TO 0xF91FFF ALIGN 2[1:1];
...
RAM_FD = READ_WRITE 0xFD1000 TO 0xFD1FFF ALIGN 2[1:1];
END
PLACEMENT
XGATE_STRING_RAM, XGATE_CONST_RAM, XGATE_CODE_RAM, XGATE_DATA
INTO RAM_FD;
END
How will I be able to retrieve the start and end address of XGATE_DATA?
I have tried this:
extern T_s8 __SEG_START_XGATE_DATA[];
extern T_s8 __SEG_END_XGATE_DATA[];
#define XGateRamStart __SEG_START_XGATE_DATA
#define XGateRamEnd __SEG_END_XGATE_DATA
But this does not seem to work. The values I retrieve for __SEG_START_XGATE_DATA and __SEG_END_XGATE_DATA are 0.
Please if you have an idea how to do it. Thanks