MCU : stm32h743ii.
two usart problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-03 3: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
Up vote any posts that you find helpful, it shows what's working..
