cancel
Showing results for 
Search instead for 
Did you mean: 

CAN communication between 3 Nucleo boards

Srivatsan
Associate III

Hi,

I am trying to establish CAN communication between three different MCUs: NUCLEO-H723ZG, NUCLEO-H755ZIQ, and NUCLEO-G474RE. However, I am unable to successfully communicate between the boards, even though the same baud rate has been configured on all MCUs. I have also connected an external CAN transceiver to each board for proper CAN bus operation.

On the NUCLEO-G474RE, I have enabled UART4 to send command data, using the following pins:

  • PC11 – UART4_RX

  • PC10 – UART4_TX


Clock Frequency [SYSCLK] & Baud Rate [CAN]:

1. NUCLEO-H723ZG: 550 MHz

    Baud Rate: 500000 Bit/s

Srivatsan_2-1770723670441.png

 

Srivatsan_3-1770723803277.png

 


2. NUCLEO-H755ZIQ: 480 MHz

    Baud Rate: 500000 Bit/s

Srivatsan_0-1770723567676.png

 

Srivatsan_4-1770723922733.png

 


3. NUCLEO-G474RE: 170 MHz

    Baud Rate: 500000 Bit/s

Srivatsan_1-1770723624279.png

 

Srivatsan_5-1770723986124.png

 

31 REPLIES 31

I've logic analyzer. I've connected the logic analyzer and taken the output. 

connecting the G474RE board-1 with the H723ZG Board:

Srivatsan_1-1770960973035.png
connecting the G474RE board-2 with the H723ZG Board:

Srivatsan_0-1770960950475.pngconnecting the G474RE board-1 & board-2 with the H723ZG Board:

Srivatsan_2-1770961050541.png

Srivatsan_3-1770961068160.pngconnecting only the H723ZG board-3:

Srivatsan_4-1770961136200.png

Sorry, hereafter I won't change any things in the .ioc file. I have uploaded the latest .ioc file which is attached.

 

I don't know what you did behind the scene. What Channel 1 refers to? G4 FDCAN Tx? or CAN analyzer Tx?

If one of them, H7 FDCAN_Rx is not receiving anything, so it's a hardware issue either a wiring issue or a transceiver issue. 

- So check your wiring on H7 side 

- Check the power supply of your transceiver

- Even, replace the transceiver used by STM32H7.

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.