I have a PRM file for MC9S08AC128 for which I am not using Paged Memory Concept.I would like to know whether the memory allocation will be fine for data and code .Also I have only a single pragma statement # pragma DATA_SEG MySeg for some of the gloval variables in a single .c file and for rest it is # pragma DATA_SEG Default in the same file .Whether it is required to use the Paged memory concept .Also in the map file generated ,only few of the variables use the PPAGE_2 ,rest use ROM,PAGE0,ROM1.
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
MY_STK = NO_INIT 0x15FF TO 0x17FF;
RAM1 = READ_WRITE 0x0080 TO 0x01FF;
RAMSEG = READ_WRITE 0x0200 TO 0x0370;
RAM2 = READ_WRITE 0x0372 TO 0x15FE;
RAM3 = READ_WRITE 0x1870 TO 0x20EF;
ROM = READ_ONLY 0x20F0 TO 0x7FFF;
ROM1 = READ_ONLY 0xC000 TO 0xFF9B;
/* banked FLASH ROM */
PPAGE_0 = READ_ONLY 0x008000 TO 0x00A0EF; /* PAGE partially contained in ROM segment */
PPAGE_2 = READ_ONLY 0x028000 TO 0x02BFFF;
PPAGE_4 = READ_ONLY 0x048000 TO 0x04BFFF;
PPAGE_5 = READ_ONLY 0x058000 TO 0x05BFFF;
PPAGE_6 = READ_ONLY 0x068000 TO 0x06BFFF;
PPAGE_7 = READ_ONLY 0x078000 TO 0x07BFFF;
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
MySeg INTO RAM1;
DEFAULT_RAM INTO RAM2,RAM3;
DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM,PPAGE_0,ROM1,PPAGE_2,PPAGE_4,PPAGE_5,PPAGE_6,PPAGE_7; /* See compiler option -OnB=b. */
//PAGED_ROM INTO PPAGE_0,ROM1,PPAGE_2,PPAGE_4,PPAGE_5,PPAGE_6,PPAGE_7;
SSTACK INTO MY_STK;
END
STACKSIZE 0x200