AnsweredAssumed Answered

Background CRC32 in segments on STM32F4

Question asked by sotack.john.001 on Mar 1, 2013
Latest reply on Mar 4, 2013 by Clive One
I would like to do a background CRC32 on FLASH such that I do 256 bytes at a time and get a final result.  The system must continue to run and meet RT deadlines while the CRC is calculated.  Additionally, communication functions use the CRC unit.

From reading the reference manual, it appears I can only reset the CRC to 0xffffffff.  I would like to continue the CRC incrementally with 256 Byte blocks, starting with the previous CRC that is no longer present.  Is there a way to set the CRC to a stored previous CRC continuation value.  For example if the result of the CRC for the previous 256 block as 0x0230dfef, I would want to start with that value in the DR.

I could reset the CRC for each block and prepend the previous CRC but this is a custom algorithm and I would like to stick with the standard Ethernet CRC.

John

Outcomes