Skip to main content
st239955_stm1
Associate III
Mar 13, 2015 9:37 AM UTC
Question

STM32F2xx_HAL_Driver : error in the driver for TIM3 and TIM4

Posted on March 13, 2015 at 10:37

Hi,

There is an error in the file stm32fxx_hal_tim.c, for TIM3 and TIM4 capture compare.

We never enter in the callback because of this error.

 

  * @file    stm32f2xx_hal_tim.c

  * @author  MCD Application Team

  * @version V1.0.1

  * @date    25-March-2014

Line 2749 and 2770 => you must replace CCMR1 by CCMR2.

      /* Input capture event */

      if((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00)

      {          

        HAL_TIM_IC_CaptureCallback(htim);

      }

      /* Input capture event */

      if((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00)

      {          

        HAL_TIM_IC_CaptureCallback(htim);

      }

Can the ST team update this driver ? Since it's a part of the drivers used by CubeMx, it's a very annoying problem.

Thanks :)

#tim #stm32 #hal #stcubemx
This topic has been closed for replies.

4 replies

st239955_stm1
Associate III
Sep 22, 2015 8:06 AM UTC
Posted on September 22, 2015 at 10:06

Hi there,

This bug is it fixed?Thanks,

Nesrine M_O
Associate
Sep 22, 2015 8:36 AM UTC
Posted on September 22, 2015 at 10:36

Hi Stivy,

I will report the issue to our development team.

Thank you for the information and sorry for the inconvenience that it may bring

-Syrine-

Nesrine M_O
Associate
Sep 23, 2015 12:25 PM UTC
Posted on September 23, 2015 at 14:25

Hi Stivy,

Sorry for the late response.

Your reported issue is confirmed by our team and will be fixed in coming release of the STM32cubeF2 package.

Thank you very much for your contribution to the enhancement of our STM32 related solutions.

-Syrine-

st239955_stm1
Associate III
Mar 25, 2016 10:00 AM UTC
Posted on March 25, 2016 at 11:00

Hi,

Indeed, it is ok now. 

We can close this bu and mark this topic as solved :)

Thanks.