Skip to main content
Associate III
Question

IRQHandler name discrepancies for STM32H562 cause apparent WWDG_IRQHandler error

The startup_stm32H562Rgtx.s file was updated in July 2026, and the names of various IRQHandler routines in the interrupt vector table were changed. The new names don’t match the names in Core/Src/stm32h562_it.c.  This file is generated by STM32CubeMX V6.19.0 using firmware package STM32Cube FW_H5 V1.7.0.

As the names defined in the startup file are weak external references and the names don’t match, the linker does not include the interrupt routines defined in stm32h562_it.c, and there are no linker errors.

The interrupts are routed to the DefaultHandler, an infinite loop that appears in the debugger labelled WWDG_IRQHandler.

I have identified the following name changes:

GPDMA1_Channel0_IRQHandler => GPDMA1_CH0_IRQHandler

… and all other GPDMA1 and 2 channels

TIM1_BRK_IRQHandler => TIM1_BRK_IERR_IRQHandler

TIM1_TRG_COM_IRQHandler => TIM1_TRG_COM_DIR_IDX_IRQHandler  

… and the same for TIM8

USB_DRD_FS_IRQHandler => USB_FS_IRQHandler

DTS_IRQHandler => DTS_WKUP_IRQHandler

CORDIC_IRQHandler => Cordic_IRQHandler

 

The fix is to modify the names in stm32h562_it.c to match those in the startup file: this must be repeated after every CubeMx code generation.

6 replies

javalatteAuthor
Associate III

The following code can be used to prevent CubeMX from removing the fix when code is generated, It involves adding a #ifdef to the user code section of the previous interrupt so that the generated incorrect code is ignored. The fixed version goes into the user code for the handler that requires the fix.

#ifdef FOO
/* USER CODE END SPI6_IRQn 1 */
}

/**
* @brief This function handles GPDMA2 Channel 0 global interrupt.
*/
void GPDMA2_Channel0_IRQHandler(void)
{
/* USER CODE BEGIN GPDMA2_Channel0_IRQn 0 */
#endif
}
void GPDMA2_CH0_IRQHandler(void)
{

 

TDK

Can you include your IOC? A newly generated project seems to generate consistent naming.

It is possible that the startup file is being left alone by the generation process and should be updated to the new naming.

"If you feel a post has answered your question, please click ""Accept as Solution""."
javalatteAuthor
Associate III

Here is the ioc file 

javalatteAuthor
Associate III

The  stm32h562_it.c file is updated by CubeMX when you generate code: the startup file does not change. 

Please find attached an IOC file that shows the problem.

javalatteAuthor
Associate III

It seems that other processors are suffering the same problem: here is an example, dating from February 2026. 

 

TDK

Generating code with this IOC produces the correct/consistent naming in the latest version of STM32CubeMX.

The startup file not changing on regeneration is intentional. It’s unfortunate they changed the names on you here, but you’ll need to do a one-time change of the names in the startup file in order to avoid having to rename them in the *_it file on each regeneration.

It seems that other processors are suffering the same problem: here is an example, dating from February 2026. 

The linked thread is marked as fixed which matches the behavior I’m seeing.

"If you feel a post has answered your question, please click ""Accept as Solution""."