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.
{
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
P1DIR | = BIT0; // P1.0 output
P1OUT | = BIT0; // P1.0 high
// previously configured port settings
PM5CTL0 & = ~ LOCKLPM5;
TA0CCR0 = 50000;
TA0CTL | = TASSEL__SMCLK | MC__CONTINOUS; // SMCLK, continuous mode
__no_operation (); // For debugger
}
#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
}