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/MSP430F5529: msp430f5529lp

Part Number: MSP430F5529

Tool/software: Code Composer Studio

when I use ccs6.2 debug my board ,the command--"step over" cannot jump out of delay function, so my code run in delay function over and over .It seems that the command "step over" didn't work

  • Hello Jiachen,
    Can you provide a small test case that can reproduce the error? Something that will run on a F5529LP wouldbe great. I would need the generated executable + source file.

    Thanks
    ki
  • 4774.main.c
    #include <msp430f5529.h>
    
    #define data_out	P6DIR |= BIT1;
    #define data_in		P6DIR &=~BIT1;
    #define led_out		P1DIR |= BIT0;
    
    
    /*
     * main.c
     */
    int main(void) {
        WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer
        led_out;
    	TA0CCTL0 = CCIE;
    	TA0CCR0 = 50000;
    	TA0CTL = TASSEL_2 + MC_1 + TACLR;
    	__bis_SR_register(LPM0_bits + GIE);
    
    }
    
    #pragma vector=TIMER0_A0_VECTOR
    __interrupt void TIMER0_A0_ISR(void)
    {
    	P1OUT ^= BIT0;
    }
    

    you see,it's a small demo of Twinkling.but when I try to debug it in ccs,the program cannot step out of the delay function. I wonder if there is something better to use than setting a breakpoint, setting breakpoints is much more troublesome.And when I use IAR FOR MSP430,I didn't meet the problem, the key,step out, could help me to step the delay function easily 

  • Thank you for the example. I don't see a delay function, just the ISR that gets triggered and toggles the bit for the LED. Where exactly are you referring to?

    Thanks
    ki
  • Hello,
    I haven’t heard back from you, hence this issue is being closed. If you wish to continue the discussion, please post a reply with an update below (or create a new thread).

    Thanks,
    ki