Skip to main content
NKlep.1
Associate
June 13, 2020
Question

STM32CubeIDE does not generate templates for interrupt handlers.

  • June 13, 2020
  • 2 replies
  • 1348 views

 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

This topic has been closed for replies.

2 replies

TDK
June 14, 2020

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""."
NKlep.1
NKlep.1Author
Associate
June 14, 2020

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.