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.3, DSP/BIOS 5.41.10.36 F28335 Load graph and clock

Other Parts Discussed in Thread: CCSTUDIO

I use a DSP-BIOS based project for the F28335 and I would like to use both the CPU-load graph and the clock profile feature in parallel. I found a thread from aarti (http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/3147/10875.aspx#10875) which explains that we have to disable RTDX to use the clock measurement feature. This way works, however all RTA - Tools, including the CPU load graph, are disabled now. To re-use the load graph I have to re-change the tcf-file, to rebuild the project and to reload it into the debugger, which is very cumbersome. More worse, I cannot use both measurements in the same debug session.

My question is:  Is there a way to use the CPU load graph (or any other BIOS based RTA tool) and the clock measurement feature simultaneously?

If not: How likely is it, that we will see an improvement in this case with future CCS versions?

Please note:  The feature I am asking for, was nice working in CCS3.3...

Frank Bormann

 

 

  • Frank Bormann said:

    My question is:  Is there a way to use the CPU load graph (or any other BIOS based RTA tool) and the clock measurement feature simultaneously?


    Unforunately, as of today, I am not aware of any improvements in this area. A request has been submitted in our database (SDSCM00034673) to at least have a easier way to enable/disable RTDX so the extra breakpoint is made available more easily. This however involves improvements to RTDX which currently is not being actively supported. I doubt there is a way, but I will continue to investigate if there is any other way to disable/enable RTDX without having to modify the .tcf and rebuild/reload. I will post an update here if I find anything.

  • Frank,

    There appears to be a way to enable/disable RTDX from the Scripting Console, so this could be a much easier way to retrieve the breakpoint functionality without having to edit/rebuild/reload the project.

    After you start the debug session, go to View->Scripting Console. Hitting the Tab key within this console will display all the supported commands. The commands for enabling/disabling RTDX are rtdxEnable and rtdxDisable. By typing rtdxDisable you can retrieve the breakpoint and use the clock functionality within the same debug session. Hope this helps.

  • Aarti,

    thanks for this idea. However, when I open the Scripting Console and hit the Tab key, the list of commands (104) does not include any rtdx related commands, such as rtdxDisable. Are there any other steps needed to activate these commands?

    Frank. 

  • Frank,

    Sorry about the confusion. Yes, there is an extra step that I missed telling you about. When I tested it, I had already loaded a Javascript file which displayed these rtdx commands and I overlooked telling you how to load the file.

    Basically I created a simplified Javascript file with the rtdxEnable and rtdxDisable functions (attached). I just took the file RtdxCmds.js from C:\CCStudio_v4.2.3.00004\ccsv4\scripting\examples\rtdx and removed most of the other functions. After starting the debug session, open the Scripting Console and type:

    loadJSFile("<full_path_to_file\disablertdx.js")

    Now the commands should be available.

    // disablertdx.js -Javascript file for disabling RTDX - for use in CCS Scripting Console 
    // This can be loaded with: loadJSFile "<fullpath>\disablertdx.js" 
    
    // Import the DSS packages into our namespace 
    importPackage(Packages.com.ti.debug.engine.scripting)
    importPackage(Packages.com.ti.ccstudio.scripting.environment)
    importPackage(Packages.java.io)
    
    // Create our scripting environment object
    var script = new ScriptingEnvironment.instance()
    
    // Get the RTDX Server
    var rtdxServer = script.getServer("RTDXServer.1")
    
    
    /**
     * Enable RTDX
    */
    function rtdxEnable()
    {
        // check if connected
        if (activeDS == null || !activeDS.target.isConnected()) {
            print( "Not connected." )
            return
        }
    
        print("Enabling RTDX for CPU: " + activeDS.getCPUName() );
    
        // Get the RTDX Session
        var rtdxSession = rtdxServer.openSession(activeDS)
    
        rtdxSession.enableRTDX();
    }
    
    /**
     * Disable RTDX
    */
    function rtdxDisable()
    {
        // check if connected
        if (activeDS == null || !activeDS.target.isConnected()) {
            print( "Not connected." )
            return
        }
    
        print("Disabling RTDX for CPU: " + activeDS.getCPUName() );
    
        // Get the RTDX Session
        var rtdxSession = rtdxServer.openSession(activeDS)
    
        rtdxSession.disableRTDX();
    }
    
    hotmenu.addJSFunction("Enable RTDX", "rtdxEnable()");
    hotmenu.addJSFunction("Disable RTDX", "rtdxDisable()");
    

     

  • Hello, I want to have the evaluation version of CCS from ti.com as i don't want to but it. Can you provide me exact link to download it? I shall be using it only for my MS studies.