2008-02-06 06:16 PM
CRC check for FLASH
2011-05-17 03:22 AM
I want to check FLASH content after each startup using 32-bit CRC. This is easy to do, but I have to calculate CRC and add it to the linker output file before I download it to my STM32. I'm using Raisonance Ride 7.
Is there any smart way to add CRC or is there an alternative to detect corrupted data in FLASH memory?2011-05-17 03:22 AM
don't know about ride7 but you could try integrating srecord into the build.
2011-05-17 03:22 AM
If you are not sure what lanchon means by srecord:
http://srecord.sourceforge.net This is an example to put the checksum at the end of the hex file srec_cat in.hex -Intel -Little_Endian_CRC32 -max in.hex -Intel -Output out.hex Cheers sjo2011-05-17 03:22 AM
Thank you lanchon and sjo, I didn't know srecord.
I'll have to decide what information to add in the build (CRC, program version from version manager) and what information later during testing (serial number, hardware version, test report).