cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32 LL timer library

SPeir
Associate

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.

1 REPLY 1
Imen.D
ST Employee

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.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen