This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Firmware Image CRC Calculation on LPC2478

Hey Guys, I am using an LPC2478 Platform running on C. My project consists of nearly 25 files using which I create an HEX file and load it to the MCU using Flash Magic. The size of the HEX file is around 205K. My recent requirement is to calculate the CRC of this firmware image using the MCU or some sort of algorithm that will be included in the firmware itself. I would like to print the CRC for debugging purposes and I dont mind the core logic of the CRC calculation being in the firmware image. I can see that Flash Magic displays the CRC of whatever image it programs on the tools > Information tab but I want that functionality in the code itself as my client requires the CRC to be displayed on the debug terminal. Please post your suggestions guys.