Question
STM32Cube: TIM OnePulse/PWM/OC configuration issue
Posted on July 30, 2014 at 12:31
Hi,
setting up timer TIM1 in OnePulse mode does not work on channel 3 and 4.As I figured out, only channels 1 and 2 are handled by HAL_TIM_OnePulse_ConfigChannel.Finally, I have the following issues to be discussed.Any comments are welcome.1. The controller reference manual does not contain such a restriction. Does anyone can tell why channels beyond 2 are disallowed?2. Why does a configuration request for channels 3 and 4 response with HAL_OK despite they are not accepted by the function HAL_TIM_OnePulse_ConfigChannel?3. There is a missing assertion in HAL_TIM_PWM_ConfigChannel:assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));In function HAL_TIM_OC_ConfigChannel there is such a assertion despite this configuration parameter is not used.Thanks. #stm32cube-onepulse-pwm