Tool/software: Code Composer Studio
I have a project migrated from IAR.
In IAR, there is an option for the linker to calculate a checksum (CRC16 or CRC32) of the program code and place it at a specific address.
- Is there a way for the CCS to calculate such a checksum?
- If I have to calculate my own checksum from PROG_MEM_START to PROG_MEM_END, where can I place the checksum in the code so that it doesn't ruin the calculated checksum. Anywhere I tried to place the checksum in the source file, each time I compiled the code with CCS, the checksum changed!
Basically I need this is order to pass a specific certification.
I must store the checksum of the actual code that is running and then periodically check that the same code has not been corrupted (at least where it's stored on the flash).
Thanks for any help in this matter.
Mechi