This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UIA connect time out

Hi all,

I have a problem.

I try to use Tools -> System Analizer and it doesn't work.

I have a failure:

Error during DVT action: Unable to open Message Transport 192.168.1.20:1234 : connect timed out: Unable to open Message Transport 192.168.1.20:1234 : connect timed out

java.lang.RuntimeException: Unable to open Message Transport 192.168.1.20:1234 : connect timed out
	at com.ti.uia.host.core.Session.config(Unknown Source)
	at com.ti.dvt.uia.dp.UIALogSource.createEngine(UIALogSource.java:213)
	at com.ti.dvt.uia.dp.UIALogSource.configureUIA(UIALogSource.java:317)
	at com.ti.dvt.uia.dp.UIALogSource.configureUIA(UIALogSource.java:313)
	at com.ti.dvt.uia.activities.UIAActivity.setupDStoUIA(UIAActivity.java:1533)
	at com.ti.dvt.uia.activities.UIAActivity.preConnect(UIAActivity.java:808)
	at com.ti.dvt.uia.activities.UIAActivity.connect(UIAActivity.java:1179)
	at com.ti.dvt.uia.activities.UIAActivity.connect(UIAActivity.java:1155)
	at com.ti.dvt.uia.activities.UIAActivity$OnConnect.run(UIAActivity.java:1239)
	at com.ti.dvt.control.engine.types.IRun$Run.run(IRun.java:79)



eclipse.buildId=M20120914-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments:  -product com.ti.ccstudio.branding.product -product com.ti.ccstudio.branding.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.ti.ccstudio.branding.product -data C:\projekty\css_workspace\my_project -product com.ti.ccstudio.branding.product


I try it in CCS 5.3.0, 5.4.0.

xdctools: 3.25.3.72

UIA target: 1.1.1.14

Win7 64bit PL

MCSDK is installed.

xds560v2 stm usb

