Skip to content

SAME51 CAN-Bus Support #61014

Answered by DomiHive
DomiHive asked this question in General
Jul 10, 2023 · 6 comments · 2 replies
Discussion options

You must be logged in to vote

Hi together,
I have finally solved all problems and got the CAN-Bus to work as expected. Here are the things that needed to be changed.

At first I had to get the .dts file correct. The following one worked for my configuration. The correct interrupt pins and the correct clocks can be found in the datasheet.

	soc {
		can0: can@42000000 {
			status = "okay";
			compatible = "atmel,sam0-can";
			reg = <0x42000000 0x100>;
			reg-names = "m_can";
			interrupts = <78 0>, <78 1>;
			interrupt-names = "LINE_0", "LINE_1";
			clocks = <&gclk 27>, <&mclk 0x10 8>;
			clock-names = "GCLK", "MCLK";
			divider = <1>;
			bosch,mram-cfg = <0x0 28 8 3 3 1 1 1>;
			sjw = <1>;
			sample-point = <875>;
			sjw…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@henrikbrixandersen
Comment options

@sebastianschlupp
Comment options

Answer selected by DomiHive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) area: CAN
4 participants
Converted from issue

This discussion was converted from issue #60193 on July 31, 2023 20:43.