Matching CRC32 from STM32F0 and zlib

后端 未结 5 1079
隐瞒了意图╮
隐瞒了意图╮ 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:22

    I haven't tested this, but I suspect that you're not, in fact, doing an 8-bit write on the STM32.

    Instead you're probably doing a write to the full width of the register (32 bits), which of course means you're computing the CRC32 of more bytes than you intended.

    Disassemble the generated code to analyze the exact store instruction that is being used.

提交回复
热议问题