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.

MSP430FR6922: Code is getting stuck in UART interrupt

Part Number: MSP430FR6922

Hello All,

    I am trying to communicate MSP432P401M controller with RAspberry pi via serial communication.During receiving data from RPI controller is getting stuck in UART interrupt in "#endif" statement.

I have attached code for your ref.

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif
{
switch(__even_in_range(UCA0IV, USCI_UART_UCTXCPTIFG))
{
case USCI_NONE: break;
case USCI_UART_UCRXIFG:
teststop=0;
count=0;
CurrentLCValue=0;
CurrentLCValue_15bit = 0;
PreviousLCValue=0;
PeakValue=0;

//timer stop
TA0CCTL0 &= ~CCIE;

//rtc disabled
RTCCTL0_L &= ~RTCTEVIE;

P7OUT&=~ BIT0; // Relay off

RXDATA[p++]=UCA0RXBUF;

if (RXDATA[0]==0x01)
{
if(p==3)
{
p=0;
giNewFrameFlag=1;
}
}
else
{
p=0;
}
break;

case USCI_UART_UCTXIFG: break;
case USCI_UART_UCSTTIFG: break;
case USCI_UART_UCTXCPTIFG: break;
}
}

what is the reason??

**Attention** This is a public forum