Skip to main content
Visitor II
October 26, 2025
Solved

About FDCAN ERROR

  • October 26, 2025
  • 1 reply
  • 251 views

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!

    This topic has been closed for replies.
    Best answer by quanhongwei

    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.

    1 reply

    Technical Moderator
    October 28, 2025

    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.

    quanhongweiAuthorAnswer
    Visitor II
    October 30, 2025

    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.

    Technical Moderator
    October 30, 2025

    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.