2017-06-15 04:54 AM
Hello to all friends,
I want If not receive the data In the specified time , cancel The HAL_UART_Receive_IT And re-send request
commandI don't want use HAL_UART_Receive I want use HAL_UART_Receive_IT How make timeout for this ?
Many thanks
2017-06-15 07:26 AM
Hi, you may try to setup a Timer to check timeout.
If timeout occurs, just called HAL_UART_AbortReceive_IT();
2017-06-15 10:20 AM
Hi, thank you very much
This function, in which File located? I looked but could not be found
2017-06-15 10:36 AM
stm32xx(your-device)xx_hal_uart.c, and .h
(so it your device is STM32L0xx, it is located in stm32l0xx_hal_uart.c/.h)
2017-06-15 12:20 PM
I using STM32CubeMX-4.21.0 and Firmware STM32F1 1.4.0 There is no such a function
Why this function does not exist?
2017-06-15 06:47 PM
I'd never used a F1 series, there is really NO such function.
:(
Perhaps you can build a similar one.That would includes:
clear the IT bits,
and clear error flags bits and
reset the Handle parameters.
2018-04-18 04:58 AM
Hello
Azadfalah.Sajjad
,Please update the last version of STM32CubeF1 firmware package updated to use the
HAL_UART_AbortReceive_IT
function.Best Regards,
Imen