STM32CubeMX_LL_code enables only some devices?
Using:
Truestudio for STM32 v9.0.0.0
STM32CubeMX v4.25.0
STM32F100C8
LL_drivers only
LL_Code generated by cube enables some devices, such as the USART:
LL_USART_Enable(USART1);
But for the TIMERS it doesn't.
(perhaps there is a good reason for this?)
Also, when you select a PWM output, it does not enable the output(s):
TIM_OC_InitStruct.OCMode = LL_TIM_OCMODE_PWM1;
TIM_OC_InitStruct.OCState = LL_TIM_OCSTATE_DISABLE;Again, why?
(Leaving a hint in int main(void) might be an idea.)
For advanced TIMERS (TIM1) it may help people who want to use PWM when this is mentioned somewhere:
LL_TIM_EnableAllOutputs(TIM1);
(I found the MOE_bit to be rather hidden in the documentation in TIMx_BDTR)
Regards,
Wilko
