cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE does not generate templates for interrupt handlers.

NKlep.1
Associate

 See the attached file - PC15 should generste a EXTI, so the IDE should generate EXTI4_15_IRQHandler(). Somehow no handler is not generated. TO be more precise, no handler is generated for any Interrupt. IDE is 1.3.0

2 REPLIES 2
TDK
Guru

PC15 is unused in your IOC file, so no need for the code to generate an interrupt handler for it.

PC13 is marked as an EXTI input pin.

The interrupt is not named EXTI4_15_IRQHandler, it is named EXTI15_10_IRQHandler and the code generates it in stm32f3xx_it.c along with all the standard interrupts.

/**
  * @brief This function handles EXTI line[15:10] interrupts.
  */
void EXTI15_10_IRQHandler(void)
{
  /* USER CODE BEGIN EXTI15_10_IRQn 0 */
 
  /* USER CODE END EXTI15_10_IRQn 0 */
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  /* USER CODE BEGIN EXTI15_10_IRQn 1 */
 
  /* USER CODE END EXTI15_10_IRQn 1 */
}

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

EDIT: Thank you, I found it. Now I'll have to work out why "Device Config Tool" hangs the verry first time on starting it.