2018-11-06 01:40 AM
I'm seeing a bug in STM32Cube_FW_F1_V1.6.0.
I was using timer 2 in up counting mode with a prescale value of 6399, however the prescale value was not being used. After stepping through the code I noticed a bug in the LL_TIM functions.
The LL_TIM_DisableUpdateEvent function is supposed to SET bit UDIS in the CR1 register to disable UEV. Likewise, the LL_TIM_EnableUpdateEvent function is supposed to CLEAR bit UDIS in the CR1 register to enable UEV.
This is swapped in version 1.6.0. I tried using LL_TIM_DisableUpdateEvent instead of Enable and now it works.
2018-11-07 01:03 AM
Hello @SPeir ,
We have already passed this issue along to our development team, and it will be fixed in the next release.
Thank you for your contribution.
Kind Regards,
Imen.