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.

RM42L432: ECC function

Part Number: RM42L432

Hi Team,

The customer is experiencing below issue and needs your help.

1. He used RM42L432, and found a test routine on the official website to test the ECC function of inserting two wrong ECC functions. An error occurred during the test.

2. Jump into dabort.asm after generating an error. Why does he need to clear the error flags here, and set the nERROR pin to recover high level after the counter is finished, especially set the nERROR pin to recover high level after the LCT counter is finished? By setting (esmREG->EKR = 0x0U;), he configures the nERROR pin as a continuous low level mode after an error occurs, But in dabort.asm, it is configured to reset the state of this pin after an error occurs.

The following is the customer's operation and what he does not understand:

Thanks,

Annie

  • Hello Annie,

    The Flash wrapper can be put in diagnostic mode to verify various logic. The diagnostic mode 7 is used to test the error correction and ECC logic by inverting one or more bits of the ECC.

    If two ECC bits are inverted (your test), the 2-bit uncorrectable ECC error will be generated, and nERROR pin is pulled LOW. Those are intended error, and should be cleared before performing other test.

    If the abort is caused by 2-bit ECC error in no-diagnostic mode, the error flag will not be cleared:

    flashErrorReal
    b flashErrorReal ; branch here forever as continuing operation is not recommended