]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/commitdiff
Add code to SYS/BIOS .cfg file to allow Execution Analysis
authorFrank Livingston <frank-livingston@ti.com>
Fri, 15 Jul 2016 16:23:00 +0000 (11:23 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Fri, 15 Jul 2016 16:23:00 +0000 (11:23 -0500)
procsdk_audio_x_xx_xx_xx/test_arm/application/app.cfg
procsdk_audio_x_xx_xx_xx/test_dsp/application/app.cfg

index 1c4827a846b5e42e5430d93d0aac28e23a98e031..2428e09c3af0550aefaf56b5123c196fba8d6bd2 100644 (file)
@@ -14,7 +14,6 @@ var Defaults        = xdc.useModule('xdc.runtime.Defaults');
 var Diags           = xdc.useModule('xdc.runtime.Diags');
 var Error           = xdc.useModule('xdc.runtime.Error');
 var Log             = xdc.useModule('xdc.runtime.Log');
-var LoggerBuf       = xdc.useModule('xdc.runtime.LoggerBuf');
 var Main            = xdc.useModule('xdc.runtime.Main');
 var Memory          = xdc.useModule('xdc.runtime.Memory')
 var SysMin          = xdc.useModule('xdc.runtime.SysMin');
@@ -28,6 +27,7 @@ var Clock           = xdc.useModule('ti.sysbios.knl.Clock');
 var Task            = xdc.useModule('ti.sysbios.knl.Task');
 var Semaphore       = xdc.useModule('ti.sysbios.knl.Semaphore');
 var HeapMem         = xdc.useModule('ti.sysbios.heaps.HeapMem');
+var Load            = xdc.useModule('ti.sysbios.utils.Load');
 
 var LoggingSetup    = xdc.useModule('ti.uia.sysbios.LoggingSetup');
 
@@ -122,40 +122,41 @@ Program.sectMap[".stack"] = "HOST_MSMC"
 /* Circular buffer size for System_printf() */
 SysMin.bufSize = 0x200;
 
-/* 
- * Create and install logger for the whole system
- */
-var loggerBufParams = new LoggerBuf.Params();
-//loggerBufParams.numEntries = 64; // FL: removed for UIA logging
-//var logger0 = LoggerBuf.create(loggerBufParams);
-//Defaults.common$.logger = logger0;
-//Main.common$.diags_INFO = Diags.ALWAYS_ON;
-
 System.SupportProxy = SysMin;
 
+/* ------ */
+/* Set CPU frequency to 600 MHz */
+BIOS.cpuFreq.lo = 600000000;
+BIOS.cpuFreq.hi = 0;
+
+/* Set Sysclock period (usec.) */
+Clock.tickPeriod = 1000; // FL: measured period ~852 usec.??
 
-/* --- FL: started adding below this line --- */
+/* Configure Logging */
 LoggingSetup.loggerType = LoggingSetup.LoggerType_STOPMODE;
-LoggingSetup.sysbiosTaskLogging = false;
-LoggingSetup.loadLogging = false;
+LoggingSetup.sysbiosTaskLogging = false; //true;
+LoggingSetup.sysbiosHwiLogging = false; //true;
+//LoggingSetup.sysbiosLoggerSize = 16384;
+LoggingSetup.loadLogging = false; //true;
 LoggingSetup.mainLoggingRuntimeControl = false;
-LoggingSetup.mainLoggerSize = 8196;
+LoggingSetup.mainLoggerSize = 81960;
+
+/* Configure Load Logging */ // FL: doesn't work
+//Load.taskEnabled = true;
+//Load.hwiEnabled = true;
+//Load.common$.diags_USER4 = Diags.ALWAYS_ON;
 
 //Task.common$.diags_USER1 = Diags.ALWAYS_ON;
 Task.common$.diags_INFO = Diags.ALWAYS_ON;
 
+/* Disallow nested hardware interrupts */
+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);
 
