Skip to main content
Visitor II
October 17, 2025
Solved

USART3_8_IRQHandler generated code - spurious repetition of (&huart5);

  • October 17, 2025
  • 1 reply
  • 259 views

Hello,

I have a project on STM32F091 generated with STM32CubeMX.

Connectivity included USART3, USART4 and USART5.

It created this code that has a problem on the line with huart5 ("(&huart5);" is written twice and it give a warning during build).

Do you confirm? What the procedure to correct in next CubeMX version?

void USART3_8_IRQHandler(void)
{
 /* USER CODE BEGIN USART3_8_IRQn 0 */

 /* USER CODE END USART3_8_IRQn 0 */
 HAL_UART_IRQHandler(&huart3);
 HAL_UART_IRQHandler(&huart4);
 HAL_UART_IRQHandler(&huart5);(&huart5);
 /* USER CODE BEGIN USART3_8_IRQn 1 */

 /* USER CODE END USART3_8_IRQn 1 */
}

regards

jerome


Edited to apply source code formatting - please see How to insert source code for future reference.

Best answer by Mahmoud Ben Romdhane

Hello @jerome29 ,

 

Let me thank you for bringing this issue to our attention.

The issue is confirmed, and an internal Ticket was submitted to the Development Team:

(Internal Ticket Number: 219909).

I will keep you up to date when the problem is solved.

 

Thanks.

Mahmoud

 

1 reply

Technical Moderator
October 17, 2025

Hello @jerome29 ,

 

First let me thank you for posting and welcome to the ST Community.

Your request is under investigation, and I will get back to you ASAP.

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Technical Moderator
October 17, 2025

Hello @jerome29 ,

 

Let me thank you for bringing this issue to our attention.

The issue is confirmed, and an internal Ticket was submitted to the Development Team:

(Internal Ticket Number: 219909).

I will keep you up to date when the problem is solved.

 

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.