cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX for STM32H743 USART Interrupt Handling Wrong

GS1
Senior III
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.
1 REPLY 1
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 Venmo Up vote any posts that you find helpful, it shows what's working..