cancel
Showing results for 
Search instead for 
Did you mean: 

Setup for CAN communication with NUCLEO-H7A3ZI-Q and NUCLEO-F429ZI

Anusree_k
Associate II

Hello

I looking to do Classic CAN communication (Not FD) Between NUCLEO-H7A3ZI-Q and  NUCLEO-F429ZI  in normal mode. I am using MCP2551 transceiver on both boards. I added termination resistors on both side  But i didn't Receive the message.

My configurations are:

In NUCLEO-H7A3ZI-Q :

Anusree_k_0-1707194371329.pngAnusree_k_1-1707194390955.pngAnusree_k_2-1707194421181.png

In NUCLEO-F429ZI :

Anusree_k_3-1707194472936.pngAnusree_k_4-1707194497596.png

Can you please check if there are any configuration issues? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

BS1=2, BS2 = 2 values are not good mainly for H7.

You need to in crease them at maximum with BS1 =~75% (BS1+BS2).

So decrease the CAN prescalers too.

Also what is the source clock of your system? If you are using HSI as system source of clock, I recommend you to used HSE instead with an external Crystal.

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.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

Hello,

BS1=2, BS2 = 2 values are not good mainly for H7.

You need to in crease them at maximum with BS1 =~75% (BS1+BS2).

So decrease the CAN prescalers too.

Also what is the source clock of your system? If you are using HSI as system source of clock, I recommend you to used HSE instead with an external Crystal.

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.
Dragonmonkey
Associate II

Hi,

I want to jump in here to find solution for my error

Fatal error stm32h7xx_hal_can.h: No such file or directory

 

How can I download and install it?

Appreciate any help

Hello @Dragonmonkey 

I suggest you to open a new thread for your issue as it's different.

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.