Encoder with stm32

The QEP block connections are correct, and the configurations I am using are the same as the file you sent earlier. Is there any other way to measure speed and position, or do you have any additional tips on how to configure it?