This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS5.2.0.00069 debugger problem on MSP430F123 basic clock system LFXT1 oscillator

Other Parts Discussed in Thread: MSP430F123

Hello!

There is a problem  on  MSP430F123 basic clock LFXT1 oscillator during debugging. When I perform any of stepping instructions (F5, F6, Ctrl+Shift+F6) the XTS control bit is switched off and the oscillator is stopped. Only Assembly Step into ( Ctrl+Shift+F5) is working correct way.

CCS is running on Windows7(32b).  I am using  MSP-FET430UIF v1.4a interface to connect to target.

Juris Sirs

  • Hi Juris,

    what version of CCS and MSP430 compiler are you using?  In the project debug settings, what MSP430 clock control settings do you have set?

    Best Regards,
    Lisa

  • Hi Lisa,

    I installed a fresh version of free edition of CCS5.2.0.00069  on Friday. For project I am using default settings as usual.

    Is it Ok?  Or do you want to check something in details?

    Best regards,

    Juris

  • Hi Juris,

    ok have a look at the debug settings as there are various clock control settings you have access to when debugging the MSP430.

    Project->Properties->Debug

    On the right you will see both some Generic Debug settings and some MSP430 Properties and clock control.


    Please keep us informed whether this helps.

    Best Regards,
    Lisa

  • Hi Lisa,

    The "Stop the following clocks on emulation halt" is not exactly that I mean.

    Actually on emulation halt all is Ok. I can use breakpoints or use a Suspend button in CCS debugger.

    I can resume execution (F8) after that- all is working.

    Only when I am stepping into code (the first my message), the problem appears on first step. The XTS bit is dropped and  LFXT1 is switched off. 

    The only button working correctly is "Assembly Step Into (Ctr+Shift+F5)".

    It is more like a bug.

    Regards,

    Juris

  • HI Juris,

    ok, thanks for the clarification.  I understand a bit better now.  Is it possible for you to send a small test case which shows this behaviour for you?  It would be interesting to see if we can reproduce this. 

    Best Regards,
    Lisa

  • Hi Lisa,

    I have made default empty CCS project for MSP430F123.
    There is working code.

    Actually there is enought only 2 lines in main. If I stop on first line and push a step button the LFXT1 is on. If I push step button once again- the XTS is dropped and XT1 halted.
    If I use Ctr+Shift+F5 all is working.

     

    #include <msp430f123.h> void main(void) { volatile int a; BCSCTL1 = XT2OFF + XTS + RSEL2; // XT1 On do { IFG1 &= ~OFIFG; a= 10; while(a) a--; }while(IFG1 & OFIFG); BCSCTL2 = SELM_3; while(1) { WDTCTL = WDTPW + WDTCNTCL; a = 2000; while(a) { a--; } } }

    Regards,

    Juris

  • Hi Juris,

    thanks for that.  Let us look into things from our end and post feedback as soon as we have some.

    Best Regards,
    Lisa

  • Dear Lisa,

    Actually there are more problems connected by MSP430 Debugger. May be it is good to add them as well?

    1. The latest 3 versions of CCS (2 of 5.1 and 5.2) have a problem by Instruction Clock measurement from Run->Clock->Enable. The Clock is activated, but it is not working. It shows 0 all the time. On previous version Clock worked on eZ430-F2013, but not using MSP-FET430UIF (I do not check current version on eZ...).

    2. When we are using Ctrl+Shift+F5 for stepping, the feature "Disable interrupts while source stepping" is not working. This problem there is long time.

    Best Regards,

    Juris

  • Hi Juris,

    thanks for the further feedback.  I am working on getting feedback from the development team here but please have a bit of patience.

    Best Regards,
    Lisa

**Attention** This is a public forum