2021-10-02 10:23 PM
i use two uart.(usart1 & usart2).
when i receive data(usart1), first, the program will into
"void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)".
but when i i receive data(usart2), second, the program will not into
"void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)".
is it bug ???
2021-10-03 03:02 AM
Check the whole interrupt chain, from USART registers' content through NVIC registers, address of the real ISR being inserted properly into the vector table, the real ISR containing proper redirection to Cube's USART ISR handler, etc.
JW
2021-10-03 11:25 AM
Hard to know for certain. Perhaps it isn't configured correctly. Perhaps you are not actually receiving data. Perhaps you are receiving data but the clock rate is wrong so it's going to the error handler instead.
2021-10-03 12:04 PM
>>is it bug ???
No, it provides you with the instance/context of the UART involved. You could perhaps overload the structure, adding you own on the back-end to carry buffers, or state variables.