cancel
Showing results for 
Search instead for 
Did you mean: 

how to read from UART without knowing message length using HAL , STM32 abstraction layer

Abdelmalek BELLOULA
Associate III
Posted on June 22, 2018 at 22:26

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.

1 REPLY 1
Posted on June 22, 2018 at 23:41

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

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..