PASDK-432:Add XDC tools setting for HS / GP boot
authorFrank Livingston <frank-livingston@ti.com>
Mon, 30 Oct 2017 21:24:56 +0000 (16:24 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Mon, 30 Oct 2017 21:24:56 +0000 (16:24 -0500)
pasdk/test_arm/.cproject
pasdk/test_arm/application/app.cfg
pasdk/test_dsp/.cproject
pasdk/test_dsp/application/app.cfg

index a68615b440dd862fb0027ddc8e70edea68a0a69a..17a779835e235408948536518d81894683b80b23 100644 (file)
                                                                <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.JAVA_PROPERTIES.111979217" name="Java properties (-D)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.JAVA_PROPERTIES" valueType="stringList">
                                                                        <listOptionValue builtIn="false" value="xdc.platform.custom.check=false"/>
                                                                        <listOptionValue builtIn="false" value="ProjName=pa_i13_evmk2g_arm"/>
+                                                                       <listOptionValue builtIn="false" value="HsDevBuild=1"/>
                                                                </option>
                                                        </tool>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_noip.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|application/src|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_noip.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_pkgs.cmd|application/src|src|66AK2Gxx.lds" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_pkgs.cmd|src|66AK2Gxx.lds" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_noip.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|application/app_pkgs.cmd|application/src|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_noip.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|application/app_pkgs.cmd|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_dtsx.cmd|66AK2Gxx.lds|application/app_dh.cmd|application/app.cmd|application/src|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_dtsx.cmd|66AK2Gxx.lds|application/app_dh.cmd|application/app.cmd|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_dtsx.cmd|66AK2Gxx.lds|application/app_dh.cmd|application/app.cmd|application/app_pkgs.cmd|application/src|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_dtsx.cmd|66AK2Gxx.lds|application/app_dh.cmd|application/app.cmd|application/app_pkgs.cmd|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
                                                </toolChain>
                                        </folderInfo>
                                        <sourceEntries>
-                                               <entry excluding="application/app_dh.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|application/src|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry excluding="application/src|application/app_dh.cmd|66AK2Gxx.lds|application/app_dtsx.cmd|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
                                        </sourceEntries>
                                </configuration>
                        </storageModule>
index b3f81d2a1bc381562ed59fb38c5253dc47a0a297..18e3294b669ba5b3347e55a701c4f3ee9b70127f 100644 (file)
@@ -72,11 +72,18 @@ var UIAEvt          = xdc.useModule('ti.uia.events.UIAEvt');
 
 xdc.useModule('ti.sdo.utils.MultiProc');
 
-/* Added Per Recommendation from CATAPPS-171 */
-var gicHwi = xdc.useModule('ti.sysbios.family.arm.gic.Hwi');
-gicHwi.enableSecureMode = false;
-gicHwi.BPR = 3;
-gicHwi.NUM_PRIORITY_BITS = 4;
+
+var HsDevBuild = environment["HsDevBuild"];
+var hsDevBuild = (HsDevBuild == "1" ? true : false);
+if (hsDevBuild == true)
+{
+    /* Added per recommendation from CATAPPS-171 */
+    /* HS device build */
+    var gicHwi = xdc.useModule('ti.sysbios.family.arm.gic.Hwi');
+    gicHwi.enableSecureMode = false;
+    gicHwi.BPR = 3;
+    gicHwi.NUM_PRIORITY_BITS = 4;
+}
 
 /*
  *  ======== IPC Configuration ========
@@ -238,39 +245,6 @@ Hwi.dispatcherAutoNestingSupport = false;
 
 var ProjName = environment["ProjName"];
 var topo = ProjName.replace( /pa_([a-z])[0-9]+_.*/, "$1");
