• 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 » MSP430 clock reset after stepping through
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
  • MSP430 clock reset after stepping through

    MSP430 clock reset after stepping through

    This question is answered
    Joachim St��mpfl
    Posted by Joachim St��mpfl
    on May 03 2012 10:03 AM
    Prodigy110 points

    Hello,

    I have a problem when debugging my application. If I use debug stepping the System Clocks always gets reset to 0. If I just use breakpoints it seems to work but as soon as I begin stepping the system clock registers are set to 0. 

    I already tried different Target configurations (disable interrupts when source stepping, clock control etc.) , but I did not find a solution.

    I am using CCS  5.1.1.00028,  MSP-FET430UIF, Compiler version 4.1.0

    Could anyone help me please!

    Thanks,

    Joachim

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on May 03 2012 10:35 AM
      Guru99285 points

      Hi Joachim,

      have you tried using the clock settings found in the debug properties?  Please see the screenshot.  These would be under Project->Properties->Debug.

      Then on the right expand MSP430 Properties->Clock Control.

      Please have a look and keep us informed whether this helps.

      Best Regards,

      LIsa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim St��mpfl
      Posted by Joachim St��mpfl
      on May 04 2012 00:55 AM
      Prodigy110 points

      Hi Lisa,

      yes I tried every setting in debug configurations. Without success.

      I forget to mention that I use MSP430F148, Windows7 Prof. 64bit

      Best regards,

      Joachim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim St��mpfl
      Posted by Joachim St��mpfl
      on May 04 2012 02:07 AM
      Prodigy110 points

      Hi Lisa,

      I think I have found the problem. I have another pc where I tried this with an quite original CCS  5.1.1.00028 and there it works. The only difference is that on the CCS where it does not work that I have installed newer updates like Compiler tools 4.1.0.

      If I want to debug the FET wants an (newer ?) update. No matter what compiler tool version is set. So the bug is either somewhere in the new firmware of the FET or in the Compiler tools 4.1.0

      I try to reinstall now CCS and inform you if works.

      Regards,

      Joachim 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim St��mpfl
      Posted by Joachim St��mpfl
      on May 04 2012 05:12 AM
      Prodigy110 points

      Hi again,

      I downloaded the current  5.1.1.00031 and now it works. I guess if I update to the new compiler tools that I have the same problem. So maybe there is a bug in the new versions of the tools or firmware of the FET.

      Regards,

      Joachim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on May 04 2012 09:54 AM
      Guru99285 points

      Hi Joachim,

      can you please confirm whether this is to do with the compiler version?  Ie can you test whether on the new install a switch to 4.1 brings the issue back.

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim St��mpfl
      Posted by Joachim St��mpfl
      on May 05 2012 03:42 AM
      Verified Answer
      Verified by Joachim St��mpfl
      Prodigy110 points

      Hi Lisa,

      yes - the problem is there again!

      Reproducable:

      1. Install the CCS 5.1.1.00031 

      2. Install new Software -> "MSP430 Compiler Tools 4.1.0"   (I installed MSP430 Component Installer Windows 5.1.4.2, too but I don´t think thats the problem)

      3. Swtich to Compiler Tools 4.1.0 (But I don´t think you have to do this step)

      4. Debug your project

      5. Let the FET do the new Firmware update (Maybe this firmware is the problem)

      6. Bang - Stepping through the code resets the clock registers

      As sayed: Windows 7 prof. 64bit, MSP430F148, MSP-FET430UIF (V1 4a) (I have 2 FET and tried it on everyone - same problem)

      Regards,

      Joachim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Christian Steffen
      Posted by Christian Steffen
      on May 07 2012 05:07 AM
      Expert2160 points

      Hi Joachim,

      with the MSP430 Component Installer Windows 5.1.4.2 Update you get the latest MSP430 Debug Stack (msp430.dll Version 3.2.3.15). This explains why you need to update your FET with new firmware.

      Many of our projects are based on the MSP430F449. We have installed Windows Installer MSP430 Component 5.1.4.2 also. After that, we weren't able to debug these projects due to a FLL bug in this new stack. Attempt to undo the update and revert to the previous version. We downgraded too.

      Alternative you can find the current and older drivers at the following link:

      http://processors.wiki.ti.com/index.php/MSP430_JTAG_Interface_USB_Driver

      These packages contain a file named revision.txt with known limitations and bug fixes.

      Regards,

      Christian

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim St��mpfl
      Posted by Joachim St��mpfl
      on May 08 2012 01:24 AM
      Prodigy110 points

      Hello Christian,

      thank you for the information. Unfortunately did this bug cost me a lot of time. If you don´t know that clock registers gets reset by the debugger you try to search bugs in your own program...

      Best regards,

      Joachim

      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