Hi
using Axiom EVB9S12NE64.
trying to use external SRAM in banked memory model
can't bank SRAM in banked memory model.OK
I can live with 24K
issue is PRM file
here's segments & placement:
SEGMENTS
RAM=READ_WRITE 0x400 TO 7FFF; //internal SRAM
ERAM=READ_WRITE 0x200 to 0x7FFF; //24K of external SRAM
ROM_C000=READ_ONLY 0xC000 to 0x777F; //unbanked flash
PAGE_3C=READ_ONLY 0x3C8000 to 0x3CBFFF; //banked flash
END
PLACEMENT
_PRESTART,STARTUP,ROM_VAR,STRINGS,VIRTUAL_TABLE_SEGMENT,NON_BANKED,
COPY INTO ROM_C000;
DEFAULT_ROM INTO PAGE_3C;
DEFAULT_RAM INTO RAM,ERAM;
END
I try to write/verify to 24K in SRAM(big array) in main()
Code compiles okay but write/verify doesn't work
If I modify placement like so,it works if I use a DATA_SEG pragma to reference EXTRAM
my 24K array is placed inside the DATA_SEG pargma and an END
PLACEMENT
_PRESTART,STARTUP,ROM_VAR,STRINGS,VIRTUAL_TABLE_SEGMENT,NON_BANKED,
COPY INTO ROM_C000;
DEFAULT_ROM INTO PAGE_3C;
DEFAULT_RAM INTO RAM;
EXTRAM INTO ERAM;
END
I'm sure I'm setting up PEAR,MODE,EBICTL,MISC correctly or the second method
wouldn't work
My second solution isn't workable for me.I need the compiler to be able to use internal RAM
and external SRAM contiguously for variables,arrays etc.
Help!I am going mad.