-var AudioClockSim = environment["AudioClockSim"];
-var acSimBuild = (AudioClockSim == "1" ? true : false);
-
-if (acSimBuild == true)
-{
-    // 
-    // IPC simulation
-    // 
-
-    /* Add timer to simulate Rx audio IPC message */
-    var timer0Params = new Timer.Params();
-    timer0Params.instance.name = "timerRxAudio";
-    timer0Params.period = 5330;
-    timer0Params.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
-    Program.global.timerRxAudio = Timer.create(1, null, timer0Params);
-
-    /* Add timer to simulate Tx audio IPC message */
-    var timer1Params = new Timer.Params();
-    timer1Params.instance.name = "timerTxAudio";
-    timer1Params.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
-    timer1Params.period = 5330;
-    Program.global.timerTxAudio = Timer.create(2, null, timer1Params);
-
-    /* Add semaphore for Rx audio DMA */
-    var semaphore0Params = new Semaphore.Params();
-    semaphore0Params.instance.name = "semaphoreRxAudio";
-    Program.global.semaphoreRxAudio = Semaphore.create(null, semaphore0Params);
-
-    /* Add semaphore for Tx audio DMA */
-    var semaphore1Params = new Semaphore.Params();
-    semaphore1Params.instance.name = "semaphoreTxAudio";
-    Program.global.semaphoreTxAudio = Semaphore.create(null, semaphore1Params);
-}
 
 /* Set default stack size for tasks */
 Task.defaultStackSize = 2048;
index 3d256b1ff806a393bbc9fc45e033a407cb11f3e4..50c5ed0e0d1565a1ba51b00314c0412bbe1c8b16 100644 (file)
                                                                <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.JAVA_PROPERTIES.1168868732" name="Java properties (-D)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.JAVA_PROPERTIES" valueType="stringList">
                                                                        <listOptionValue builtIn="false" value="xdc.platform.custom.check=false"/>
                                                                        <listOptionValue builtIn="false" value="ProjName=pa_i13_evmk2g_c66x"/>
+                                                                       <listOptionValue builtIn="false" value="HsDevBuild=1"/>
                                                                </option>
                                                                <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS.596568674" name="Additional compiler options (--compileOptions)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS" value="&quot;-g --optimize_with_debug&quot;" valueType="string"/>
                                                        </tool>
index d51836407efc2ae6a5d1c88c6bb5dc5bf377b59f..deae0a131103603b7677684c4460684c41a4b7fa 100644 (file)
@@ -158,14 +158,30 @@ Program.sectMap[".systemHeap"] = "CORE0_DDR3";
 
 /*
  * Build a custom SYS/BIOS library from sources.
- * Added per recommendation from CATAPPS-171
  */
  
-BIOS.useSK = true;
-BIOS.setupSecureContext = true;
-//BIOS.libType = BIOS.LibType_Custom;BIOS.libType = (RB ? BIOS.LibType_NonInstrumented : BIOS.LibType_Instrumented);
- BIOS.libType = BIOS.LibType_Custom;
-// BIOS.libType = BIOS.LibType_Debug;
+var HsDevBuild = environment["HsDevBuild"];
+var hsDevBuild = (HsDevBuild == "1" ? true : false);
+if (HsDevBuild == true)
+{
+    /* HS device build */
+    /* Added per recommendation from CATAPPS-171 */  
+    BIOS.useSK = true;
+    BIOS.setupSecureContext = true;
+    BIOS.libType = BIOS.LibType_Custom;
+}
+else
+{
+    /* GP device build */
+    BIOS.libType = BIOS.LibType_Custom;BIOS.libType = (RB ? BIOS.LibType_NonInstrumented : BIOS.LibType_Instrumented);
+    //BIOS.libType = BIOS.LibType_Debug;
+}
+//BIOS.useSK = true;
+//BIOS.setupSecureContext = true;
+////BIOS.libType = BIOS.LibType_Custom;BIOS.libType = (RB ? BIOS.LibType_NonInstrumented : BIOS.LibType_Instrumented);
+//BIOS.libType = BIOS.LibType_Custom;
+//// BIOS.libType = BIOS.LibType_Debug;
 
 /* System stack size (used by ISRs and Swis) */
 Program.stack = 0x2000;