Loading...
 
Skip to main content

System Workbench for STM32


Timer Interrupt Not Working

Thanks very much @RandallStockberger. I have been pulling my hair over this for the last 4 days.

There is already an extern C around the void TIM4_IRQHandler(void) declaration in stm32f1xx_it.h

  1. ifdef __cplusplus

extern "C" {

  1. endif


/* Includes ----------------------*/
/* Exported types --------------------*/
/* Exported constants --------------------*/
/* Exported macro --------------------*/
/* Exported functions ------------------- */

void SysTick_Handler(void);
void TIM4_IRQHandler(void);
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);

  1. ifdef __cplusplus

}

  1. endif