/*****************************************************************************/
/*                                             COPYRIGHT (c) MOTOROLA 2003   */
/* FILE NAME: _MC9S12C32_FLAT.PRM                                            */
/*                                                                           */
/* PURPOSE: Example Linker file for building a non-banked Flash target.      */
/*                                                                           */
/* TARGET DEVICE: 68HC9S12C32                                                */
/*                                                                           */
/* COMPILER:    Metrowerks                                                   */
/*                                                                           */
/* DESCRIPTION: Linker Parameter file for Metrowerks Code Warrior.           */
/*                                                                           */
/* AUTHOR: r9aabe    LOCATION: OHT      LAST EDIT DATE: 03.11.03             */
/*                                                                           */
/*****************************************************************************/

NAMES  
END

SEGMENTS
    RAM = READ_WRITE 0x3800 TO 0x3FFE;
    /* unbanked FLASH ROM */
    ROM_4000 = READ_ONLY  0x4000 TO 0x7FFF;
    ROM_C000 = READ_ONLY  0xC000 TO 0xFEFF;
    /* banked FLASH ROM */
/*  PAGE_3E = READ_ONLY  0x3E8000 TO 0x3EBFFF; not used: equivalent to ROM_4000 */
/*  PAGE_3F = READ_ONLY  0x3F8000 TO 0x3FBFFF; not used: equivalent to ROM_C000 */
END

 
PLACEMENT
    _PRESTART, STARTUP,
    ROM_VAR, STRINGS,
    NON_BANKED, DEFAULT_ROM,
    COPY                    INTO  ROM_4000,ROM_C000;
    DEFAULT_RAM             INTO  RAM;    
END

STACKTOP 0x3FFF /* 0.17K bytes = 1/12 of RAM */

