NUCLEO-L073RZ Encoder Working in one project and not the other
I'm developing a project with a lot of peripherals running at once. I wanted to add a rotary encoder on Timer 3 but it refused to do anything at all. The TIM3->CNT Register just sits at 0. Otherwise one PWM Channel of Timer 21 as well as the RTC are running.
Then I tried it on an empty project and with the exact same code it is working without a hitch.
Could any of the peripherals interfere with the timer in encoder mode?
all used peripherals (all working already):
- one adc pin
- rtc with sleep mode
- Timer21 Ch1 PWM OUT
- SPI1 in master only mode
- rng
- the usb pins to flash via the dfu bootloader