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.

MSP430FR5739 UART with GRACE and RX with interrupts

Other Parts Discussed in Thread: MSP-EXP430FR5739

Goodmorning,

I'm trying to send and receive characters from my MSP-EXP430FR5739 board using an UART communication.
So I used Grace Tool to initialize eUSCI_A0 module to work in UART mode enabling receive interrupt.
Then I defined a Interrupt service routine in the InterruptVectors_init.c file as follow:
/*
 *  ======== eUSCI_A0 Interrupt Service Routine ========
 */
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR_HOOK(void)
{
    /* USER CODE START (section: USCI_A0_ISR_HOOK) */
    /* replace this comment with your code */
        switch (__even_in_range(UCA0IV, USCI_UART_UCTXCPTIFG)) {
            case USCI_NONE: break;
            case USCI_UART_UCRXIFG:
                _val = EUSCI_A_UART_receiveData(EUSCI_A0_BASE);
                //rx = EUSCI_A_UART_receiveData(EUSCI_A0_BASE);

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

    /* USER CODE END (section: USCI_A0_ISR_HOOK) */
}

But when I placed a breakpoint near the "switch" call and I tried to send something from the other side, CCS didn't stop.
So it seems that I receive nothing. So...first dubt: is my ISR routine correct? The second one is: do I have place it in the correct place?

Could anyone help me, please?

Thanks in advance!
L.

**Attention** This is a public forum