AnsweredAssumed Answered

CubeMX bug/issue report (problem in timer init code for IC mode)

Question asked by NikolayBobovnikov on Jan 19, 2016
Latest reply on Feb 8, 2016 by STM32Cube-T

I couldn't find bug/issue tracking system for CubeMX, so I place report here.

     When generating initialization code for TIM4 in input capture mode (channel 1 direct, channel 2 indirect), HAL_TIM_Base_MspInit() function is being generated in stm32f1xx_hal_msp.c file. This is incorrect function for input capture mode, as far as I understand, which leads to timer not capturing signal.
     CubeMX project file is attached 

Expected behaviour:
     HAL_TIM_IC_MspInit() function should be generated.

     I've added HAL_TIM_IC_MspInit() manually, which fixed the problem for me.

Additional info:
     CubeMX version: 4.11.0
     MCU used: stm32f103c8t6
     Library version: STM32CubeF1 Firmware Package V1.2.0 / 31-July-2015