summaryrefslogtreecommitdiff
path: root/bsp/nuvoton_nuc472/ldscripts/mem.ld
blob: 351c8f767acb6727d423e556667d110762205a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Memory Spaces Definitions.
 *
 * Need modifying for a specific board. 
 *   FLASH.ORIGIN: starting address of flash
 *   FLASH.LENGTH: length of flash
 *   RAM.ORIGIN: starting address of RAM bank 0
 *   RAM.LENGTH: length of RAM bank 0
 *
 * The values below can be addressed in further linker scripts
 * using functions like 'ORIGIN(RAM)' or 'LENGTH(RAM)'.
 */

MEMORY
{
  RAM (xrw)  : ORIGIN = 0x20000000, LENGTH =  64K
  FLASH (rx) : ORIGIN = 0x00000000, LENGTH =  512K /*4K*/
}

/*
 * For external ram use something like:

  RAM (xrw) : ORIGIN = 0x68000000, LENGTH = 8K

 */