Hi,
I'm working on a F2801 MCU right now, and we have a requirement of flash integrity check at every startup. I've found a feature in the linker (v6.0.1) that calculates the CRC for some output section which later can be verified during boot, which is almost what we want.
For several reasons, it would be better for us if it is possible somehow to configure the linker to calculate one checksum for the whole flash memory content, instead of several checksums over each sections as it is now. Is it possible somehow to specify that the linker checksum utility should calculate the CRC over the whole flash memory (excluding last words that contains CSM, stored CRC, branch instruction, etc etc.)?
That is, we would like the checksum to be calculated over memory section "FLASHA" instead of output sections specified in the Linker File.
Best regards,
Dan Persson
Syncore Technologies AB
Sorry, but the CRC feature can only be applied on a section by section basis.
Thanks and regards,
-George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Hi Georgem,
Ok, I see. Thank you for your quick response!
We just came up with another idea how to solve it. We check that the memory addresses outside these sections and outside the CRC tables are equal to 0xFFFF. Then we can be sure that the compiler has not put any executable code outside the "CRC-controlled" sections by 'mistake'.