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.

How to receive UART data from UART by use default debug UART for MSP430F6438 with Bluetopia SPPLEDemo_lite?



I am developing MSP430F3468 with Bluetopia SPPLEDemo_Lite project.

In HAL_ConfigureHardware , it use the following code to configure the UART.

/* Configure the UART-USB Port for its default configuration */
HAL_CommConfigure(BT_DEBUG_UART_BASE, BT_DEBUG_UART_BAUDRATE, 0);
GPIOPinTypeUART(BT_DEBUG_UART_PIN_BASE, BT_DEBUG_UART_PIN_TX_MASK, BT_DEBUG_UART_PIN_RX_MASK);

/* Enable Debug UART Receive Interrupt. */
UARTIntEnableReceive(BT_DEBUG_UART_BASE);

After configure the UART , it can use Display(("\r\n")); function to send the data out via UART.

1. Which function can catch the data from UART in SPPLEDemo_lite?

2. Is the HAL_ConsoleRead for read the data from UART ? If yes, how to use it ?

  • Hi,

    Yes, the HAL_ConsoleRead() is "called to read from a UART port and returns the number of bytes read".
    You can see the GenInput() implementation in one of the sample applications to know how to use this.

    Regards,
    Gigi Joseph.