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.

CCS 5.1.1.00033 System Analyser Fails

Other Parts Discussed in Thread: SYSBIOS

Hello. I am trying to get the System Analyser working on CCS 5.1.1.00033 and i'm not succeeding.

My application compiles with the UIA included, but when I try to run with the System Analyser I get the following problems:

1) When I launch System Analyser Welcome view, I get the error "An internal error has occurred. org.eclipse.swt.layout.FillData cannot be cast to org.eclipse.swt.layout.FormData". Closing the error dialog leaves the Welcome view on screen, but it never shows anything other than "Please wait...". I have seen a previous post on this forum claiming this is a Unity shell problem. I've tried on Gnome too and that also does not work.

2) Ignoring problem 1, I run the live analysis for task loading or cpu loading. In both cases, only the detailed view shows any data. Graphs draw but "Showing 0 records".

3) If I zoom in on an empty graph I get a java.null.exception.

4) Despite telling the System Analyser to also write the data to a file, it doesn't create a file.

Anyone have any ideas?

Thanks.

  • CCS 5.2.1 shows exactly the same behaviour.

  • Simon,

    Are you installing MCSDK after installing CCS? If yes, do uncheck MCSA (System Analyzer) from the MCSDK installation?

    MCSA only needs to be selected if installing into CCS5.0. Having MCSA selected when installing MCSDK into CCS5.1 or newer causes problems.

    Regards,

    Imtaz.

  • I am using a clean install of CCS 5.1.1 with the native sysbios. MCSDK is not installed.

    I am testing with the Sysbios hello example with the UIA enabled in the cfg file.

    Thanks.

  • Hi Simon,

       Re: " I have seen a previous post on this forum claiming this is a Unity shell problem. I've tried on Gnome too and that also does not work."

    Could you provide some info on what Linux distribution you are running this on (Ubuntu 12.04?), what type of CPU your development system is running on (Intel?)  and whether you encounter this problem when running as super user or not? 

    I'd like to set up a system here with the same configuration to try to replicate the problem.

    Also, do you have a web browser installed and working on your setup?  The Welcome view attempts to open your default web browser to show a local web page file, and it looks like that is not working properly on your system.

    Regards,

      Brian

  • Hello Brian.

    I am running a fully patched Ubuntu 12.04 64 bit with the Unity shell. Kernel 3.2.0-33. OpenJDK 7u9-2.3.3.

    CCS was install in my home directory as a normal user and after installation, the drivers installed with sudo.

    I have tried to run CCS with sudo, but it refuses to connect to my EVM board.

    Google Chrome is my normal default browser. I have also just tried setting Firefox as the default, but the problems still occur.

    Thanks.

  • I'm starting to understand things a little better.

    I can get some data to be populated in the "System Analyzer Live Session: Logs". It logs 32 records and then has an error message saying "Warning: 1 gap due to data loss (19971 records lost)".

  • Only the first 32 records logged is consistent for every run of the software. All subsequent records are being lost.

  • Simon,

    System Analyzer data is logged to buffers on the target before it is transported to the host. If the buffers are too small for the rate at which data is logged and/or read then you will loose data. See the Troubleshooting section of the System Analyzer Document available in CCS and also here: http://processors.wiki.ti.com/index.php?title=Multicore_System_Analyzer. Excerpt below. Also see section title Configuring ti.uia.sysbios.LoggingSetup for specifics on setting the buffer size.

    If System Analyzer Events are Being Dropped

    If you can connect to the target and events are shown in the Log view, events may still be dropped. The status bars in System Analyzer views tell how many records are shown and how many gaps occurred.
     
    If events are being dropped, first confirm that events are being logged by the logger. You can check this by using the RTOS Object View (ROV) tool to look at the ti.uia.runtime.LoggerCircBuf module. If the "numDropped" field is incrementing, then events are being dropped. If the "numDropped" field is not incrementing, then UIA packets are being dropped, and you should see If System Analyzer Packets are Being Dropped.
     
    To prevent events from being dropped, try one or more of the following:
    • Increase the logger buffer size 
    • Increase the frequency of Rta by lowering its period. The minimum is 100ms
    • Reduce the number of logged events
    • If this is a multicore application, increase the number of event packets on the non-master processors. This allows UIA to move the records off in a faster manner. For example:
      ServiceMgr.numEventPacketBufs = 4;
    Regards,
    Imtaz.

  • Simon,

        I've put together a Linux system with the same configuration you are running, and am able to reproduce the problem you reported seeing when the System Analyser Welcome view is displayed.  I'll file a problem report on this - thanks for bringing this to our attention.  The Welcome view problem should not impact the operation of System Analyzer, so it is safe to ignore it for now.

    Can you post the .cfg file you are using in your project?  It will help me to get a better insight into why you are seeing the data loss errors you are encountering.

    Also, have you checked out the System Analyzer tutorials at http://processors.wiki.ti.com/index.php/System_Analyzer_Tutorials ?  These provide a better starting point than the SysBios example projects and walk you through how to configure your target for software instrumentation and how to use System Analyzer to view the software instrumentation events.

    Regards,

      Brian

  • Hi Imtaz.

    Unfortunately I cannot get ROV to run when the project is configured for UIA. It just says that XDCTools is not installed. ROV works fine when UIA is not enabled.

    I have tried increasing the buffer sizes, but I then get object placement errors when linking. The documentation doesn't seem to explain what the three default loggers (load, main and sysbios) actually are either, so it is difficult to know which to increase or what a sensible value might be.

    I have looked through the documentation available and I cannot find how to reduce the number of logged events.

    Ultimately all I want to achieve is to quickly see task execution times, so if there is a way to limit the logging to just task switches, that might work for me.

    Thanks.

  • Hi Brian.

    I have looked through the tutorials, but I am equally unable to get them to work either.

    My cfg file for my project is a cut down version of the hua demo, but I am unable to get the RTSC hello world application to log correctly either.

    At this point I have run out of time to look at this tool any further and I will have to try a different approach to debugging my application.

    Thank you for you're help.

  • Simon,

    The fact that you're getting data is a good indication that you have the tool working and only need some tuning to avoid data loss. Are you ok with doing webEx today ... let me know and I'll arrange it. By looking at your configuration we may be able to get this going quickly. Also what timezone are you in ... we're in ET (Toronto).

    The ROV interaction is a different story ... I need to check more on what could be causing this.

    Regards,

    Imtaz.

  • Hi Imtaz.

    I have just solved my immediate problem through traditional brute force debugging, so for now I have no need or have the spare time to continue pursuing the analyser further.

    Thanks for your help.