Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: System Analyser tutorial 1 does not build

$
0
0

Here's my config file. I haven't (knowingly) changed it from the tutorial 1 example, but it looks as though you are right about runtime and loggers.

I am slightly surprised by line 66:

var LogSnapshot = xdc.useModule('ti.uia.runtime.LogSnapshot');

because I thought I had read somewhere that 6748 only works in logger stopmode. Maybe this example is for a different processor?

Thanks

Roy

/*  * Copyright (c) 2012, 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.  * */  /*  *  ======== systemAnalyzerTutorial1.cfg ========  *  This file specifies how the XDC modules used by the  *  System Analyzer Tutorial 1 project are to be configured.  *  * See http://processors.wiki.ti.com/index.php/McsaTutorial1 for more info.  */  /* ================ XDC Configuration ================ */ /*  *  The SysStd System provider is a good one to use for debugging  *  but does not have the best performance. Use xdc.runtime.SysMin  *  for better performance.  */ var System   = xdc.useModule('xdc.runtime.System'); var SysStd   = xdc.useModule('xdc.runtime.SysStd'); System.SupportProxy = SysStd;  /* The xdc.runtime.Log module provides APIs to log prioritized events (errors,  * warnings, and info) as well as generic APIs to log events (Log_writeN,  * Log_printN)  */ var Log = xdc.useModule('xdc.runtime.Log');  /* The following modules from the ti.uia.events package contain predefined  * events that can be logged using the Log_write APIs  */ var UIAErr = xdc.useModule('ti.uia.events.UIAErr'); var UIAEvt = xdc.useModule('ti.uia.events.UIAEvt'); var UIABenchmark = xdc.useModule('ti.uia.events.UIABenchmark'); var UIAStatistic = xdc.useModule('ti.uia.events.UIAStatistic');  /* the following line is required in order to get Tutorial D to build */ var LogSnapshot = xdc.useModule('ti.uia.runtime.LogSnapshot');  /* ================ Logger configuration ================ */ /*  *  1. Enables events in main and non-XDC modules  *     and assigns them a logger (size 32768 bytes) that uploads  *     events when the target halts (e.g. when it hits a breakpoint).  *  *  If you are using SYS/BIOS, please refer to the ti.uia.sysbios.LoggingSetup  *  module for a simpler way to configure loggers and enable SYS/BIOS  *  real-time software instrumentation features.  (This is covered in  *  a separate System Analyzer Tutorial).  *  */ var Logger = xdc.useModule('ti.uia.runtime.LoggerStopMode'); var loggerParams = new Logger.Params(); loggerParams.transferBufSize = 32768; logger = Logger.create(loggerParams); logger.instance.name = "Main logger";   /* The Diags module provides flags that can be used to control which  * categories of events are uploaded.  Setting a category to Diags.ALWAYS_OFF  * will remove any overhead associated with the event logging from the  * compiled code if the whole_program compile option (-pm) is used.  */ var Diags = xdc.useModule('xdc.runtime.Diags');  /* The Main module is used to configure how events logged from non-XDC  * C and C++ code are handled.  Configure it to use the logger instance  * created above to log events, and enable all categories of events,  * configuring them so that they can be dynamically enabled or disabled  * using the Diags_setMask API. (see the xdc.runtime.Diags module for more  * information).  */ var Main = xdc.useModule('xdc.runtime.Main'); Main.common$.logger = logger; Main.common$.diags_STATUS = Diags.ALWAYS_ON; Main.common$.diags_ANALYSIS = Diags.RUNTIME_ON; Main.common$.diags_INFO = Diags.RUNTIME_ON;  /* The USER1 and USER2 categories are turned off  * here for demonstration purposes.  Please see  * System Analyzer Tutorial 1C for more details.  */ Main.common$.diags_USER1 = Diags.ALWAYS_OFF; Main.common$.diags_USER2 = Diags.RUNTIME_OFF; Main.common$.diags_USER3 = Diags.RUNTIME_ON; Main.common$.diags_USER4 = Diags.RUNTIME_ON; Main.common$.diags_USER5 = Diags.RUNTIME_ON; Main.common$.diags_USER6 = Diags.RUNTIME_ON; 


Viewing all articles
Browse latest Browse all 25965


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>