cancel
Showing results for 
Search instead for 
Did you mean: 

fdcan communication between nucleo and discovery kit

revvathi
Associate II

the objective of this particular project was to transmit data frames from stm32h750dbk(discovery kit) to stm32g491re(nucleo)
it is debugging and creating live expression for both of the data types in receiving and transmit end of board i have not connected any transceiver between them because it has inbuilt fdcan ports 
i am attaching both the codes for g4 and h7 
the picture of hardware and the live expression result when debugged separately 

temp1.pngtemp2.pngWhatsApp Image 2025-02-11 at 7.56.11 PM.jpeg

17 REPLIES 17

yee i figured tht changes done 

What changes you have applied?

Please provide at least a picture.

Share the transceiver module schematics.

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.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.

@revvathi wrote:

revvathi_0-1739292246374.png

https://www.nxp.com/docs/en/data-sheet/TJA1050.pdf
you can refer to the above 

 


This is the datasheet of the transceiver not the schematics of the module.

OK what you need to check: S pin is connected to the GND. Could you please confirm?

Is there a 120ohm already soldered on the board? in that case you don't need to add an external 120 ohm terminating resistor. From the DISCO side, there is a 120ohm resistor but you need to fit 

You need also to fit the jumper JP7 to connect that resistor:

SofLit_0-1739287732812.png

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.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.

WhatsApp Image 2025-02-11 at 10.39.43 PM.jpeg

As you are using FDCAN1 on the disco board, did you fit the jumper JP7?

Are you sure CAN_H and CAN_L are connected correctly between the nodes?

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.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.

yes i am using fdcan1 and jp7 has been fixed

 

according to the datasheet there is a 120ohm already existing on board
there is no S pin on the board to ground it 


@revvathi wrote:

there is no S pin on the board to ground it 


I didn't understand what do you mean by that.

Meanwhile you have an issue in CAN bitrate:

H7:

SofLit_0-1739294627401.png

G4:

SofLit_1-1739294669035.png

These bitrates don't match!

As I said previously if you are not familiar with the CAN/CAN-FD protocols, you need to study them before going ahead with the development.

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.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.