Skip to main content
Associate
February 6, 2024
Solved

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

  • February 6, 2024
  • 2 replies
  • 2283 views

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? 

 

Best answer by mƎALLEm

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.

2 replies

mƎALLEm
mƎALLEmAnswer
Technical Moderator
February 6, 2024

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 "Best answer" on the reply which solved your issue or answered your question.
Associate II
March 14, 2024

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

mƎALLEm
Technical Moderator
March 14, 2024

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 "Best answer" on the reply which solved your issue or answered your question.