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.

RTOS/MSP432P401R: Partial return enable in TI RTOS

Part Number: MSP432P401R

Tool/software: TI-RTOS

Hello ,

Iam Working on MSP432P401R launchpad.

Iam using TI RTOS

I have configured UART in read callback mode

with baud 9600

I have set the receive buffer size as 10 bytes. When I send any data read call back will not be called untill I send 10 bytes

But My requirement is as soon as I send any data less than 10 bytes call back function should be called.This can happen if I enable partial return using UART_control API.But I don tknow what arguments to pass to this function

  • Hi Kavan,

    From the documentation, partial returm is not available for the MSP432. You can find the documentation for the UART driver here:

    Here is the info for the UART_control commands:

    Your best option would be to read 1 byte at a time and have an internal counter to see how many bytes are received. You can also add a timer or clock to check for timeouts.

    Regards,

    Michel

  • Hi Kevan,

    Which version of TI-RTOS are you using? In TIRTOS 2.20.00.06, if you use read callback mode, the read callback function should be called whenever the receive buffer is full when readReturnMode=UART_RETURN_FULL or whenever a newline character is received if readReturnMode=UART_RETURN_NEWLINE (when driver is in UART_DATA_TEXT mode).

    Best regards,
    Vincent