FDCAN / Zephyr issue
Custom board. STM32U5G9.
I am running Zephyr and trying to use PB8 and PB9 for the FDCAN peripheral. In loopback mode, it does not get any errors but in normal mode it does.
The odd thing is that if I change the pins in the dts file to PA11 and PA12, it works fine.
I am guessing that it is a timing/clock issue or something but I have been arguing with this for two days and I am out of ideas.
The device tree entry is:
&fdcan1 {
// pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_pb9>;
pinctrl-0 = <&fdcan1_rx_pa11 &fdcan1_tx_pa12>;
pinctrl-names = "default";
bus-speed = <250000>;
bus-speed-data = <250000>;
status = "okay";
can-transceiver {
max-bitrate = <250000>;
};
};If I uncomment the first pinctrl (pb8 & pb9) I see no output on the TX GPIO pin (PB9). If it is configured as shown, I do see packets on PA12.
Thanks!
