我的片子是c2000系列,使用的工程是例程里面的“stairstepStopMode_TMS320F28335”,采用的是loggerStopMode,但是运行下载程序之后,点击暂停键没有显示,
当然后面几个里面都没有任何显示,但是ROV里面的CPU load是有数据的,反复点击暂停CPU load会改变:
这是加入的uia:
本来是有自动生成的,但是我看时钟是50MHz,就改了,当然之前自动生成的也是没有显示的。然后下面是我的cfg代码:
/*
* Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* */
/*
* ======== stairstep_JTAGStopMode.cfg ========
*/
/* ================ XDC Configuration ================ */
/*
* Use xdc.runtime.SysMin for better performance and smaller
* footprint.
*/
var System = xdc.useModule('xdc.runtime.System');
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var Load = xdc.useModule('ti.sysbios.utils.Load');
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
System.SupportProxy = SysMin;
var Memory = xdc.useModule('xdc.runtime.Memory');
Timestamp = xdc.useModule('xdc.runtime.Timestamp');
Log = xdc.useModule('xdc.runtime.Log');
/* ================ BIOS Configuration ================ */
BIOS = xdc.useModule('ti.sysbios.BIOS');
Clock = xdc.useModule('ti.sysbios.knl.Clock');
Swi = xdc.useModule('ti.sysbios.knl.Swi');
Task = xdc.useModule('ti.sysbios.knl.Task');
Timer = xdc.useModule('ti.sysbios.hal.Timer');
Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
/*
* The default and idle task stack sizes are too small for 28x targets,
* so increase these.
*/
if (Program.build.target.name.match(/28/)) {
Task.defaultStackSize = 0x200;
Task.idleTaskStackSize = 0x200;
}
else {
Task.defaultStackSize = 0x400;
Task.idleTaskStackSize = 0x400;
}
/*
* Build a custom BIOS library.
*
* Enabling Swi and Hwi Load statistics requires a custom library. The
* "instrumented" and "non-instrumented" libraries do not support Hwi or Swi
* hooks, and the Load module uses hooks to gather the Hwi and Swi Load
* statistics.
*
* The custom library will also be smaller than the pre-built "instrumented"
* (default) and "non-instrumented" libraries.
*/
BIOS.libType = BIOS.LibType_Custom;
/*
* Configure a Timer to interrupt every 100ms
* timerFunc() provides Hwi load and posts a Swi and Semaphore
* to provide Swi and Task loads.
* And adjusts the loads every 5 seconds.
*/
var timerParams = new Timer.Params();
timerParams.startMode = Timer.StartMode_AUTO;
timerParams.period = 100000; /* 100,000 uSecs = 100ms */
var timer0 = Timer.create(Timer.ANY, '&timerFunc', timerParams);
/*
* Create Semaphore for Task thread to pend on
*/
Program.global.sem = Semaphore.create(0);
/*
* Create Swi load thread
*/
Program.global.swi = Swi.create('&swiLoad');
/*
* Create Task load thread
*/
var taskLoadTask = Task.create('&taskLoad');
LoggingSetup.loadTaskLogging = true;
LoggingSetup.loadSwiLogging = true;
LoggingSetup.loadHwiLogging = true;
LoggingSetup.countingAndGraphingLogging = true;
LoggingSetup.benchmarkLogging = true;
但是我觉得这是自动生成的,使用的是例程的应该没问题才对,不知道我的问题在哪?

