Skip to main content
Andrew Sterian
Associate II
Dec 31, 2020 7:41 AM UTC
Question

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).

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.

This topic has been closed for replies.

2 replies

ST Technical Moderator
Dec 31, 2020 2:39 PM UTC

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
Jan 5, 2021 8:46 AM UTC

Hi @Andrew Sterian​ ,

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

Thanks for your contribution.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks