• 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 » Development Tools » Code Composer Studio » Code Composer Forum » CCS v5.2.1: cpu cycles value problem
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • CCS v5.2.1: cpu cycles value problem

    CCS v5.2.1: cpu cycles value problem

    This question is answered
    Nikita Zograbyan
    Posted by Nikita Zograbyan
    on Aug 07 2012 03:54 AM
    Prodigy50 points

    Recently I encountered the problem that in ccs v5.1.0 after several execution of .out file on dsk6455 all graph tools were disabled. Searching the forum has led to the fact that in ccs v5.1.1 and older versions this problem has been solved. And I upgraded ccs to v5.2.1 because of that trouble.

    But now I encountered the problem concerning the value of Cpu Execute Cycles in clock tools. In version 5.1.0 cpu clock shows me that my function, for example, performed for 1000 cpu cycles (it's not matter what function it is...I check it on each other functions). Now in v5.2.1 cpu clock shows that  functions performed for over 1000000 cpu cycles. All that i did is upgrading ccs. Changing the version of compiler and dps/bios to elder from ccs v5.1.0 has no results...number of cycles stays on the same high value.

    Realy I don't recognize how can I adequately estimate the perfomance of executable functions.

    Thanks a lot.

    --

    Sincerely yours, Zograbyan Nikita

    ccs v5.2.1 cpu cycles problem tms320c6455
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Aug 08 2012 10:11 AM
      Guru119215 points

      Hello,

      Nikita Zograbyan
      In version 5.1.0 cpu clock shows me that my function, for example, performed for 1000 cpu cycles (it's not matter what function it is...I check it on each other functions).

      Nikita Zograbyan
      Now in v5.2.1 cpu clock shows that  functions performed for over 1000000 cpu cycles.

      That is quite a difference. How are you measuring the cycles? Are you using the profile clock in CCS?

      Thanks

      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Nikita Zograbyan
      Posted by Nikita Zograbyan
      on Aug 08 2012 10:58 AM
      Prodigy50 points

      Hello. I'm using the clock from Run menu in debug session (Run -> Clock -> Enable).  I choose "Cpu Execute Cycles" in setup menu and reset method set to manual. Then I put breakpoint at the start of function and at the end of it. After that I reset clock and run this function. On the bottom panel I look at the value of execute cycles (like ccs v3.3). I did it in ccs v5.1.0 and ccs v.5.2.1, but results are different every time. Is it a wrong approach to measure performance of separate functions? I don't use profile clock in ccs. If it lets me to show the real performance of functions, I'l be grateful if you explain how to use profile clock.

      Thanks.

      p.s. sorry for my poor English

        

      --

      Sincerely yours, Zograbyan Nikita

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Aug 08 2012 15:06 PM
      Guru119215 points

      Nikita Zograbyan
      I'm using the clock from Run menu in debug session (Run -> Clock -> Enable).  I choose "Cpu Execute Cycles" in setup menu and reset method set to manual.

      Ok, I was suspecting that the clock was setup to count different events between the two CCS versions. But it looks like you made sure that the same exact settings are being used for both.Is "Cpu Execute Cycles" the exact name? I was expecting something different, like "cycle.Total" or something like that.

      I'm definitely surprised at the clock value difference. There is normally a small difference but you are seeing a huge difference. Your use case seems fine, nothing wrong there.

      Could you send me a small test case? I just need any small example where you see a big difference between the counts between the two versions.

      Thanks

      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Nikita Zograbyan
      Posted by Nikita Zograbyan
      on Aug 09 2012 07:43 AM
      Prodigy50 points

      Yes, "Cpu Execute Cycles" is the exact name. I saw "cpu.Total" when I worked with c6455 simulator. But now I work with tms320c6455 dsk and "cpu.Total" is not in clock tool. I can send You test project (generating complex signal) maded with using IQmath library. I execute it in CCS v5.1.1 and v.5.2.1 and results are: about 150 cycles in v5.1.1 vs about 242000 cycles in v5.2.2. Where can I send this project?

      upd

      Here is the test project with generation complex signal. Can you help me to understand why the cycles value so different in different CCS versions.

      0172.IQ_test.zip

      --

      Sincerely yours, Zograbyan Nikita

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Nikita Zograbyan
      Posted by Nikita Zograbyan
      on Aug 20 2012 00:07 AM
      Prodigy50 points

      up

      --

      Sincerely yours, Zograbyan Nikita

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Aug 20 2012 15:53 PM
      Verified Answer
      Verified by Nikita Zograbyan
      Guru119215 points

      Thank you for the test case! I was able to reproduce the issue. I believe you are running into the same issue as described in the post this issue:

      http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/163102.aspx

      The bug was found CCSv5.1.0 and fixed in CCSv5.2.0. So this would explain why you see different number for the same event between 5.1.1 and 5.2.1. The count in 5.2.1 is the correct count for CPU Execution Cycles and in 5.1.1, you actually need to select 'L1D read hit" to count the CPU execution cycles.

      Thanks

      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Nikita Zograbyan
      Posted by Nikita Zograbyan
      on Aug 21 2012 00:16 AM
      Prodigy50 points

      Thanks for the explanation.

      --

      Sincerely yours, Zograbyan Nikita

      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