VECTOR ADDRESS 0xFFFE  _Startup    			/* 0xFFFE Reset   */
VECTOR ADDRESS 0xFFFC  clockmonitor_isr   	/* 0xFFFC Clock monitor fail reset  */
VECTOR ADDRESS 0xFFFA  cop_isr    			/* 0xFFFA COP failure reset  */
VECTOR ADDRESS 0xFFF8  trap_isr   			/* 0xFFF8 Unimplemented instruction trap  */
VECTOR ADDRESS 0xFFF6  swi_isr    			/* 0xFFF6 SWI  */
VECTOR ADDRESS 0xFFF4  xirq_isr    			/* 0xFFF4 XIRQ  */
VECTOR ADDRESS 0xFFF2  irq_isr    			/* 0xFFF2 IRQ  */
VECTOR ADDRESS 0xFFF0  rti_isr   			/* 0xFFF0 real Time Interrupt  */
VECTOR ADDRESS 0xFFEE  ServiceLedindicator    		/* 0xFFEE Timer channel 0  */
VECTOR ADDRESS 0xFFEC  tim0_ch1_isr    		/* 0xFFEC Timer channel 1  */
VECTOR ADDRESS 0xFFEA  tim0_ch2_isr    		/* 0xFFEA Timer channel 2  */
VECTOR ADDRESS 0xFFE8  tim0_ch3_isr    		/* 0xFFE8 Timer channel 3  */
VECTOR ADDRESS 0xFFE6  tim0_ch4_isr    		/* 0xFFE6 Timer channel 4  */
VECTOR ADDRESS 0xFFE4  tim0_ch5_isr    		/* 0xFFE4 Timer channel 5  */
VECTOR ADDRESS 0xFFE2  tim0_ch6_isr   		/* 0xFFE2 Timer channel 6  */
VECTOR ADDRESS 0xFFE0  tim0_ch7_isr    		/* 0xFFE0 Timer channel 7  */
VECTOR ADDRESS 0xFFDE  tim0_overflow_isr   	/* 0xFFDE Timer overflow  */
VECTOR ADDRESS 0xFFDC  pa_a_overflow_isr   	/* 0xFFDC Pulse accumulator A overflow  */
VECTOR ADDRESS 0xFFDA  pa_a_edge_isr   		/* 0xFFDA Pulse accumulator input edge  */
VECTOR ADDRESS 0xFFD8  spi0_isr    			/* 0xFFD8 SPI Serial transfer complete  */
VECTOR ADDRESS 0xFFD6  sci0_isr    			/* 0xFFD6 SCI0  */
VECTOR ADDRESS 0xFFD4  unused_isr  			/* 0xFFD4 unused vector  */
VECTOR ADDRESS 0xFFD2  atd0_isr    			/* 0xFFD2 ATD0  */
VECTOR ADDRESS 0xFFD0  unused_isr   		/* 0xFFD0 unused vector  */
VECTOR ADDRESS 0xFFCE  portj_isr    		/* 0xFFCE port J  */
VECTOR ADDRESS 0xFFCC  unused_isr    		/* 0xFFCC unused vector  */
VECTOR ADDRESS 0xFFCA  unused_isr    		/* 0xFFCA unused vector  */
VECTOR ADDRESS 0xFFC8  unused_isr   	    /* 0xFFC8 unused vector  */
VECTOR ADDRESS 0xFFC6  crg_pll_lock_isr    	/* 0xFFC6 CRG lock  */
VECTOR ADDRESS 0xFFC4  crg_scm_isr    		/* 0xFFC4 SCME  */
VECTOR ADDRESS 0xFFC2  unused_isr    		/* 0xFFC2 unused vector  */
VECTOR ADDRESS 0xFFC0  unused_isr    		/* 0xFFC0 unused vector  */
VECTOR ADDRESS 0xFFBE  unused_isr   		/* 0xFFBE unused vector  */
VECTOR ADDRESS 0xFFBC  unused_isr    		/* 0xFFBC unused vector  */
VECTOR ADDRESS 0xFFBA  unused_isr   		/* 0xFFBA unused vector  */
VECTOR ADDRESS 0xFFB8  flash_isr    		/* 0xFFB8 Flash  */
VECTOR ADDRESS 0xFFB6  mscan0_wakeup_isr    /* 0xFFB6 MSCAN 0 wake-up  */
VECTOR ADDRESS 0xFFB4  mscan0_error_isr   	/* 0xFFB4 MSCAN 0 errors  */
VECTOR ADDRESS 0xFFB2  mscan0_rx_isr   		/* 0xFFB2 MSCAN 0 receive  */
VECTOR ADDRESS 0xFFB0  mscan0_tx_isr    	/* 0xFFB0 MSCAN 0 transmit  */
VECTOR ADDRESS 0xFFAE  unused_isr   		/* 0xFFAE unused vector  */
VECTOR ADDRESS 0xFFAC  unused_isr    		/* 0xFFAC unused vector  */
VECTOR ADDRESS 0xFFAA  unused_isr    		/* 0xFFAA unused vector  */
VECTOR ADDRESS 0xFFA8  unused_isr    		/* 0xFFA8 unused vector  */
VECTOR ADDRESS 0xFFA6  unused_isr   		/* 0xFFA6 unused vector  */
VECTOR ADDRESS 0xFFA4  unused_isr    		/* 0xFFA4 unused vector  */
VECTOR ADDRESS 0xFFA2  unused_isr    		/* 0xFFA2 unused vector  */
VECTOR ADDRESS 0xFFA0  unused_isr    		/* 0xFFA0 unused vector  */
VECTOR ADDRESS 0xFF9E  unused_isr   		/* 0xFF9E unused vector  */
VECTOR ADDRESS 0xFF9C  unused_isr    		/* 0xFF9C unused vector  */
VECTOR ADDRESS 0xFF9A  unused_isr    		/* 0xFF9A unused vector  */
VECTOR ADDRESS 0xFF98  unused_isr    		/* 0xFF98 unused vector  */
VECTOR ADDRESS 0xFF96  unused_isr    		/* 0xFF96 unused vector  */
VECTOR ADDRESS 0xFF94  unused_isr    		/* 0xFF94 unused vector  */
VECTOR ADDRESS 0xFF92  unused_isr   		/* 0xFF92 unused vector  */
VECTOR ADDRESS 0xFF90  unused_isr   		/* 0xFF90 unused vector  */
VECTOR ADDRESS 0xFF8E  portp_isr    		/* 0xFF8E Port P Interrupt */
VECTOR ADDRESS 0xFF8C  pwm_shutdown_isr    	/* 0xFF8C PWM Shutdown  */
VECTOR ADDRESS 0xFF8A  vreg_lvi_isr			/* 0xFF8A VREG LVI */
