cancel
Showing results for 
Search instead for 
Did you mean: 

HAL bug: HAL_TIM_ Encoder_MspInit GPIO alternate configuration missing

Jakub Lesinsky
Associate

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

0 REPLIES 0