include/hcs12/board/arch/memory.x
author Edouard Tisserant
Wed, 13 Jun 2012 19:08:58 +0200
changeset 739 4faa0bb578e0
parent 0 4472ee7c6c3e
permissions -rw-r--r--
Merged Christian Taedcke changes
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
/* L'espace mémoire du MCS12DP256 en "Normal single ship */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
/* ----------------------------------------------------- */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
/* 0X0000 - 0X0399 : Registres
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
   0X0400 - 0X0FFF : 4KO EEPROM
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
   0X1000 - 0X3FFF : 12KO RAM
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
   0X4000 - 0XFFFF : 48KO FLASH (accès par pages jusau'à 256 KO 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
                     entre 0X8000 et 0XBFFF)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
 francis.dupin@inrets.fr                   
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
*/   
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
/*
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
----------------------------------------------------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
Programme dans la flash, données dans la RAM interne
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
----------------------------------------------------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
/* Fixed definition of the available memory banks.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
   See generic emulation script for a user defined configuration.  */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
MEMORY
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
{
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
  /* Registres softs utilisés par gcc. Ne jamais modifier */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
  page0 (rwx) : ORIGIN = 0x0, LENGTH = 256
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
  /* Programme placé en flash, de 4000 à FF00-1 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
  /* (Les vecteurs d'interruption sont en flash entre 0XFF00 et 0XFFFF */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
  text  (rx)  : ORIGIN = 0x4000, LENGTH = 0xFF00 - 0x4000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
  /* Données en RAM (12k), de 0X1000 à 0X3FFF*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
  data        : ORIGIN = 0x1000, LENGTH = 0x4000 - 0x1000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
/* Setup the stack on the top of the data memory bank.  */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
PROVIDE (_stack = 0x3FFF);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
vectors_addr = 0xff00;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39