Can't remap stm32 qdec to TIM3 AF2 #72968
Replies: 1 comment 5 replies
-
|
@digiexchris After I looked at |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to get the qdec sample working on an STM32F411CEU6, which is pin compatible for TIM3 a6/a7/b0/b1 and the DTS shown in the sample readme. I confirmed that the sample works correctly with the DTS provided, but I need to use PB0 and PB1 because I need PA7 for SPI1. I've attempted to remap it with the following overlay, but I get no encoder output with the QDEC sample. I first tried without the addition of the pinctrl/pinmux nodes, which leaves the only difference from the sample is pinctrl-0 = <&tim3_ch3_pb0 &tim3_ch4_pb1>;
Am I doing something wrong? The pullups and the hardware is identical to how it was working on &tim3_ch1_pa6 &tim3_ch2_pa7.
I checked this on 3 different boards to make sure it's not hardware.
/ {
aliases {
qdec0 = &qdec;
};
};
&timers3 {
status = "okay";
};
&pinctrl {
tim3_ch3_pb0: tim3_ch3_pb0 {
pinmux = <STM32_PINMUX('B', 0, AF2)>;
bias-pull-down;
};
};
Beta Was this translation helpful? Give feedback.
All reactions