Skip to main content
Abdelmalek BELLOULA
Associate III
June 22, 2018
Question

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

  • June 22, 2018
  • 1 reply
  • 514 views
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.

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 22, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..