Skip to content

STM32H7 Zephyr CAN Driver #69073

Closed Answered by RIPHeisenberg
RIPHeisenberg asked this question in General
Discussion options

You must be logged in to vote

That actually was the issue. Thanks! It finally compiles now. And it seems as if packages are being send. :D I'll have to test it with a can module but I think this should work out.

  1. Adding stm32_hal to zephyr west.yml file

Final overlay file:

#include <st/h7/stm32h747Xi_m4.dtsi>

/ {
chosen {
zephyr,console = &uart8;
zephyr,canbus = &fdcan1;
};
};

&uart8 {
status="okay";
};

&fdcan1 {
pinctrl-names = "default";
pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_pb9>;
bus-speed = <125000>;
bus-speed-data = <1000000>;
status = "okay";
};

Kconfig:

CONFIG_GPIO=y
CONFIG_CAN=y
CONFIG_CAN_FD_MODE=y
CONFIG_CAN_STM32H7_FDCAN=y

CONFIG_ISOTP=y
CONFIG_REBOOT=y

CONFIG_LOG=y
CONFIG_DEBUG=y
CONFIG_CONSOLE=y
CONFIG_…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@erwango
Comment options

erwango Feb 16, 2024
Collaborator

@RIPHeisenberg
Comment options

@erwango
Comment options

erwango Feb 16, 2024
Collaborator

@RIPHeisenberg
Comment options

Answer selected by erwango
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants
Converted from issue

This discussion was converted from issue #69066 on February 16, 2024 09:43.