• 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 v.4.2.4.00033 and LM3S9B96 debugging problems
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
  • Forums

    CCS v.4.2.4.00033 and LM3S9B96 debugging problems

    This question is answered
    Karol Sabat
    Posted by Karol Sabat
    on Mar 21 2012 05:59 AM
    Prodigy40 points

    Hi there,

    I had opportunity to read

    Using SYS/BIOS with Stellaris

    ® ARM® Cortex™-M3 Microcontrollers

    and at the first point I was very happy that it describes exactly the same microcontroller that we are using.

    But the problem I've reported during the debugging session.(software seems to be flashed and connection has been established) ( but - I see that not all breakpoints are hit and step/step over instructions jump somewhere in the strange places in C code )

    Of course I use In-Circuit Debug Interface as mentioned in tutorial above.

    Do you have any guesses why debugger acts so strange and C code is not in synch with the Program Counter?

    Best Regards,

    Karol

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Karol Sabat
      Posted by Karol Sabat
      on Mar 21 2012 10:24 AM
      Prodigy40 points

      Basicly, as attached. "a" variable is not seen in locals and the test() function breakpoint is never reached.

      JTAG frequency has been set by default as 1000000 Hz.

      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 Mar 21 2012 11:07 AM
      Guru117055 points

      Hello Karol,

      Karol Sabat
      Do you have any guesses why debugger acts so strange and C code is not in synch with the Program Counter?

      One common cause for the symptoms you see is trying source-line level debug for optimized code. Are you trying to debug optimized code? Did you build with full symbolic debug?

      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.
    • Karol Sabat
      Posted by Karol Sabat
      on Mar 22 2012 03:12 AM
      Prodigy40 points

      Hi Ki-Soo,

      Thanks for the hint, but I've tried it in the first place and that helped in case of the stepping trough the code(step in/step over), but debugger still seems to not see my changes(includding added "a" variable).

      My current compiler line looks like :

      "C:/ti/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.9.3/bin/cl470" -mv7M3 --

      code_state=16 --abi=eabi -me -O0 -g --gcc --define=ccs --define=PART_LM3S9B96 --diag_warning=225 --ual -z --stack_size=256 -m"test7.map" --heap_size=3000 -i"C:/ti/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.9.3/lib" -i"C:/ti/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.9.3/include" --reread_libs --warn_sections --rom_model -o "test7.out" $(ORDERED_OBJS)

      You may see that the optimization is set to O0, but the first break I may set is the

          BIOS_start();

      So that looks like the code added above is still ignored.

      Any guess why it's like this ? (of course I'm not a newbie in the embedded world so of cource clean and rebuild have been used constantly).

      Best Regards,

      Karol

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Karol Sabat
      Posted by Karol Sabat
      on Apr 12 2012 03:26 AM
      Verified Answer
      Verified by JohnS
      Prodigy40 points

      Please close this issue. I was testing few IDEs and Your compiler is more smart than gcc and others:) If you will look at the main() assembly code in the picture above then you will see that test() function was not assembled, cause it's not returning anything and is using only local variables. When I've added printf() function inside of the test() function then code has been assembled and all started to work as expected.  Cheers,K.

      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