Skip to main content
GS1
Senior III
June 19, 2018
Question

STM32CubeMX for STM32H743 USART Interrupt Handling Wrong

  • June 19, 2018
  • 1 reply
  • 486 views
Posted on June 19, 2018 at 13:56

Information on Wrong Code Creation with STM32CubeMX Version 4.26.0.

STM32CubeMX creates wrong call for USART6 Interrupt Handlings for SMT32H743 processor:

It generates a call to HAL_UART_IRQHandler instead of HAL_USART_IRQHandler. The S is missing and produces an error when translating.

Created code in stm32h7xx_it.c looks like this:

void USART6_IRQHandler(void)

{

  /* USER CODE BEGIN USART6_IRQn 0 */

  /* USER CODE END USART6_IRQn 0 */

  HAL_UART_IRQHandler(&husart6);

  /* USER CODE BEGIN USART6_IRQn 1 */

  /* USER CODE END USART6_IRQn 1 */

}

(Just for your information.)

#stm32cubemx.
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 19, 2018
Posted on June 19, 2018 at 15:20

I'll observe that ST uses the UART/USART code somewhat interchangeably, as most people aren't using the Synchronous modes. It does however require consistent application.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..