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.
Syncore Technologies AB
Sorry, but the CRC feature can only be applied on a section by section basis.
Thanks and regards,
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.
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'.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.