Library 47- CRC module on STM32F4

STM32F4xx devices have CRC (Cyclic Redundancy Check) module inside. This is small and useful unit when working with communications. It might become very useful to verify if your packet of data is correct.

STM32F4 devices uses “Ethernet” CRC with polynomial below:

X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 +X8 + X7 + X5 + X4 + X2 + X +1

It is quite ugly 😀 Well, using this module is very easy. I’ve made some functions to calculate CRC from block of data.



  • Calculate CRC data from 8-bit data block
  • Calculate CRC data from 16-bit data block
  • Calculate CRC data from 32-bit data block


    • STM32F4xx
    • STM32F4xx RCC
    • STM32F4xx CRC
  • TM
    • defines.h

Functions and enumerations


Project available on Github, download library below.


Owner of this site. Application engineer, currently employed by STMicroelectronics. Exploring latest technologies and owner of different libraries posted on Github.

You may also like...