cancel
Showing results for 
Search instead for 
Did you mean: 

The STM32H725/735 HAL function IS_TIM_MASTER_INSTANCE() is missing a check for TIM12, which is a valid master (has MMS bits in CR2).

Andrew Sterian
Associate II

For example, here is the function definition for the STM32H725:

/****** TIM Instances : master mode available (TIMx_CR2.MMS available )********/

#define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \

                      ((INSTANCE) == TIM2) || \

                      ((INSTANCE) == TIM3) || \

                      ((INSTANCE) == TIM4) || \

                      ((INSTANCE) == TIM5) || \

                      ((INSTANCE) == TIM6) || \

                      ((INSTANCE) == TIM7) || \

                      ((INSTANCE) == TIM8) || \

                      ((INSTANCE) == TIM15) || \

                      ((INSTANCE) == TIM23) || \

                      ((INSTANCE) == TIM24))

Note that TIM12 is missing.

Other MCU's may be affected but I'm only looking at the 725/735 for now.

2 REPLIES 2
Imen.D
ST Employee

Hello @Andrew Sterian​ ,

Thanks for your reported issue.

I will check this and will give you an update as soon as possible.

Happy new year! :party_popper:

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi @Andrew Sterian​ ,

I confirm this issue and I have passed it along to our development team for fix.

Thanks for your contribution.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen