STM32 Nucleo-F446RE Encoder Count only printing 0
I am trying to read the output of an encoder using CubeIDE. I have a DC motor with a magnetic encoder attached. When the encoders are measured using a multi-meter the outputs are ranging between 0 to 5V when rotating. But when connected to the Nucleo through a timer’s encoder mode, the output is printing as 0. I have tried multiple timers and have verified the connection.