2021-12-13 10:44 PM
We found some time the UART interrupt call back function (HAL_UART_RxCpltCallback) will shut down but the IRQ function (UART5_IRQHandler ) still working. Because we have add the counter in call back function and IRQ function , when the communication shut down, we check the IRQ function’s counter still has increase but call back function ‘s counter has not increase.
So may we have two request to ask?
2021-12-13 10:45 PM
I use STM32L471VET6.
2021-12-13 11:56 PM
The program follows the path below.
interrupt occurs,
The USARTX_IRQHandler() function is called,
after (or before) your code runs HAL_UART_IRQHandler(&huartx); function is called,
after some checks UART_Receive_IT(huart); function is called
after some checks HAL_UART_RxCpltCallback(huart); function is called
You need to find what is blocking the path by debugging
2021-12-14 12:27 AM
Set a debug breakpoint in the IRQ handler and step through to see what happens.
hth
KnarfB