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/MSP430FR2033: Timer interrupt causes isr_trap.asm to run while application hangs

Part Number: MSP430FR2033

Tool/software: Code Composer Studio

Hi. 

I am studying for the first time development with MSP430fr2033 chip.
CCS encountered a fatal error while running the timer example program below.

when debug the code, it jumps to the below code and fall into an error.

global __TI_ISR_TRAP
__TI_ISR_TRAP:
        BIS.W # (0x0010), SR
        JMP __TI_ISR_TRAP

I don't know why.

I will be very grateful if you help me.

Source code is below.

#include <msp430.h>
int main (void)
{
    WDTCTL = WDTPW | WDTHOLD; // Stop WDT
    // Configure GPIO
    P1DIR | = BIT0; // P1.0 output
    P1OUT | = BIT0; // P1.0 high
    // Disable the GPIO power-on default high-impedance mode to activate
    // previously configured port settings
    PM5CTL0 & = ~ LOCKLPM5;
    TA0CCTL0 | = CCIE; // TACCR0 interrupt enabled
    TA0CCR0 = 50000;
    TA0CTL | = TASSEL__SMCLK | MC__CONTINOUS; // SMCLK, continuous mode
    __bis_SR_register (LPM0_bits | GIE); // Enter LPM3 w / interrupts
    __no_operation (); // For debugger
}
// Timer A0 interrupt service routine
#if defined (__ TI_COMPILER_VERSION__) || defined (__ IAR_SYSTEMS_ICC__)
#pragma vector = TIMER0_A0_VECTOR
__interrupt void Timer_A (void)
#elif defined (__ GNUC__)
void __attribute__ ((interrupt (TIMER0_A0_VECTOR))) Timer_A (void)
#else
#error Compiler not supported!
#endif
{
    P1OUT ^ = BIT0;
    TA0CCR0 + = 50000; // Add Offset to TACCR0
}