Resolved! possible errata in STM32L4R5 reference manual (rev9)
page 1320; timer 2 input pwm mode"1. Select the active input for TIMx_CCR1: write the CC1S bits to 01 in the TIMx_CCMR1 register (TI1 selected).2. Select the active polarity for TI1FP1 (used both for capture in TIMx_CCR1 and counter clear): write the...