Skip to main content
Visitor II
August 5, 2025
Solved

Does STM32 CAN Peripheral Calculate CRC for Messages?

  • August 5, 2025
  • 1 reply
  • 216 views

Hi everyone,

I'm working with the STM32F405RGT6 and its CAN peripheral. I have a couple of questions regarding CRC handling:

  1. Does the STM32 CAN peripheral automatically calculate the CRC for both sent and received CAN messages?
  2. I noticed there is a CRC Error bit in the documentation. What is the purpose or functionality of this CRC Error bit?

Thanks for your help!

Best regards,

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    It composes the message with the CRC to send it, and checks the messages received. Yo don't need to compute manually.

    The error bit suggests it received something, but the integrity check failed.

    In most CRC implementations it feeds the values through the polynomial, and the remainder is zero if it is correct.

    1 reply

    Graduate II
    August 5, 2025

    It composes the message with the CRC to send it, and checks the messages received. Yo don't need to compute manually.

    The error bit suggests it received something, but the integrity check failed.

    In most CRC implementations it feeds the values through the polynomial, and the remainder is zero if it is correct.