2018-06-22 01:26 PM
I try to read the data from the inertial unit with frames of different size for this I need to read the data via the STM32F446 uart, but the functions available with HAL uart do not allow it.
2018-06-22 02:41 PM
It should allow you to collect at byte at a time.
For example using HAL_UART_Receive_IT() for a one byte buffer in the callback.
The HAL implementation is a bit obtuse, if it gets in your way, limit how you use it.
It is possible to mix coding styles, and to implement your own wrappers around the library internals.
https://community.st.com/0D50X00009XkVy3SAF