cancel
Showing results for 
Search instead for 
Did you mean: 

Does the HAL CAN library include CRC calculation in its Transmit function?

Jnana Panuganti
Associate II
Posted on January 05, 2017 at 13:32

Hello,

I am new to CAN and I was trying to understand how the HAL CAN APIs work. Based on my understanding of CAN 2.0 standard each data frame should have CRC field. 

How is this handled in bxCAN? Am I misunderstanding something?

Can anyone guide me on how to go about this?

Note: I was able to run the example STM32Cube/HAL CAN code for the L4 Eval board and send some messages between the two.

Thanks for your help!

1 REPLY 1
Posted on January 05, 2017 at 16:14

The peripheral generates the complete frames, including the CRC and EOF

The Reference Manual should cover the frame format and peripheral registers.

From the programming perspective you need to supply the ID, flags, length and payload data.

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