Timer 2 of STM32L496ZG is not working as counter to count external clock source. Please send updated datasheet of STM32L496zgtbu .Please Find attached details of configuration.
we are using STM32L496ZG NUCLEO Board for development .Timer2 channel 3 (PA2) is Configure for counting.