source: rtems/c/src/lib/libbsp/arm/atsam/startup/linkcmds.memory.in @ f7f420e

5
Last change on this file since f7f420e was f7f420e, checked in by Christian Mauderer <Christian.Mauderer@…>, on 09/06/17 at 05:42:06

bsp/atsam: Fix MPU sections.

The nocache section has been hard coded which could lead to problems
when a bigger region should be used. Fix that.

The internal SRAM has not been set up correctly. A duplicate external
SDRAM has been set up instead.

Remove a lot of other hard coded sections too.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1MEMORY {
2        ITCM      : ORIGIN = 0x00000000, LENGTH = @ATSAM_MEMORY_TCM_SIZE@
3        INTFLASH  : ORIGIN = 0x00400000, LENGTH = @ATSAM_MEMORY_INTFLASH_SIZE@
4        DTCM      : ORIGIN = 0x20000000, LENGTH = @ATSAM_MEMORY_TCM_SIZE@
5        INTSRAM   : ORIGIN = 0x20400000, LENGTH = @ATSAM_MEMORY_INTSRAM_SIZE@ - 2 * @ATSAM_MEMORY_TCM_SIZE@ - @ATSAM_MEMORY_NOCACHE_SIZE@
6        NOCACHE   : ORIGIN = 0x20400000 + @ATSAM_MEMORY_INTSRAM_SIZE@ - 2 * @ATSAM_MEMORY_TCM_SIZE@ - @ATSAM_MEMORY_NOCACHE_SIZE@, LENGTH = @ATSAM_MEMORY_NOCACHE_SIZE@
7        SDRAM     : ORIGIN = 0x70000000, LENGTH = @ATSAM_MEMORY_SDRAM_SIZE@
8        QSPIFLASH  : ORIGIN = 0x80000000, LENGTH = @ATSAM_MEMORY_QSPIFLASH_SIZE@
9}
10
11/* Must be used only for MPU definitions */
12
13atsam_memory_itcm_begin = ORIGIN (ITCM);
14atsam_memory_itcm_end = ORIGIN (ITCM) + LENGTH (ITCM);
15atsam_memory_itcm_size = LENGTH (ITCM);
16
17atsam_memory_intflash_begin = ORIGIN (INTFLASH);
18atsam_memory_intflash_end = ORIGIN (INTFLASH) + LENGTH (INTFLASH);
19atsam_memory_intflash_size = LENGTH (INTFLASH);
20
21atsam_memory_dtcm_begin = ORIGIN (DTCM);
22atsam_memory_dtcm_end = ORIGIN (DTCM) + LENGTH (DTCM);
23atsam_memory_dtcm_size = LENGTH (DTCM);
24
25atsam_memory_intsram_begin = ORIGIN (INTSRAM);
26atsam_memory_intsram_end = ORIGIN (INTSRAM) + LENGTH (INTSRAM);
27atsam_memory_intsram_size = LENGTH (INTSRAM);
28
29atsam_memory_nocache_begin = ORIGIN (NOCACHE);
30atsam_memory_nocache_end = ORIGIN (NOCACHE) + LENGTH (NOCACHE);
31atsam_memory_nocache_size = LENGTH (NOCACHE);
32
33atsam_memory_sdram_begin = ORIGIN (SDRAM);
34atsam_memory_sdram_end = ORIGIN (SDRAM) + LENGTH (SDRAM);
35atsam_memory_sdram_size = LENGTH (SDRAM);
36
37atsam_memory_qspiflash_begin = ORIGIN (QSPIFLASH);
38atsam_memory_qspiflash_end = ORIGIN (QSPIFLASH) + LENGTH (QSPIFLASH);
39atsam_memory_qspiflash_size = LENGTH (QSPIFLASH);
Note: See TracBrowser for help on using the repository browser.