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.

CC1312PSIP: How to clear UART2_EVENT_OVERRUN

Part Number: CC1312PSIP

Tool/software:

Hi,

Our project is running on cc1312PSIP with SDK 7.10.02.63 and IAR 9.32.1

I have a communication RS485 between two devices running on the above-described base.

As result of quite hard stress test, I came across with the following issue UART2_EVENT_OVERRUN on UART2 events callback.

How can I clear this event and restore the UART2. 

I tried UART2_close/ UART2_open, but that doesn't help.

Please assist.

Thanks,

Yan

  • An Uart overrun error occurs if data is received and the receive FIFO is already full. The FIFO contents remain valid because no more data is written when the FIFO is full, , only the contents of the shift register are overwritten. This is cleared to 0 once there is an empty space in the FIFO and a new character can be written to it.

    You can use the UART2_flushRx() to empty the FIFO when this error occur.

    BR

    Siri