2019-05-07 05:03 AM
Target cube version: 5.2.0
Target firmware package version: STM32Cube FW_L0 V1.11.2
Target MCU: stm32L031C6
Hi there,
we have encountered a regression in HAL_TIM_Encoder_MspInit function body generation after the firmware package update. We have noticed this after two of our MCUs were damaged on related pin (PA0). Issue is that "Alternate" item from GPIO_InitStruct is not set before each HAL_GPIO_Init call. Our explicit addition of GPIO_AF_TIM2 mode setting to user code solved the issue.
We have tested aforementioned firmware package with older cube and got same results. In comparison configuration was working as expected in firmware package version STM32Cube FW_L0 V1.10.0.
Best Regards,
Jakub