include/hcs12/board/arch/memory.x
author etisserant
Mon, 02 Jul 2007 18:22:58 +0200
changeset 236 905677ed00f3
parent 0 4472ee7c6c3e
permissions -rw-r--r--
Full preliminary implementation of TPDO transmit type:
- SYNC (N) (1-240)
- RTR only + SYNC (252)
- RTR only (253)
- EVENT, with timer and inhibit time (254 and 255)

User app have to call sendPDOevent(d) to eventually signal mapped data changes.
Callbacks added to 0x140N, TPDO comm parameters for on the fly timers values change.
TestMasterSlave updated.

/* L'espace mémoire du MCS12DP256 en "Normal single ship */
/* ----------------------------------------------------- */
/* 0X0000 - 0X0399 : Registres
   0X0400 - 0X0FFF : 4KO EEPROM
   0X1000 - 0X3FFF : 12KO RAM
   0X4000 - 0XFFFF : 48KO FLASH (accès par pages jusau'à 256 KO 
                     entre 0X8000 et 0XBFFF)

 francis.dupin@inrets.fr                   
*/   

/*
----------------------------------------------------------------
Programme dans la flash, données dans la RAM interne
----------------------------------------------------------------
*/

/* Fixed definition of the available memory banks.
   See generic emulation script for a user defined configuration.  */
MEMORY
{
  /* Registres softs utilisés par gcc. Ne jamais modifier */
  page0 (rwx) : ORIGIN = 0x0, LENGTH = 256

  /* Programme placé en flash, de 4000 à FF00-1 */
  /* (Les vecteurs d'interruption sont en flash entre 0XFF00 et 0XFFFF */
  text  (rx)  : ORIGIN = 0x4000, LENGTH = 0xFF00 - 0x4000
 
  /* Données en RAM (12k), de 0X1000 à 0X3FFF*/
  data        : ORIGIN = 0x1000, LENGTH = 0x4000 - 0x1000
}
/* Setup the stack on the top of the data memory bank.  */
PROVIDE (_stack = 0x3FFF);


vectors_addr = 0xff00;