source: rtems/bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk @ 05a4c70a

Last change on this file since 05a4c70a was 05a4c70a, checked in by Sebastian Huber <sebastian.huber@…>, on 04/03/23 at 06:11:49

bsp/tms570: Improve POM handling

Place the vector table in the start section so that the overlay can be
avoided if we execute from internal flash. The problem is that when the
POM is enabled, the ECC cannot be enabled for the internal flash.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1
2MEMORY {
3        ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 3M
4        RAM_INT_VEC :    ORIGIN = 0x08000000, LENGTH = 256
5        RAM_INT (AIWX) : ORIGIN = 0x08000100, LENGTH = 256k - 256
6        RAM_EXT (AIWX) : ORIGIN = 0x80000000, LENGTH = 8M
7}
8
9REGION_ALIAS ("REGION_START", ROM_INT);
10REGION_ALIAS ("REGION_VECTOR", RAM_INT);
11REGION_ALIAS ("REGION_TEXT", ROM_INT);
12REGION_ALIAS ("REGION_TEXT_LOAD", ROM_INT);
13REGION_ALIAS ("REGION_RODATA", ROM_INT);
14REGION_ALIAS ("REGION_RODATA_LOAD", ROM_INT);
15REGION_ALIAS ("REGION_DATA", RAM_INT);
16REGION_ALIAS ("REGION_DATA_LOAD", ROM_INT);
17REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT);
18REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM_INT);
19REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);
20REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM_INT);
21REGION_ALIAS ("REGION_BSS", RAM_INT);
22REGION_ALIAS ("REGION_WORK", RAM_INT);
23REGION_ALIAS ("REGION_STACK", RAM_INT);
24REGION_ALIAS ("REGION_NOCACHE", RAM_INT);
25REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_INT);
26
27bsp_vector_table_in_start_section = 1;
28bsp_int_vec_overlay_start = ORIGIN(RAM_INT_VEC);
29
30INCLUDE linkcmds.armv4
Note: See TracBrowser for help on using the repository browser.