cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-F412ZG CAN Configuration issue

JDOG
Associate III

I having trouble getting the correct CAN timing configured with default 96Mhz System Clock on the NUCLEO-F412ZG eval board.

I need a 250kbit/s baud rate.

Here is what I have so far.

JDOG_0-1712351780796.png

The system clock setup is below.

JDOG_1-1712351954587.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Karl Yamashita
Lead III

The ABP1 clock rate is 48MHz, not 96MHz.

Try these values to get 250kbit/s

 

KarlYamashita_0-1712353957244.png

 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

View solution in original post

2 REPLIES 2
SofLit
ST Employee

Hello,

Not sure I've understand the issue.

You need a bitrate of 250kb/s but I see you got it according to the screenshot. Could you please elaborate?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Karl Yamashita
Lead III

The ABP1 clock rate is 48MHz, not 96MHz.

Try these values to get 250kbit/s

 

KarlYamashita_0-1712353957244.png

 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.