Associate
January 19, 2016
Question
CubeMX bug/issue report (problem in timer init code for IC mode)
- January 19, 2016
- 2 replies
- 1474 views
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