AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 30

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2302/D
EE Emulation no IRQ
NAMES
END
SECTIONS
END
PLACEMENT
EEPROM_STAT, EEPROM_VARS
END
STACKSIZE 0x100
VECTOR ADDRESS 0xFFFE
HEXFILE EE_RAMfuncs.sx OFFSET 0xC030
30
FLASH_REGS
RAM
RAM_FUNCS
FLASH_EEPROM
FLASH_CODE
PRESTART, STARTUP,
ROM_VAR, STRINGS,
NON_BANKED, DEFAULT_ROM,
COPY
DEFAULT_RAM
FLASH_REG
_Startup
This target is provided to build the final application with interrupts disabled
during programming and erasure.
The files EE_Emulation.c and main.c are compiled and linked together with the
ROM library generated by the "EE RAM functions, no IRQ" target, generating
the absolute file EE_Emulation.abs.
The linker directive "-AddEE_RAMfuncs.abs" is specified on the linker
command line to link in the previously generated ROM library.
The linker directive "-M" is specified on the linker command line so that a map
file is generated.
The application is linked to the addresses specified in the associated prm file,
EE_Emulation.prm, listed below:
The application code is placed in section FLASH_CODE.
The section FLASH_EEPROM is reserved for EEPROM emulation data and
contains all the variables in segment EEPROM_VARS. This section must be
large enough for EEPROM_BANKS x (EEPROM_SIZE_BYTES + 2).
The structure containing the Flash control registers is placed in the section
FLASH_REGS that is located at the default address. If the registers are
= NO_INIT
= READ_WRITE
= NO_INIT
= NO_INIT
= READ_ONLY
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Go to: www.freescale.com
0x100
0x0800 TO 0x0FCF;
/* reserve for RAM_FUNCS */
0x0FD0 TO 0x0FFF;
/* min 2 complete sectors */
0xC000 TO 0xC3FF;
0xD030 TO 0xD3FF;
INTO
INTO
INTO
INTO
/* list all other vectors here */
/* 0xC030 + 0x0FD0 = 0xD000 = FLASH_COPY_START */
FLASH_CODE;
FLASH_EEPROM; /* EEPROM_STAT must be first */
RAM;
FLASH_REGS;
TO 0x110;
MOTOROLA

Related parts for AN2302