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.

CCS cloud "Run" dose not work but "Debug" dose work

Other Parts Discussed in Thread: MSP430G2553

Hi,

Im using ccs cloud to debug/program my MSP430g2553 launch pad. My program works in debug mode but will not run when using the "run" button. what am i doing wrong here?

Thanks for any feedback 

  • Hello,
    Can you explain the issue you see when you select the run button? How have you confirmed that the target is not running?

    Thanks
    ki
  • Sure thing,

    I wrote a small program that blinks the 2 on board LED's. The program uses 2 timer interrupts to blink the LED's.

    I confirmed that the target is not running ( or not running correctly? )  by the 2 non-blinking LED's.

    This program works when in debug mode but not after the run command.

    Below is the code.

    /// Blink some LEDs using interrupts...

    /// Using MSP430G2553 Lanchpad...

    #include <msp430.h>

    void main(void)
    {
      /// Stop watchdog timer
      WDTCTL = WDTPW + WDTHOLD;

      /// Set P1.0 to output direction and set the red LED off...
      P1DIR |= BIT0;
      P1OUT &= ~BIT0;

      /// Set P1.6 to output direction and set the green LED off...
      P1DIR |= BIT6;
      P1OUT &= ~BIT6;

      TA0CCR0 = 12000;                     /// Count limit (16 bit)
      TA0CCTL0 = 0x10;                      /// Enable Timer A0 interrupts, bit 4=1
      TA0CTL = TASSEL_1 + MC_1; /// Timer A0 with ACLK, count UP
      TA1CCR0 = 24000;                     /// Count limit (16 bit)
      TA1CCTL0 = 0x10;                      /// Enable Timer A1 interrupts, bit 4=1
      TA1CTL = TASSEL_1 + MC_1; /// Timer A1 with ACLK, count UP
      _BIS_SR(LPM0_bits + GIE);      /// LPM0 (low power mode) interrupts enabled

      while(1);                                         /// Loop forever...
    }

    /// Timer1 A0 interrupt service routine...
    #pragma vector=TIMER1_A0_VECTOR
    __interrupt void Timer1_A0 (void)
    {
      P1OUT ^= BIT0;                            /// Toggle red LED
    }

    /// Timer0 A0 interrupt service routine...
    #pragma vector=TIMER0_A0_VECTOR
    __interrupt void Timer0_A0 (void)
    {
      P1OUT ^= BIT6;                            /// Toggle green LED
    }

    Thanks again for any feedback.

  • So the problem ( I think ) is because I am on the ACLK. When I switch to using the SMCLK this works fine.

    Anyone have a explanation as to why this happens?