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.

On-chip flash checksum (CCS v4 plugin for C2000)

Hi,

I would like to get more info how the flash checksum is being calculated by on-chip flash plugin for C2000.

 

Can you please provide more detail about the algorithm which is used? Can you provide address range etc.?

 

The explanation provided in help (see below) is rather useless...

Checksum:
The Calculate Checksums flash operation calculates checksums for these types of memory: Flash memory & One Time Programmable (OTP) memory.

 

 

  • Marcin,

    1. The C2000 Flash checksum is calculated as following:

    A 16 bit value, resulting from the addition of each word (16bit data) from the starting address to the ending address.

    For example, if you have an empty 64bit Flash memory, the checksum will be:

    0xFFFF + 0xFFFF + 0xFFFF + 0xFFFF = 0xFFFC (16bit)

     

    2. The address of Flash and OTP Flash is determined based on the device you are using. Please look up the Memory Map of your device in the Datasheet available online to determine the Flash and OTP address range.

     

    Let me know if you have any addition questions.

    Thank you.

    Ricky