cancel
Showing results for 
Search instead for 
Did you mean: 

Is implementation of RTOF support botched in HAL?

maple
Associate II

Somewhere at the end of 2019 the HAL got some RTOF stuff added. Right from the start, it declared HAL_UART_ERROR_RTO, which makes no sense, because RTOF is not an error! And with this start it got processing that pretty much makes using RTOF impossible, since it treats it as an error and does a lot of unnecessary things, especially if DMA used.

As a result, if one wants to handle RTOF to flush data in circular DMA buffer, it is necessary to hack IRQ handler function, which makes writing universal code (i.e. working for any UART channel enabled in Cube) impossible.

Can someone take a look at this? If nothing else, rolling back these changes will help somewhat.

0 REPLIES 0