cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F100RB - TIM15IRQ problem

alprof
Associate II
Posted on July 30, 2013 at 12:06

Hello! I have problem with this line in my application with STM32F100VLDiscovery:

NVIC_EnableIRQ(TIM15_IRQn);

I have error - TIM15_IRQn undeclared.

I did try also - NVIC_EnableIRQ(TIM15_UP_IRQn); - error again;

I don't know why and how I can turn on this interrupt.

;
6 REPLIES 6
Posted on July 30, 2013 at 13:16

Project defines STM32F10X_LD_VL, STM32F10X_MD_VL or STM32F10X_HD_VL as appropriate.

TIM1_BRK_TIM15_IRQn

TIM1_BRK_TIM15_IRQHandler

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
alprof
Associate II
Posted on July 30, 2013 at 13:36

Ok, will find, now not have (it is my first project with vldisco).

But why work NVIC_EnableIRQ(TIM3_IRQn); or also work NVIC_EnableIRQ(TIM4_IRQn);, but with TIM15 not? (sorry for my poor English:)

Posted on July 30, 2013 at 13:45

Because some vectors can support multiple interrupt sources, and are named to describe those sources. Likely due to design convenience.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
alprof
Associate II
Posted on July 30, 2013 at 13:57

Ok, thank you for help:) I have little problems with this forum yet. (edit, delete message etc).

alprof
Associate II
Posted on July 30, 2013 at 14:08

Posted on July 30, 2013 at 14:09

Yes, even if you used the BRK interrupt, you'd simply need to check the source and service them appropriately. Look at a TIM interrupt which handles CC1, CC2, CC3, etc

You'd add code that looked at both TIM1 and TIM15 sources as required.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..