TI E2E Community
Code Composer Studio
Code Composer Forum
MSP430 clock reset after stepping through
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!
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.
yes I tried every setting in debug configurations. Without success.
I forget to mention that I use MSP430F148, Windows7 Prof. 64bit
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.
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.
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.
yes - the problem is there again!
1. Install the CCS 5.1.1.00031
2. Install new Software -> "MSP430 Compiler Tools 4.1.0" (I installed MSP430 Component Installer Windows 126.96.36.199, 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)
with the MSP430 Component Installer Windows 188.8.131.52 Update you get the latest MSP430 Debug Stack (msp430.dll Version 184.108.40.206). 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 220.127.116.11 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:
These packages contain a file named revision.txt with known limitations and bug fixes.
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...
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.