PASDK-432:Add updates for GP boot
authorFrank Livingston <frank-livingston@ti.com>
Wed, 11 Oct 2017 17:12:39 +0000 (12:12 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Wed, 11 Oct 2017 17:15:01 +0000 (12:15 -0500)
pasdk/shared/config.bld
pasdk/test_arm/application/app.cfg
pasdk/test_arm/application/main.c
pasdk/test_dsp/application/app.cfg

index 90c148118f777f9fed027798c69ed52cdec42c47..db86d62c46eed44dbeee399a67d153d25f6d1540 100644 (file)
@@ -44,8 +44,8 @@ var Build = xdc.useModule('xdc.bld.BuildEnvironment');
  *    Address          Size             Comment
  *  -------------------------------------------------------------
  *    0C00_0000   0008_0000  ( 512 KB)  SR_MSMC     (ipc:data)
- *    0C08_0000   0004_0000  ( 256 KB)  HOST_MSMC   (code, data)
- *    0C0C_0000   0004_0000  ( 256 KB)  CORE0_MSMC  (code, data)
+ *    0C08_0000   0003_0000  ( 192 KB)  HOST_MSMC   (code, data)
+ *    0C0B_0000   0005_0000  ( 384 KB)  MSMC_RSVD   (code, data)
  *    8000_0000   0020_0000  (   2 MB)  SR_0        (ipc)
  *    8020_0000   0060_0000  (   6 MB)  COMMON_DDR3 (data)
  *    8100_0000   0100_0000  (  16 MB)  COMMON2_DDR3(code, data)      // aligned to MAR memory region  
@@ -98,7 +98,7 @@ Build.platformTable["ti.platforms.evmTCI66AK2G02:host"] = {
     
         [ "HOST_MSMC",  {
             name: "HOST_MSMC", space: "code/data", access: "RWX",
-            base: 0x0C080000, len: 0x00040000,
+            base: 0x0C080000, len: 0x00030000,
             comment: "HOST MSMC SRAM"
         }], 
         
@@ -156,10 +156,10 @@ Build.platformTable["ti.platforms.evmTCI66AK2G02:core0"] = {
     
         ["SR_MSMC", SR_MSMC], 
     
-        [ "CORE0_MSMC",  {
-            name: "CORE0_MSMC", space: "code/data", access: "RWX",
-            base: 0x0C0C0000, len: 0x00040000,
-            comment: "CORE0 MSMC SRAM"
+        [ "MSMC_RSVD",  {
+            name: "MSMC_RSVD", space: "code/data", access: "RWX",
+            base: 0x0C0B0000, len: 0x00050000,
+            comment: "RSVD MSMC SRAM"
         }], 
         
         ["SR_0", SR_0], 
index 799506d594bee572dc907d62206cd516ea90c54b..b4bcbd6b8c0e9797fa281afbb2892d5cfaf4a755 100644 (file)
@@ -72,7 +72,6 @@ var UIAEvt          = xdc.useModule('ti.uia.events.UIAEvt');
 
 xdc.useModule('ti.sdo.utils.MultiProc');
 
-
 /*
  *  ======== IPC Configuration ========
  */
@@ -283,7 +282,7 @@ task0Params.arg0 = $externPtr("asdp_params_PA" + topo);
 task0Params.arg1 = $externPtr("asdp_patchs_PA" + topo);
 task0Params.priority = -1; //3;
 Program.global.TaskAsdp = Task.create("&taskAsdpFxn", task0Params);
-Program.sectMap[".far:taskStackSectionAsdp"] = "HOST_MSMC";
+Program.sectMap[".far:taskStackSectionAsdp"] = "HOST_DDR3";
 
 /* Add System Initialization task */
 var task1Params = new Task.Params();
@@ -303,7 +302,8 @@ Program.sectMap[".far:taskStackSection"] = "HOST_DDR3"; // SDRAM in pa.cfg
 /* Add MSMC SRAM heap */ // formerly L3RAM
 var heapMem1Params = new HeapMem.Params();
 heapMem1Params.instance.name = "heapMemMsmcSram";
-heapMem1Params.size = (224-4)*1024; //128*1024
+//heapMem1Params.size = (224-4)*1024; //128*1024
+heapMem1Params.size = 192*1024; //128*1024
 heapMem1Params.sectionName = ".msmcSramHeap";
 Program.global.heapMemMsmcSram = HeapMem.create(heapMem1Params);
 Program.sectMap[".msmcSramHeap"] = "HOST_MSMC";
index 08cd68faedeea65799058f606d2cf3b54b28211c..ce9debc0171e23f254d00e9efc44713b5c6da05b 100644 (file)
@@ -90,6 +90,12 @@ Int main()
     delta = tsEnd-tsStart;
 #endif
 
+    // (***) FL: hack to insert "open-loop" delay before start of ARM application.
+    //  When bootloading from MMC/SD, ARM exits in system init unless delay is added.
+    //  Haven't yet determined where ARM exits.
+        for (k=0; k<100000; k++)
+            asm("   nop");
+
     // Initialize IPC
     status = Ipc_start();
     if (status < 0) 
index 8365f92df7485460022fb5f91a1813350ce9de81..cf218d90ef826205a6fcb290f320b58326c48732 100644 (file)
@@ -271,7 +271,7 @@ task1Params.stackSection = ".far:taskStackSectionAip";
 task1Params.arg0 = 0;
 task1Params.priority = -1; //2;
 Program.global.TaskAip = Task.create("&taskAipFxn", task1Params);
-Program.sectMap[".far:taskStackSectionAip"] = "CORE0_MSMC"; // L3RAM in pa.cfg
+Program.sectMap[".far:taskStackSectionAip"] = "CORE0_DDR3"; // L3RAM in pa.cfg
 
 /* Add Audio Stream Input Processing (ASIP) task  */
 var task2Params = new Task.Params();
@@ -283,7 +283,7 @@ task2Params.arg0 = $externPtr("asip_params_PA" + topo);
 task2Params.arg1 = $externPtr("asip_patchs_PA" + topo);
 task2Params.priority = -1; //3;
 Program.global.TaskAsip = Task.create("&taskAsipFxn", task2Params);
-Program.sectMap[".far:taskStackSectionAsip"] = "CORE0_MSMC";
+Program.sectMap[".far:taskStackSectionAsip"] = "CORE0_DDR3";
 
 /* Add Audio Stream Output Processing (ASOP) task  */
 var task3Params = new Task.Params();
@@ -295,7 +295,7 @@ task3Params.arg0 = $externPtr("asop_params_PA" + topo);
 task3Params.arg1 = $externPtr("asop_patchs_PA" + topo);
 task3Params.priority = -1; //3;
 Program.global.TaskAsop = Task.create("&taskAsopFxn", task3Params);
-Program.sectMap[".far:taskStackSectionAsop"] = "CORE0_MSMC";
+Program.sectMap[".far:taskStackSectionAsop"] = "CORE0_DDR3";
 
 /* Add System Initialization task */
 var task4Params = new Task.Params();
@@ -345,7 +345,7 @@ heapMem1Params.instance.name = "heapMemMsmcSram";
 heapMem1Params.size = 128*1024;
 heapMem1Params.sectionName = ".msmcSramHeap";
 Program.global.heapMemMsmcSram = HeapMem.create(heapMem1Params);
-Program.sectMap[".msmcSramHeap"] = "CORE0_MSMC";
+Program.sectMap[".msmcSramHeap"] = "CORE0_DDR3";
 
 /* Add DDR3 heap */ // formerly SDRAM
 var heapMem2Params = new HeapMem.Params();