cancel
Showing results for 
Search instead for 
Did you mean: 

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

nbobovnikov
Associate II
Posted on January 19, 2016 at 11:33

Hello,

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

Description: 

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.

Notes:

I've a

dded 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

 

#cubemx #bug
2 REPLIES 2
Nesrine M_O
Lead II
Posted on January 20, 2016 at 15:27

Hi NikolayBobovnikov,

  

Thank you for your feedback. The issue has been reported internally.

-Syrine-

stm32cube-t
Senior III
Posted on February 08, 2016 at 19:15

Dear user,

This has been fixed in STM32CubeMX 4.12 release.

Best regards