Zephyr UART framing errors

I am having a problem where the UART is getting noise and bad data (I assume framing errors too) with Zephyr drivers.  I was wondering how in Zephyr do you check for framing errors and clear out/reset the UART hardware? 

Note I am getting some Bus Errors and other random crashes as a result of these framing errors which I suspect is a buffer overflow, however I have not gone through all the drivers and Zephyr source code to find the root cause yet.

Thanks

Trampas

Related