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.

calculate the CRC of Flash memory from Out file(COFF file)



Hello all,
 
Currently we are trying to calculate the CRC of Flash memory from Out file(COFF file), then download this Coff file with CRC to target board, then comapre it with the calculated one to check whether ROM check has error.
 
Thank you!
Best Regards,
Nancy Dong
  • Hi Nancy,

    I hope this thread helps you out:

    http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/117036.aspx

    Regards,

    Gautam

  • Hi!

    For example, you can go to HEX-format to resolve this task with HEX-editor http://mh-nexus.de/en/. This application calculates checksum with many  algorithms (option "Analise"). After calculation you can insert checksum to end of your file through option "add bytes".

    Regards,

    Igor

  • 7585.slaa221.zip

    The above link includes algorithms for calculating CRCs.

    I used a shareware application called HexEdit available at www.hexedit.com.

    The 32-bit CRC value calculated by HexEdit uses the same polynomial as the TI method shown in slaa221.

    The trick I discovered was realizing that HexEdit calculates a 32-bit CRC based on a reflected method. See the CRC-32 values in the far right column on page 6 (section 4.6) of SLAA221.

    Also, the flash sectors on some C2000 dsps are 16 bit words. HexEdit will load your out file in 8-bit memory locations, so you need to keep that in mind when selecting a CRC algorithm. SLAA221 has 16-bit and 8-bit algorithms.

    -Chuck