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.

TMS320F28377D: Executing a checksum on Flash Memory

Part Number: TMS320F28377D

Hi, I am trying to do a checksum test on the Flash memory before calling the main function to check the flash integrity. I  went through some of the examples already provided by TI and I can see some functions for doing the checksum on BOOT_ROM memory in ROM BOOTLOADER example. I am unable to find any for Flash memory. I am wondering if there are some examples of doing the checksum on Flash memory or any documentation on how to perform it by adding some functionality.

Thanks,

Bala.

  • Hi Bala,

    The content of Flash memory should be verified at the time of programming.

    The on-chip Flash memory on F2837x device is supported by single error correction, double error detection (SECDED) error correcting code (ECC) diagnostic. In this SECDED scheme, an 8-bit code word is used to store the ECC of 64 bit data and corresponding address. The ECC decoding logic at the flash bank output checks the correctness of memory content. ECC evaluation is done on every data/program read. The data/program interconnects that connect the CPU and Flash memory is not protected by ECC. Detected correctable errors can be corrected or not corrected, depending on whether correction functionality is enabled. Single bit address ECC errors are flagged as uncorrectable errors. Errors that cannot be corrected will generate an NMI and ERRORSTS pin is asserted. Count of the corrected errors (single bit data errors) is monitored by the flash wrapper and an interrupt is generated once the count exceeds the programmed threshold. The corrupted memory address of the last error location is also logged in flash wrapper.

    Please refer to TMS320F2837xD/S and TMS320F2807x Safety Manual available at www.ti.com/.../sprui78b.pdf
    Thanks.

    Best regards,
    Han Zhang