]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commitdiff
PDK-6815 Move the reset vector to OCMC
authorsujith <sujith.s@ti.com>
Wed, 14 Oct 2020 20:18:25 +0000 (01:48 +0530)
committerSivaraj R <sivaraj@ti.com>
Fri, 16 Oct 2020 03:42:37 +0000 (22:42 -0500)
By default the sysbios entry point was set to ATCM, since the SBL
disables the ATCM now, moved the sysbios entry point to OCMC

Tested with udma memcopy example on AM65xx evm

Signed-off-by: sujith <sujith.s@ti.com>
packages/ti/build/am65xx/linker_r5_sysbios.lds [changed mode: 0644->0755]
packages/ti/build/am65xx/sysbios_r5f.cfg [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d3979e3..b3e14ff
 /*----------------------------------------------------------------------------*/
 /* Linker Settings                                                            */
 /* Standard linker options                                                                                                       */
---retain="*(.intvecs)"
---retain="*(.intc_text)"
---retain="*(.rstvectors)"
 --fill_value=0
---entry_point=ti_sysbios_family_arm_v7r_keystone3_Hwi_vectors /* Default BIOS */
---retain="*(.utilsCopyVecsToAtcm)"
+-e __VECS_ENTRY_POINT
+
 
 /*----------------------------------------------------------------------------*/
 /* Memory Map                                                                 */
@@ -44,7 +41,8 @@ MEMORY
     SBL_RESERVED       (RWIX)  : origin=0x41C40600 length=0x60000 - 0x40600         /* ~126KB */
 
     /* MCU0 share locations */
-    OCMRAM     (RWIX)          : origin=0x41C60000 length=0x20000 - 0x1000          /* ~124KB */
+    OCMRAM_VECS (RWIX)  : origin=0x41C60000 length=0x100
+    OCMRAM     (RWIX)          : origin=0x41C60100 length=0x1EF00
 
     /* AM65XX M4 locations */
     MSMC3       (RWIX)          : origin=0x70000000 length=0xF0000             /* 1MB - 64K */
@@ -64,12 +62,22 @@ MEMORY
 
 SECTIONS
 {
-/* 'intvecs' and 'intc_text' sections shall be placed within                  */
-/* a range of +\- 16 MB                                                       */
-    .intvecs   : {} palign(8)          > VECTORS
-    .intc_text         : {} palign(8)          > VECTORS
-    .rstvectors : {} palign(8)             > RESET_VECTORS
-    .utilsCopyVecsToAtcm : {} palign(8) > MCU0_R5F_TCMB0
+    .vecs : {
+         *(.vecs)
+    } palign(8) > OCMRAM_VECS
+    .vecs       : {
+        __VECS_ENTRY_POINT = .;
+    } > OCMRAM_VECS
+    xdc.meta (COPY): { *(xdc.meta) } > OCMRAM
+    .init_text  : {
+                     boot.*(.text)
+                     *(.text:ti_sysbios_family_arm_MPU_*)
+                     *(.text:ti_sysbios_family_arm_v7r_Cache_*)
+                  }  palign(8) > OCMRAM
+    .text:xdc_runtime_Startup_reset__I     : {} palign(8) > OCMRAM
+    .bootCode          : {} palign(8)          > OCMRAM
+    .startupCode       : {} palign(8)          > OCMRAM
+    .startupData       : {} palign(8)          > OCMRAM, type = NOINIT
     .text      : {} palign(8)          > MSMC3
     .const     : {} palign(8)          > MSMC3
     .cinit     : {} palign(8)          > MSMC3
old mode 100644 (file)
new mode 100755 (executable)
index fa4029a..e506326
@@ -143,9 +143,6 @@ BIOS.libType = BIOS.LibType_Custom;
 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
 Timer.checkFrequency = false;
 
-var Reset = xdc.useModule("xdc.runtime.Reset");
-Reset.fxns[Reset.fxns.length++] = "&utilsCopyVecs2ATcm";
-
 /*
  * Initialize MPU and enable it
  *