AnsweredAssumed Answered

Stm32L476: Available base Timers using HAL_TIM

Question asked by Eugenia Suarez on Jan 11, 2018
Latest reply on Jan 12, 2018 by Chris T

I'm using stm32L476 mcu and I'm trying to configure and enable a set of timers in my stm32 project using cube, hence HAL libraries. 

Reading datasheet I found TIM2, TIM3, TIM4, TIM5, TIM15, TIM16, TIM6 and TIM7 could be used as simply timebases. 

First I have enabled TIM7 and TIM3. I enabled the timers irq using TIM3_IRQn (seen at stm32l476xx.h file) and its TIM3_IRQHandler (seen at and startup.s one) handler for callbacks. It was ok.

So, when I try to enable Tim6 irq, TIM6_IRQn  or TIM6_IRQHandler  they seem not to exist or, maybe, I'm not able to see how to enable this timer's interrupt. The same is happened with TIM15 and TIM16 and some of the available timers.

 

Could anybody explain me if there is less  number of available timers using HAL libraries than not using ones. If is this the case which of them are actually available if used as base timers?

 

I have read two stm32l4 datasheets and how to use HAL drivers user guide. But here is no explanation about this fact. 

 

Any new information will be appreciated. 

 

Thanks in advance.

Outcomes