Skip to content

Commit 438a7c7

Browse files
committed
UNO-Q: Fix SPI (spi2) - disable PWM on D11
The MOSI pin was not working on SPI as the MOSI pin was coming up in AF mode 1 (i.e. timer). More details in the forum thread: https://forum.arduino.cc/t/spi-spi2-does-not-appear-to-work-add-spi1/1411662/3
1 parent 69260c8 commit 438a7c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

variants/arduino_uno_q_stm32u585xx/arduino_uno_q_stm32u585xx.overlay

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
/* tim1_etr_pa12 is not available for PWM */
7777
/* Currently only the pins marked with ~ on the pin headers are enabled */
7878
/* pinctrl-0 = <&tim1_ch4_pa11 &tim1_ch3n_pb15 &tim1_ch1n_pb13 &tim1_ch2n_pb14>; */
79-
pinctrl-0 = <&tim1_ch4_pa11 &tim1_ch3n_pb15>;
79+
pinctrl-0 = <&tim1_ch4_pa11>;
8080
pinctrl-names = "default";
8181
};
8282
};
@@ -269,7 +269,7 @@
269269
/* <&gpiob 4 0>, */ /* D8/PB4 - TIM3_CH1 */
270270
<&gpiob 8 0>, /* D9/PB8 - TIM4_CH3 */
271271
<&gpiob 9 0>, /* D10/PB9 - TIM4_CH4 */
272-
<&gpiob 15 0>, /* D11/PB15 - TIM1_CH3N */
272+
/* <&gpiob 15 0>, */ /* D11/PB15 - TIM1_CH3N */
273273
/* <&gpiob 14 0>, */ /* D12/PB14 - TIM1_CH2N */
274274
/* <&gpiob 13 0>, */ /* D13/PB13 - TIM1_CH1N */
275275
/* <&gpiob 11 0>, */ /* D20/PB11 - TIM2_CH4 */
@@ -301,7 +301,7 @@
301301
/* <&pwm3 1 PWM_HZ(500) PWM_POLARITY_NORMAL>, */ /* D8/PB4 → TIM3_CH1 */
302302
<&pwm4 3 PWM_HZ(500) PWM_POLARITY_NORMAL>, /* D9/PB8 → TIM4_CH3 */
303303
<&pwm4 4 PWM_HZ(500) PWM_POLARITY_NORMAL>, /* D10/PB9 → TIM4_CH4 */
304-
<&pwm1 3 PWM_HZ(500) PWM_POLARITY_INVERTED>, /* D11/PB15 → TIM1_CH3N */
304+
/* <&pwm1 3 PWM_HZ(500) PWM_POLARITY_INVERTED>, */ /* D11/PB15 → TIM1_CH3N */
305305
/* <&pwm1 2 PWM_HZ(500) PWM_POLARITY_INVERTED>, */ /* D12/PB14 → TIM1_CH2N */
306306
/* <&pwm1 1 PWM_HZ(500) PWM_POLARITY_INVERTED>, */ /* D13/PB13 → TIM1_CH1N */
307307
/* <&pwm2 4 PWM_HZ(500) PWM_POLARITY_NORMAL>, */ /* D20/PB11 → TIM2_CH4 */

0 commit comments

Comments
 (0)