cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32 CAN Peripheral Calculate CRC for Messages?

tristan_mitis
Associate

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,

1 ACCEPTED SOLUTION

Accepted Solutions

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..