cancel
Showing results for 
Search instead for 
Did you mean: 

How to receiving variable length string via uart (stm32f407ve) ?

Aabc
Associate III
 
This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
TDK
Guru

You can use HAL_UARTEx_ReceiveToIdle which will return when the line becomes idle or the specified number of characters are received.

If you feel a post has answered your question, please click "Accept as Solution".
S.Ma
Principal

Or the 8 bit mcu way, interrupt from each incoming byte, when 0 or /n termination char is detected, flag the message for task to process it, and continue receiving in another income buffer.

Piranha
Chief II
Aabc
Associate III

Thanks for all you