Is there any solution to my problem? All screens (Live, Graphs etc) are blank.

  • Hi Grzegorz,

       Could you please post your application's .cfg file?  Also, what target / evm board are you using?  Can you ping the IP address that is reported in the CCS console window when you start the application?

    Regards,

      Brian

  •  
    /********************************************************************************************************************
    *  Specify all needed RTSC MOudles and configure them.																*
    ********************************************************************************************************************/
    
    var Memory  =   xdc.useModule('xdc.runtime.Memory');
    
    var BIOS    =   xdc.useModule('ti.sysbios.BIOS');
    
    var Task    =   xdc.useModule('ti.sysbios.knl.Task');
    
    var HeapMem   = xdc.useModule('ti.sysbios.heaps.HeapMem');
    
    var HeapBuf   = xdc.useModule('ti.sysbios.heaps.HeapBuf');
    
    var Log     =   xdc.useModule('xdc.runtime.Log');
    var Load = xdc.useModule('ti.sysbios.utils.Load');
    var Rta = xdc.useModule('ti.uia.services.Rta');
    var Agent = xdc.useModule('ti.sysbios.rta.Agent');
    Agent.transport = Agent.Transport_STOP_MODE_ONLY;
    
    /*
    ** Allow storing of task names. By default if you name a task with a friendly display name it will not be saved
    ** to conserve RAM. This must be set to true to allow it. We use friendly names on the Task List display.
    */
    //Defaults.common$.namedInstance = true; 
    Task.common$.namedInstance = true;
    
    var Clock   =   xdc.useModule ('ti.sysbios.knl.Clock');
    
    /* 
    ** Interface with IPC. Depending on the version of BIOS you are using the 
    ** module name may have changed.
    */
    /* Use this for pre BIOS 6.30 */
    /* var Sem	    =	  xdc.useModule ('ti.sysbios.ipc.Semaphore'); */
    
    /* Use this for BIOS 6.30 plus to get the IPC module */
    var Sem	= xdc.useModule ('ti.sysbios.knl.Semaphore');
    
    var Hwi	= xdc.useModule ('ti.sysbios.hal.Hwi');
    
    var Ecm = xdc.useModule ('ti.sysbios.family.c64p.EventCombiner');
    
    /* Load the Platform/NDK Transport packages */
    var PlatformLib  = xdc.loadPackage('my.platforms.myplatform');
    //var NdkTransport = xdc.loadPackage('ti.transport.ndk');
    
    /* 
    ** Sets up the exception log so you can read it with ROV in CCS 
    */
    //var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
    var Exc = xdc.useModule('ti.sysbios.family.c64p.Exception');
    //Exc.common$.logger = LoggerBuf.create();
    Exc.enablePrint = true; /* prints exception details to the CCS console */
    
    /*
    **  Give the Load module it's own LoggerBuf to make sure the
    **  events are not overwritten.
    */
    /* var loggerBufParams = new LoggerBuf.Params();
    loggerBufParams.exitFlush = true;
    loggerBufParams.numEntries = 64;
    Load.common$.logger = LoggerBuf.create(loggerBufParams); 
    */
    
    /*
    ** Use this load to configure NDK 2.2 and above using RTSC. In previous versions of
    ** the NDK RTSC configuration was not supported and you should comment this out.
    */
    var Global       = xdc.useModule('ti.ndk.config.Global');
    
    /* 
    ** This allows the heart beat (poll function) to be created but does not generate the stack threads 
    **
    ** Look in the cdoc (help files) to see what CfgAddEntry items can be configured. We tell it NOT
    ** to create any stack threads (services) as we configure those ourselves in our Main Task
    ** thread hpdspuaStart.
    */  
    Global.enableCodeGeneration = false;
    
    
    /* Define a variable to set the MAR mode for MSMCSRAM as all cacheable */
    var Cache       =   xdc.useModule('ti.sysbios.family.c64p.Cache');
    //Cache.MAR224_255 = 0x0000000f;
    
    var Startup     =   xdc.useModule('xdc.runtime.Startup');
    
    var System      =   xdc.useModule('xdc.runtime.System');
    
    
    xdc.loadPackage('my.drv.emac');
    
    /* 
    ** Create the stack Thread Task for our application.
    */
    var tskNdkStackTest  		=   Task.create("&TSK_FXN_Stack");
    tskNdkStackTest.stackSize  	= 	4096;
    tskNdkStackTest.priority    = 	6;
    
    
    /*
    ** Create a Heap. 
    */
    
    BIOS.heapSize = 0x200000;
    
    //var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
    //var heapMemParams = new HeapMem.Params();
    //heapMemParams.size = 0x300000;
    //heapMemParams.sectionName = "systemHeap";
    //Program.global.heap0 = HeapMem.create(heapMemParams);
    
    Program.sectMap[".stack"]	=	"DDR2";
    //Program.sectMap["systemHeap"] = "DDR2";
    Program.sectMap[".boardInit"] = "DDR2";
    Program.sectMap[".data"]	=	"DDR2";
    Program.sectMap["xdc.meta"]	=	"DDR2";
    Program.sectMap[".far"] 	= 	"DDR2";
    Program.sectMap[".const"]	=	"DDR2";
    Program.sectMap[".text"]	=	"DDR2";
    Program.sectMap[".cinit"] 	= 	"DDR2";
    Program.sectMap[".switch"]  = "DDR2";
    Program.sectMap[".bss"]		=	"DDR2";
    Program.sectMap[".cio"]     = "DDR2";
    Program.sectMap[".pinit"]     = "DDR2";
    //var loggerBuf0Params = new LoggerBuf.Params();
    //loggerBuf0Params.instance.name = "my_logger";
    //Program.global.my_logger = LoggerBuf.create(loggerBuf0Params);
    //BIOS.common$.logger = Program.global.my_logger;
    BIOS.common$.diags_INFO = xdc.module("xdc.runtime.Diags").ALWAYS_ON;
    

    Target board: c64x+.

    I can ping, I can connect via telnet to my device. I can debug using xds560v2 stm usb.

  • I have solved the problem. I've switched off agent.rta and i works. Thank you for your attention.

  • Hi Gregorz,

       Sorry for the delayed response.  Glad to hear you got it working. 

    FWIW, UIA Tutorial 3 (http://processors.wiki.ti.com/index.php/SystemAnalyzerTutorial3) has more info on how to configure System Analyzer, UIA and the NDK for use on a C64x+ device. Also, section 5 of the System Analyzer User's guide (spruh43d.pdf in the UIA 1.1.1.14 docs folder)  provides additional info on what modules to avoid using with UIA.


    Regards,

       Brian