This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

flash image integrity check using CRC

Hello,

We have a TM4C129X micro-controller based custom board.

1. TM4C129NCZAD

2. TI-RTOS 2.14

3. Ti-ARM Compiler 5.2.5

As a part of Power On Self Test, we need to check the integrity of the binary in the internal flash. I am thinking of using CRC to check the integrity of the binary image.

Can we write the CRC at the end of the image and then flash the image. Is there any tool that does it ? if no tools is there, do we need to have our own tool to do this? How can we write the size of the  flashed image  at a known location.

Where should this code be written?  boot.asm or main.c

I am posting it in micro controller forum, as i could not decide where this post should go. Sorry if it has got posted on the wrong forum.

TIA

Thanks

Narendra

  • Hello Narendra,

    The ROM Boot Loader does not do that. Only a flash boot loader may be enabled to check and enforce a CRC before executing the application image. The define CHECK_CRC (as documented in the Boot Loader User Guide) shows how to write the CRC and length of image.

    There is no tool to do so, hence it will be a development done on your side/

    Regards
    Amit