Skip to content

Commit 67d10c6

Browse files
kbidanikartben
authored andcommitted
boards: st: stm32f4_disco: enable CAN1 to support CAN2 on STM32 BxCAN
CAN2 requires CAN1 to be enabled because both controllers share the same hardware filter banks. The master-can-reg property in the CAN2 node points to CAN1, making it the hardware filter master. Set CAN1 status to "okay" in the device tree to ensure proper CAN2 operation. Signed-off-by: Khaoula Bidani <[email protected]>
1 parent 3f01125 commit 67d10c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boards/st/stm32f4_disco/stm32f4_disco.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ zephyr_udc0: &usbotg_fs {
157157
status = "okay";
158158
};
159159

160+
&can1 {
161+
pinctrl-0 = <&can1_rx_pd0 &can1_tx_pd1>;
162+
pinctrl-names = "default";
163+
status = "okay";
164+
};
165+
160166
&can2 {
161167
pinctrl-0 = <&can2_rx_pb5 &can2_tx_pb13>;
162168
pinctrl-names = "default";

0 commit comments

Comments
 (0)