-/* Set CPU frequency to 600 MHz */
-BIOS.cpuFreq.lo = 600000000;
-BIOS.cpuFreq.hi = 0;
-
-/* Disallow nested hardware interrupts */
-Hwi.dispatcherAutoNestingSupport = false;
-
 if (acSimBuild == true)
 {
     // 
index 13edf5adf91fc837c4f349d48f8ce0f839214b9e..fa83a733b1752a6a9d3ba6e728f041191594e179 100644 (file)
@@ -14,7 +14,6 @@ var Defaults        = xdc.useModule('xdc.runtime.Defaults');
 var Diags           = xdc.useModule('xdc.runtime.Diags');
 var Error           = xdc.useModule('xdc.runtime.Error');
 var Log             = xdc.useModule('xdc.runtime.Log');
-var LoggerBuf       = xdc.useModule('xdc.runtime.LoggerBuf');
 var Main            = xdc.useModule('xdc.runtime.Main');
 var Memory          = xdc.useModule('xdc.runtime.Memory')
 var SysMin          = xdc.useModule('xdc.runtime.SysMin');
@@ -128,27 +127,36 @@ Program.sectMap[".stack"] = "L2SRAM"
 /* Circular buffer size for System_printf() */
 SysMin.bufSize = 0x200;
 
-/* 
- * Create and install logger for the whole system
- */
-var loggerBufParams = new LoggerBuf.Params();
-//loggerBufParams.numEntries = 64; // FL: removed for UIA logging
-//var logger0 = LoggerBuf.create(loggerBufParams);
-//Defaults.common$.logger = logger0;
-//Main.common$.diags_INFO = Diags.ALWAYS_ON;
-
 System.SupportProxy = SysMin;
 
 /* ------ */
-LoggingSetup.loggerType = LoggingSetup.LoggerType_STOPMODE;
-LoggingSetup.sysbiosTaskLogging = false;
-LoggingSetup.loadLogging = false;
+/* Set CPU frequency to 600 MHz */
+BIOS.cpuFreq.lo = 600000000;
+BIOS.cpuFreq.hi = 0;
+
+/* Set Sysclock period (usec.) */
+Clock.tickPeriod = 1000;
+
+/* Configure Logging */
+LoggingSetup.loggerType = LoggingSetup.LoggerType_STOPMODE; // LoggerType_JTAGRUNMODE
+LoggingSetup.sysbiosTaskLogging = false; //true;
+LoggingSetup.sysbiosHwiLogging = false; //true;
+//LoggingSetup.sysbiosLoggerSize = 16384;
+LoggingSetup.loadLogging = false; //true;
 LoggingSetup.mainLoggingRuntimeControl = false;
 LoggingSetup.mainLoggerSize = 81960;
 
+/* Configure Load Logging */ // FL: doesn't work
+//Load.taskEnabled = true;
+//Load.hwiEnabled = true;
+//Load.common$.diags_USER4 = Diags.ALWAYS_ON;
+
 //Task.common$.diags_USER1 = Diags.ALWAYS_ON;
 Task.common$.diags_INFO = Diags.ALWAYS_ON;
 
+/* Disallow nested hardware interrupts */
+Hwi.dispatcherAutoNestingSupport = false;
+
 var ProjName = environment["ProjName"];
 var topo = ProjName.replace( /pa_([a-z])[0-9]+_.*/, "$1");
 var AudioClockSim = environment["AudioClockSim"];
@@ -156,13 +164,6 @@ var acSimBuild = (AudioClockSim == "1" ? true : false);
 var RxAlphaSim = environment["RxAlphaSim"];
 var rxAlphaSimBuild = (RxAlphaSim == "1" ? true : false);
 
-/* Set CPU frequency to 600 MHz */
-BIOS.cpuFreq.lo = 600000000;
-BIOS.cpuFreq.hi = 0;
-
-/* Disallow nested hardware interrupts */
-Hwi.dispatcherAutoNestingSupport = false;
-
 if (acSimBuild == false)
 {
     var Edma            = xdc.loadPackage('ti.sdo.edma3.drv');
@@ -336,10 +337,10 @@ Program.sectMap["platform_lib"] = "L2SRAM";
 if (acSimBuild == false)
 {
     ECM.eventGroupHwiNum[0] = 7;
-    //ECM.eventGroupHwiNum[1] = 8;
+    //ECM.eventGroupHwiNum[1] = 8;  // FL: conflict w/ UART LLD (intr-callback)
     //ECM.eventGroupHwiNum[2] = 9;
     //ECM.eventGroupHwiNum[3] = 10;
-    Clock.tickPeriod = 1000;
+    //Clock.tickPeriod = 100;   // FL: UART LLD (intr-callback) unresponsive
 }
 else
 {