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.

FLASH 2-bit ERROR

我在做  flash 2-bit error 插入错误诊断触发,程序跳转到异常中断,

 产生ESM和flash错误标志,

恢复运行后程序会恢复执行下一条语句,ESM和Flash错误标志就没有。  我的意图就是插入错误后去读取错误标志,但是由于异常指令执行后就读取不到错误标志了。  1.为什么产生2 -bit error 会进入 prefetchEntry ? 2. 我该如何诊断2-bit错误?

  • 你好。

    你是在Flash中做2位的错误插入,如果插入的地方刚好是指令,那么就会产生prefetch错误。

    可以用过CP15寄存器组来查看触发prefetch错误的地址。

  • 谢谢! 我是通过读取数据产生错误的,不是读取指令错误

    如下:

    flashWREG->FPAROVR |= F021F_FPAROVR_SYN_2BIT_DATA_ECC;//翻转读出数据产生两个错误

    flashread = *(volatile uint32 *)0x20000008u;// 产生2-bit 错误