• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » BIOS » BIOS forum » Using the profiler clock with a C5510?
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

Using the profiler clock with a C5510?

This question is answered
FastFourier
Posted by FastFourier
on Jun 15 2010 07:51 AM
Expert1485 points

I am using an IP library with quoted execution times, but the speed isn't really living up to the hype.  I'd like to turn on the clock and step over the library function to measure clock ticks.  But I keep getting the following error.

 

C55xx_0: Can't enable profiling as it requires AU1 which is already claimed for RTDX or breakpoint(s)

 

I'm using a C5510A, with DSP/BIOS.  Is there something special I need to do to make this work?  If it won't work because of some C55xx limitation, is there another good way to measure execution time?

Thanks

profiler clock C5510A AU1
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • JohnS
    Posted by JohnS
    on Jun 15 2010 08:54 AM
    Guru58965 points

    Try disabling RTDX.   Assuming you are using BIOS 5 double click on the tcf file in your project.  This will open the BIOS configuration editor.  Expand Input/Output.  Right click on RTDX and select properties, uncheck the "Enable Real-Time Data Exchange" box.  Save the file and rebuild your app.

     

    John

     


    If my reply answers your question please mark the thread as answered

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • FastFourier
    Posted by FastFourier
    on Jun 15 2010 09:50 AM
    Expert1485 points

    I tried that, and I still get the following when I try to enable the clock.

     

    C55xx_0: Can't enable profiling as it requires AU1 which is already claimed for RTDX or breakpoint(s) 

    C55xx_0: Can't enable profiling as it requires AU1 which is already claimed for RTDX or breakpoint(s)

     

    But anytime I uncheck the RTDX box, and click apply, the box rechecks itself.  (Sorcery in CCSv4.1.1... bug filed.)  So I think the setting isn't "taking"/being respected.  Or... some other setting is not compatible with disabled RTDX.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • JohnS
    Posted by JohnS
    on Jun 15 2010 10:16 AM
    Guru58965 points

    Hmmm... I see the same thing.  The BIOS config editor just isn't accepting the change.  Another option is to try BIOS statistics objects.  I am going to move the thread into the BIOS forum to see if the team there can help.

    John

     

     


    If my reply answers your question please mark the thread as answered

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • FastFourier
    Posted by FastFourier
    on Jun 15 2010 11:30 AM
    Expert1485 points

    For debugging, I've setup TIMER1, and I'm reading its TIM register, but I need to use that Timer for other things.  i.e. I turned off a bunch of timed functionality to be able to measure ticks.  I'd hope there's a scalable solution for this.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Karl Wechsler
    Posted by Karl Wechsler
    on Jun 21 2010 13:05 PM
    Suggested Answer
    Mastermind18215 points

    (1)  Disabling RTDX takes a couple of steps.   The "HST" module is dependent on RTDX, so you need to set the HST linktype to "NONE" before you can disable RTDX.  The following script code will do the trick (I captured these 2 lines below by using gconf GUI)

     

    bios.HST.HOSTLINKTYPE = "NONE";
    bios.RTDX.ENABLERTDX = 0;

     

    (2)  CLK_gethtime() returns 32-bit time counter value.  The units are processor dependent.  You can use CLK_cpuCyclesPerHtime() to convert these to CPU cycles.  And then GBL_getFrequency() to convert to time in milliseconds.

     

    time1 = CLK_gethtime();

    ... processing ...

    time2 = CLK_gethtime();

    CPUcycles = (time2 - time1) * CLK_cpuCyclesPerHtime();

    /* calculate absolute time in milliseconds */

    TimeAbsolute = CPUCycles / GBL_getFrequency();

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • FastFourier
    Posted by FastFourier
    on Jun 21 2010 13:13 PM
    Expert1485 points

    Karl,

     

    Thanks!  I'll give that a try and let you know how it worked.  I appreciate the info.  Does this imply the profiler will work as well once I turn RTDX off?  And also, I'm not too familiar with RTDX, other than what it stands for.  Does turning it off imply something about the debugability of my app while I'm JTAG'ing?

     

    Thanks again!

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Karl Wechsler
    Posted by Karl Wechsler
    on Jun 21 2010 13:17 PM
    Verified Answer
    Verified by David Friedland
    Mastermind18215 points

    Turning it off will disable some of the RTA (real-time analysis) features like real-time LOG view and CPU load graphs.  You can disable it for your current work and then reenable if/when you want to use these features.  You can still view LOG buffers via RTA LOG view when you halt target, but RTDX is needed to update the views while target is running.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • FastFourier
    Posted by FastFourier
    on Jun 25 2010 09:36 AM
    Expert1485 points

    Forgot to verify this.  This is true.  :)

    One more question.  Is there a way to get CPU load/utilization information programmatically?  i.e...

    int_q8 = bios_cpu_load();

    LOG_printf( &trace "print out my CPU ute : %whatev" );

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Karl Wechsler
    Posted by Karl Wechsler
    on Jun 25 2010 10:15 AM
    Mastermind18215 points

    2816.load.zip

     

    No built in way to do this, but the attached might be useful.   The .h file contains some documentation on how to use.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use