Is implementation of RTOF support botched in HAL?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-20 2:07 AM
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.
Labels:
- Labels:
-
STM32Cube MCU Packages
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
