Matching CRC32 from STM32F0 and zlib

后端 未结 5 1077
隐瞒了意图╮
隐瞒了意图╮ 2021-02-10 17:53

I\'m working on a communication link between a computer running Linux and a STM32F0. I want to use some kind of error detection for my packets and since the STM32F0 has CRC32 hw

5条回答
  •  长情又很酷
    2021-02-10 18:10

    The CRC32 implementation on STM32Fx seems to be not the standard CRC32 implementation you find on many online CRC calculators and the one used in zip.

    STM32 implements CRC32-MPEG2 which uses big endian and no final flip mask compared to the zip CRC32 which uses little endian and a final flip mask.

    I found this online calculator which supports CRC32-MPEG2.

    If you are more interested on other CRC algorithms and their implementation, look at this link.

    PS: The HAL driver from STM supports input in byte, half word and word formats and they seem to work fine for STM32F0x in v1.3.1

提交回复
热议问题