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.

AM5748: ECC test software

Part Number: AM5748


Hello

We are looking for a ECC test / diagnostic software for out AM574x-based custom board, running the TI Linux SDK. We need this for hardware verification to know if ECC does any error detection / correction

Regards, Chris

  • Hi Chris
    I will notify my linux counterparts to see what diagnostics/tests are available in linux. Just to confirm , you *do* prefer Linux based tests or will something based on baremetal or TI RTOS diagnostic also work for you for this verification check etc?

    Regards
    Mukul
  • Either will work, as we'll use it for HW verification and not in (Linux) production SW.
  • Chris,

    We've added some testing ability to U-Boot:

    To test ECC, a new command has been added in U-Boot:
    ddr ecc_err <addr in hex> <bit_err in hex> - generate bit errors in DDR data at <addr>, the command will read a 32-bit data from <addr>, and write (data ^ bit_err) back to <addr>

    E.g.:
    ddr ecc_err 0x90000000 0x1 (this will genereate a 1-bit error on bit 0 of the data in ddr address 0x9000_0000)
    ddr ecc_err 0xa0000000 0x1001 (this will genereate 2-bit error on bit 0 & 3 of the data in ddr address 0xa000_0000)

    In addition, a new environment variable "ecc_test" is also introduced to test ECC. By default, ecc_test = 0, and any detection of 2-bit error will reset the device. If ecc_test = 1, U-Boot will bypass the error and continues to boot to the Linux kernel so that Linux kernel can handle the error in interrupt service routine.

    In Linux, add error interrupt handler for Uncorrectable error interrupt processing and panic.

    I hope this will serve as a useful reference for you.
  • Chris,

    Wanted to see if this met your needs? Thanks.