summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff03165)
raw | patch | inline | side by side (parent: ff03165)
author | Frank Livingston <frank-livingston@ti.com> | |
Fri, 15 Jul 2016 16:23:00 +0000 (11:23 -0500) | ||
committer | Frank 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 | patch | blob | history | |
procsdk_audio_x_xx_xx_xx/test_dsp/application/app.cfg | patch | blob | history |
diff --git a/procsdk_audio_x_xx_xx_xx/test_arm/application/app.cfg b/procsdk_audio_x_xx_xx_xx/test_arm/application/app.cfg
index 1c4827a846b5e42e5430d93d0aac28e23a98e031..2428e09c3af0550aefaf56b5123c196fba8d6bd2 100644 (file)
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');
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');
/* 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)
{
//
diff --git a/procsdk_audio_x_xx_xx_xx/test_dsp/application/app.cfg b/procsdk_audio_x_xx_xx_xx/test_dsp/application/app.cfg
index 13edf5adf91fc837c4f349d48f8ce0f839214b9e..fa83a733b1752a6a9d3ba6e728f041191594e179 100644 (file)
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');
/* 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"];
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');
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
{