Skip to main content
SPeir
Visitor II
November 6, 2018
Question

Bug in STM32 LL timer library

  • November 6, 2018
  • 1 reply
  • 618 views

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.

This topic has been closed for replies.

1 reply

ST Technical Moderator
November 7, 2018

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks