tim3 interrupt not getting cleared
- July 5, 2018
- 2 replies
- 924 views
I'm new to ST but have extensive experience with Eclipse and other ARM M cores..
I created a simple 'blinky' program using STM32CubxMX and ST32M System Workbench on a STM32F769-DISC0 Discovery Board.
The LED toggles once during an interrupt. Then the interrupt no longer gets invoked. It's like the irq flag is not reset.
But as I trace through stm37f7xx_hal_tim.c, the following macro to clear the RS bit is executed on the first interrupt after a reset.
__HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
I am following the example in Chapter 7 of the UM1718.pdf '
STM32CubeMX for STM32 configuration
and initialization C code generation'. I'm am not using any middle-ware and is bare-metal. Only the HAL layers.It's a simple program that uses tim3 to toggle PJ13 (LD_USER1). It toggles the first time but then the interrupt is never triggered.
Attached is my Cube project file and main.c
Please help as I have no idea why this isn't working.
#timer-interrupts #use-stm32f769-discovery-board