hi,SL_SelfTest_Flash (SL_SelfTestType testType, boolean bMode, SL_SelfTest_Result* flash_stResult) Flash self-test calls the above interface, when the testType type is set to: FLASH_ECC_TEST_MODE_2BIT: 2BIT ECC data diagnosis mode is set, the test fails, by adding the print information as follows:
The data under normal circumstances should be:
sl_flashWREG->FEDACSTATUS = 256
sl_flashWREG->FUNCERRADD = 8
sl_esmREG->SR1[2] = 128
Check the user manual, the meaning of each BIT in the FEDACSTATUS register is as follows:
Bit 8 should be 1, but the actual printed value is 0, and no uncorrectable bus error has been detected.
But the testType I set is 2BIT ECC failure, but why is the failure not detected? What may be the reason? In addition, when the testType is set to FLASH_ECC_TEST_MODE_1BIT: 1BIT ECC data diagnosis mode, it can pass the self-test.