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.

CCS4.2 RTA - Statistics Data

Guru 10750 points

Hi All,

I'm running in Simulator (C64x+) and I can't see the statistics variables (I defined in the DSP/BIOS *.tcf file Instrumentation -> STS) under RTA statistics window, I can see the RTA Printf Logs, I can see the statistics under CCS3.3 with the same CGT/DSP/BIOS, any reason for this?  I'm using CCS4.2.1.00004, CGT 7.0.4, DSP/BIOS 5.41.09.34

Many Thanks,

HR

  • The STS objects can be found under Tools -> RTA -> Statistics Data. Do you see them there?

    If that table is empty, can you attach the .map file for your executable? I can look to see if there's anything strange about the placement of the STS objects in your app to prevent RTA from recognizing them.

    Thanks,

    Chris

  • Hi Chris,

    Yes, The table is empty, will it be possible to Email only to you the .map file,

    Thanks,

    HR

  • Is it possible that you don't have RTDX enabled in your application, and are trying to just use stop-mode?

    See a description of stop-mode for BIOS 5 RTA in CCSv4 here:

    http://processors.wiki.ti.com/index.php/BIOS_5_Real-Time_Analysis_(RTA)_in_CCSv4

    Note that the STS view is not supported by stop mode. I tried running a BIOS 5 RTA application that didn't have RTDX enabled, and I didn't see any objects in the STS table, so I'm wondering if that's what you're running into.

    I believe the following shows how to enable RTDX in your application:

    http://processors.wiki.ti.com/index.php/DSP/BIOS_Real-time_Analysis_(RTA)_troubleshooting#Enable_RTDX_for_RTA_run-time_host_display

    Thanks,

    Chris

  • Hi Chris,

    I have the RTDX enabled (at least what I have seen) but still I cant see the STS objects,  I'm using CCS4.2.1.00004, DSP/BIOS 5.41.09.34 so the stop mode should be supported, I have sent you the map file,

    Many thanks,

    HR

  • When you load your application, are you seeing the following error in the console?

    TMS320C64X+_0: RTDX: Not a valid RTDX program:  RTDX protocol (JTAG) does not match CCS setup (SIMULATOR)

    Try adding the following line to your .tcf file to use RTDX on a simulator:

    bios.RTDX.MODE = "Simulator";

    I'll update the BIOS 5 RTA wiki article here with this info.

    Thanks,

    Chris

  • Chris,

    I tried the target (When using the target) and the simulator mode when using the simulator and with both I haven't seen the statistics variables,

    Sorry, I have sent you the target version, do you want me to send you the simulator version?

    Thanks,

    HR

  • I can probably run the target version, that's probably better. Which target is the .out file intended to run on?

    Thanks,

    Chris

  • I tried running the simulator version of your .out file, and I'm only getting records in the Raw logs view when I halt the target. While the target is running, I'm not receiving any new records. Are you seeing the same?

    If this is the case, then this tells me that the application is probably not spending enough time in idle for RTA to run. Can you place a breakpoint at '_KNL_idlefxn' and verify that it's reached repeatedly?

    RTA transfers records to the host when the system is idle, so the system must spend at least some time in idle for RTA to work.

    Thanks,

    Chris

  • Hi Chris,

    The SW doesn't stop at "_KNL_idlefxn" but I have two issues why I don't see the statistics variable under the RTA statistics window and second I'm not reaching the Idle task and the statistics info shouldn't be sent to the PC but when I'm stopping the program I should see the statistics variables numbers, Please note that under CCS3.3 using the same CGT & DSP_BIOS everything is working fine,

    Many thanks,

    HR

  • The Statistics view is not supported in CCSv4 by stop-mode--there will be nothing shown in the Statistics view unless RTA is able to receive records from the target while it is running. Because the application is never idle, no STS records are being sent to the host and the behavior you are seeing is expected.

    In CCS 3.3, do you see the STS records update while you run the target, or only after halting? It may be that 3.3 supported the statistics view in stop-mode. I think that data would be questionable, though; the STS objects need to be read and cleared periodically or else the counters may wrap and you can get bad data. That's why we don't support the Statistics view in stop-mode in CCSv4.

    Thanks,

    Chris

  • Hi Chris,

    Please check "http://processors.wiki.ti.com/index.php/BIOS_5_Real-Time_Analysis_(RTA)_in_CCSv4" under Stop Mode - "Stop mode support was added in BIOS 5.41.04 and CCSv4.1." and I'm using CCS4.2.1.00004, CGT 7.0.4, DSP/BIOS 5.41.09.34, please note that I get the same issue with the latest CCSv5,

    On CCS3.3 I see the STS objects as the program start and at the end of the program, I will add Task sleep to get to the idle task,

    Many Thanks,

    HR

  • In that same article, under the "Supported Views" section, there is a note - "The CPU Load and Statistics Data views require RTDX, these views are not updated by stop mode."

    I've updated the article to make more of a point of this in the 'Stop Mode' section, so hopefully it will be clearer in the future.

    Thanks for working through this with me, sorry it took so long to get to the bottom of it. Let me know if Task sleep doesn't clear it up for you.

    Thanks,

    Chris

  • Hi Chris,

    I added IDL_run() and I could see the statistics,

    Thank you for the great help !

    HR