GENERAL: GENERATING A ROM CHECKSUM
Information in this article applies to:
I need to validate the ROM in my microcontroller application at boot time. Is there any way to automatically generate a checksum of any kind in the code image that I could compare the actual code to?
Yes, we have application note 277 which explains how to generate and store a CRC checksum over one or several ROM areas using the srec_cat utility. It also provides several CRC32 implementations to calculate the CRC checksum during runtime for a one-time or periodic ROM self test. This application note is mainly written for ARM microcontrollers, but can also be applied for microcontroller architectures like 8051, 251 and 166.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Thursday, December 6, 2018
of your data.