Safety-certified tools Tools for Automotive Applications C-STAT Static analysis C-RUN Runtime analysis Debugging and trace probes Build tools for Linux
This Technical Note shows how to calculate CRC32 with IAR Embedded Workbench for Arm using the most common CRC32 algorithm as used by online CRC calculators.
For example, with the following online CRC32 calculators the input data 0x01 0x02 0x03 0x04 gives the result 0xB63CFBCD:
Note that the CRC32 example project in Technical Note 45456 gives a different result compared to the online CRC calculators.
To get the same result as the online CRC calculators with IAR ielftool, the relevant settings in the Project>Options>Linker>Checksum dialog box are:
See example project crc32std_ewarm_7804.zip (created with IAR Embedded Workbench for Arm version 7.80.4).
See the following screenshots from the three online CRC-calculators:
It is possible to calculate CRC32 with IAR Embedded Workbench for Arm using the most common CRC32 algorithm as used by online CRC calculators.
All product names are trademarks or registered trademarks of their respective owners.