You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STM32 provides HAL library for the configuration of timers. In this bug, I am using TIM5 of STM32H743. However, this bug is applicable to other timers as well.
In order to start or stop a timer, there are separate set of functions available with HAL timer library. For example HAL_TIM_Base_Start***() and HAL_TIM_Base_Stop***() functions.
To start or stop an individual channel of a timer, there are also dedicated functions such as HAL_TIM_OC_Start***() and HAL_TIM_OC_Stop***()
What is the bug???
OC_Start() and OC_Stop() functions also enable and disable the timer within their implementations.
This will not allow us to operate the channels independent of timer counter. There are some application scenarios, where we would like to enable and disable only the channels without stopping the counter.
How to reproduce the bug (skip if none)
HAL_TIM_Base_Start() --> HAL_TIM_OC_Stop() OR
HAL_TIM_OC_Stop() --> HAL_TIM_OC_Start()
Additional context
I do not understand, why the OC enable and disable function should hamper the operation of timer counter!!! This hinders the operation of channels independent of counter.
The text was updated successfully, but these errors were encountered:
Hardware Set Up
Bug
How to reproduce the bug (skip if none)
Additional context
I do not understand, why the OC enable and disable function should hamper the operation of timer counter!!! This hinders the operation of channels independent of counter.
The text was updated successfully, but these errors were encountered: