cancel
Showing results for 
Search instead for 
Did you mean: 

About FDCAN ERROR

quanhongwei
Associate III

Dear STM experts:
     I am using the STM32G473RET6 chip for classic mode communication debugging in FDCAN, but there is a phenomenon where I cannot send information. In FDCAN-PSR, I can see an error of LEC being 5. After removing the CAN chip (SN65HVD230, R pin floating), an error of LECt being 2 appears. I am preparing to replace it with SN65HVD232,Is there any STM with similar routines to refer to? If so, where can I find it? Thanks.

Best regards!

1 ACCEPTED SOLUTION

Accepted Solutions

HI,m3ALLEm:
Thank you for your reply. My purpose is to need a CAN sending and receiving routine related to stm32g473 for reference. Now the CAN sending has been solved (the previous problem was replaced with SN65HVD232, and messages can be sent normally). We are currently conducting experiments on receiving messages. If there is a reference routine, regardless of its circuit board structure, please send it to me. Thank you!

Best Regards.

View solution in original post

4 REPLIES 4
mƎALLEm
ST Employee

Hello,

The issue issue not clear. what do you mean by "there is a phenomenon where I cannot send information"??

Do you mean you are not able to send CAN frames?

In that case you need to provide the following:

1- A sketch of your CAN bus. Like this:

CAN.png

2- Are you using stm32g473 nucleo board?

3- Share the schematics especially the CAN part.

4- Share your project so I can check your config 

Please answer the questions above, otherwise, I cannot hep you efficiently.

PS: you didn't tell if you have connected another CAN node on the bus. If not. This is not the correct way to test the CAN interface in Normal mode. You need to use Loopback mode instead.

Refer also to this article: How to use FDCAN to create a simple communication with a basic filter it is using FDCAN in Classic mode.

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.

HI,m3ALLEm:
Thank you for your reply. My purpose is to need a CAN sending and receiving routine related to stm32g473 for reference. Now the CAN sending has been solved (the previous problem was replaced with SN65HVD232, and messages can be sent normally). We are currently conducting experiments on receiving messages. If there is a reference routine, regardless of its circuit board structure, please send it to me. Thank you!

Best Regards.

Hello,


@quanhongwei wrote:

HI,m3ALLEm:
Now the CAN sending has been solved (the previous problem was replaced with SN65HVD232, and messages can be sent normally).


As the original question has been asked you need to close this thread by selecting the post that contains the solution. In that case yours.


@quanhongwei wrote:

If there is a reference routine, regardless of its circuit board structure, please send it to me. Thank you!

Best Regards.


I've already provided a link to knowledge base article in my previous post.

I can also add:

Using CAN (bxCAN) in Normal mode with STM32 microcontrollers (Part 1)

Using CAN (bxCAN) in Normal mode with STM32 microcontrollers (Part 2)

But both links are related to the bxCAN usage and not to FDCAN.

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.

HI,m3ALLEm:
    Thank you for your reply. Now my FDCAN can receive data, but I am still not familiar with the detailed settings, such as the Message RAM settings for receiving and sending . For now, I can only follow the default values. That's all for this discussion. Thank you again.

Best Regards.