Adding an interrupt to an existing program
Hello!
I have started a new program using AC6. I have chosen to use Cube Hal,
and the option to copy files in my workspace.
I’m using AC6 on Mac.
I’m using a STM32F469I-Disco board.
Compiling the program works fine (it compiles, seems to load and run).
Adding Hal_Init(), a few LEDs, and a systick handler allows to blink
LEDS, everything works fine. Now what I would like to do is to use another
timer (just for experiment). The experiment would be as follows:
- Declare a timer, and initialize it as shown in the example TIM/TIM_Timebase.
Then I have added TIMx_IRQHandler declaration and definition in stm32F4xx_it,
header and source files.
But the timer routine is never called, so I guess I have to add something
somewhere else.
For example, the systick is called from Hal_SYSTICK_IRQHandler which
calls a weak HAL_SYSTICK_Callback. If I override this one, then I can
have access to the systick interrupt,
Can anybody give me hints on how to have (for example) TIM3_IRQHandler
called when the timer is over?
Thanks,
Pascal