ноги проверьте, Some I/Os can be used as alternate function input. For example as the port may be used as
the input capture input to a timer. Alternate function inputs are not selected automatically,
you select them by writing to a control bit in the registers of the corresponding peripheral.
For Alternate Function input, you should select floating or pull-up input configuration in the
DDR and CR1 registers.
Будет забавно, если вы не переключили CR1